View Single Post
Old 09-17-2008, 07:10 PM   #9
gwynevans
Wizzard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
Quote:
Originally Posted by pepak View Post
Even better, someone who knows Python could rewrite the utillity into Python.
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"
Attached Files
File Type: zip lrfCategorize.zip (1.5 KB, 679 views)
gwynevans is offline   Reply With Quote