![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
A PY script to make "shelves" from folders?
How hard would it be to write a script to allow the user to select a folder full
of ebooks and have a shelf made (with the same name as the folder) that contained all the ebooks in the folder? Say I had a folder labeled "Fantasy" that was full of ebooks/files named by author - title. And another folder labeled "PolyTicks", and another labeled "Action" and another .... all with ebooks/files named like above. Could the files in the folder be added to the Kobo kluge of files and the "Shelves" made, in the same process? Could it be that if you had a Folder/Directory of such folders, the script be made so that the user can select which of those folders would be processed. If it could be done, it would make things a lot simpler for those of us who are used to ereaders that manage ebooks as files in the computer style folder structure. Luck; Ken Last edited by Ken Maltby; 05-19-2013 at 10:42 AM. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
You could do it in I think 4 simple steps using calibre and then delete the books from calibre if you don't ike using calibre.
1. open calibre if you have it installed and set up device driver. 2. select preferences>adding books put the shelf name you want in the box 'tags to apply when adding books" and uncheck the box that says read metadata from the file contents. 3. Drag the books to calibre 4. Send the books to the device repeat step 2-4 for each folder |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Hmm... all 51 folders and the 7225 files? A relatively simple utility to convert folders
to Shelves would be a way to migrate an existing folder based ebook library into the Kobo approach. This could take a lot away from the argument that the lack of the familiar folder based structure makes the Kobo hard to use for those with a large existing ebook library. Your steps may end up being a possible alternative method. Why the "uncheck the box that says read metadata from the file contents"? Luck; Ken |
![]() |
![]() |
![]() |
#4 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
It seems a japanese guy had created its own firmware modification with such this feature:
https://www.mobileread.com/forums/sho...d.php?t=213116 |
![]() |
![]() |
![]() |
#5 |
̏̏̏̏̏̏̏̏̏̏̏̏̏̏̏̏'\(⊙ ヮ⊙ )
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 16608
Join Date: Feb 2013
Device: Kobo Glo™
|
https://www.mobileread.com/forums/sho...d.php?t=186102
A simple file browser would of course be far better but including something like that would require common sense, something completely foreign to most mobile device UI designers. Gotta love those clunky playlists! |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
No it doesn't. Or at least it isn't supposed to. If it does, it's a bug and I'd like an example so I can fix it. The shelves should only be created from the metadata in the calibre library.
|
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
If you use tags to create shelves then all of those tags create shelves when you send the books from calibre AFAIK. Maybe I am wrong in this and if so I apologise for giving misleading information and an extra step. Helen |
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
But, you seem to be talking about the option to read the metadata when first adding the book to the calibre library. That would only mess with the shelf columns if the metadata was in the book. That would probably mean it had been exported out of a calibre library that had the same custom columns. Personally, I do use this option, but I normally check the metadata and probably use the download metadata function to get anything missing. But, as you are using the tags column for shelves, I can see why you wouldn't want to trust someone else's opinion of these. |
|
![]() |
![]() |
![]() |
#10 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
Quote:
It wasn't a question of trusting someone elses tags. He had very specific shelf names in his original post so probably did not want to use tags in the books themsleves, or so I assumed. And I do not find all tags in all books to be what I want, I had a library book that had an excerpt from the book as a tag, and I dout it would have been meaningful as a shelf name. I certainly wasn't casting aspersions on your driver which I truly appreciate. I am very sure I did not refer to it at all Helen PS tags are a standard column I think Last edited by speakingtohe; 05-19-2013 at 09:24 PM. |
||
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
I, at least, am one who has benefited from the efforts both of you have put into answering my question. Thanks Much, to both of you.
Speakingtohe; I don't really see the steps you outlined as particularly "Kludgy" and this may be the simplest approach available, at this time. I still have one more question about the process; How will the use of "PeterT's" custom shelves approach in calibre effect your process? And, how would it work if I used the "Automatic Adding" watch folder approach, would the tag entered in "Tags to apply when adding a book:" still be applied and work? Luck; Ken Last edited by Ken Maltby; 05-20-2013 at 12:21 PM. |
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
I am not sure what you mean by custom shelves approach.
If it is using a custom column then it is much the same except calibre won't add the column name automatically, but it is easy to just put the shelf name in the custom column as you add each directory using bulk edit. I used tags because it is, I think, the default in the driver(s) and involved one less step. Plus custom columns seem to mess up my Sonys ![]() I have several readers and on each one I use a different method of making my collections, and amazingly enough I don't find it confusing ![]() But I keep all of my books in calibre because it is for me the most logical method of maintaining order ![]() Slight caveat. Too many books in a shelf and/or too many shelves make opening the shelves very slow. One of these days I plan to put as many books as possible on a 32G SD card and see what happens, so I would be interested in how you come along as you add your collections. Helen |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
PS
If you put your books in calibre and don't want to keep them there, I think you can delete all formats and still use calibre to manage/change the collections without the actual books in calibres directory. Helen |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
getkernels - "get kernel image files" script | geekmaster | Kindle Developer's Corner | 22 | 10-12-2016 06:24 AM |
Here is a script for "single click" conversion to EPUB format | MisterMax | Conversion | 2 | 01-03-2014 11:54 AM |
PRS-505 PRS+: 2 Questions on "Browse Folders" and Dictionary Format | crc | Sony Reader | 2 | 06-23-2010 01:36 AM |
Commercial program says it can "make your own pdf e-books" - Anyone know about " | Fugubot | 3 | 04-29-2009 06:39 PM | |
Help! the "Make Sony Reader File" under "Options" is different | Dr. Drib | Sony Reader | 6 | 04-23-2007 02:56 AM |