08-16-2008, 03:35 AM | #1 |
Guru
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
Creating media.xml manually
Does anyone have an insight into how to build the media.xml file in reader memory manually? I can modify the file generated by the reader, but if I make my own file from scratch, it doesn't get used - the Reader simply rereads everything.
Specifically, I am interested in: 1) Which attributes of <xs1:text> need to be present? I hoped I could get by with id, path, title and author, but apparently that is not enough. I added date and size but still the file gets regenerated. The same after adding mime, status and sourceid. What else must I fill in? 2) It seems that id must be in sequential order for <xs1:text> but can contain any value for <xs1laylist> - the reader will change the IDs in playlist to make them sequential again, but they will work, while a <xs1:text> with a non-sequential ID gets deleted and replaced with a new one. (The difference means that in the case of playlist with non-sequential ID the playlist retains all books while a book with non-sequential ID gets removed from any playlist it is in.) Is that so? |
08-16-2008, 07:44 AM | #2 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
BUMP!
|
Advert | |
|
11-25-2008, 10:56 PM | #3 |
Member
Posts: 10
Karma: 10
Join Date: Oct 2008
Location: Saskatoon, SK
Device: PRS-505
|
going to bump this again. I'm running into the same problem with the xml being regenerated every time. I thought that I had read that this is something that came up in the last firmware (but I may be wrong), but assuming I'm not, has anyone goten this to work?
Also, even if I do fill in metadata for text files, would the reader even display it? |
11-26-2008, 02:21 AM | #4 | ||
Guru
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
Quote:
As for hand modification, it's just important to remember that: 1) FAT rounds times to two-second precision. 2) Internal memory uses file creation date, SD uses file modification date in its date field. 3) For some reason my times are always shifted exactly one hour back. Don't know why. I got rid of all the manual work by writing a small command line utility to do it for me. https://www.mobileread.com/forums/showthread.php?t=29217 Quote:
|
||
11-28-2008, 10:11 AM | #5 |
Member
Posts: 10
Karma: 10
Join Date: Oct 2008
Location: Saskatoon, SK
Device: PRS-505
|
Thanks for popping in pepak,
So reformatting the internal memory also kept it from rewriting the media.xml on the SD? |
Advert | |
|
11-28-2008, 10:26 AM | #6 |
Guru
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
My Reader kept recreating media.xml in the internal memory, the SD card's media.xml was fine. But maybe if you reformat your SD card, you will solve your problem, much like I solved mine by formatting the internal memory.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating XML book listing with Calibre | JTAL604622 | Library Management | 5 | 06-01-2010 02:57 PM |
Calibre keeps saying database of books is corrupted. Media.xml file | seajewel | Calibre | 8 | 02-26-2010 09:35 PM |
WinXP 0.6.5 corrupted media.xml | siulayhumga | Calibre | 3 | 08-10-2009 01:34 PM |
Media.XML and how to create one from pc | Student1 | Sony Reader Dev Corner | 4 | 05-06-2009 07:39 PM |
Strange issue with media.xml | pepak | Sony Reader Dev Corner | 2 | 09-08-2008 09:42 AM |