View Single Post
Old 08-18-2009, 01:44 PM   #27
xzf
Junior Member
xzf began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2009
Device: prs-505
Quote:
Originally Posted by gwynevans View Post
I haven't got time myself, because things are getting busy at work, but I've attached a Python script that I wrote a while back to create collections from file names (of the form 'author [- series N ] - title.lrf') in case you want to try yourself, as it might help getting started.

I'm not sure if it's 100% correct though, as when I just ran it, the Reader showed the "sd" icon by the collections, although they seemed to work OK!

Run with the file to modify as an argument, e.g. "lrfCategorize.py F:\database\cache\media.xml"
Thanks!
I made a quick mod on that script to use the last subdirectory instead of the series.
And it works fine for me..
Note: Windows users should change (SEP="/" to SEP="\\")
Attached Files
File Type: zip dir-Categorize.py.zip (1.5 KB, 325 views)

Last edited by xzf; 08-18-2009 at 01:59 PM.
xzf is offline   Reply With Quote