Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-16-2008, 03:35 AM   #1
pepak
Fanatic
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 594
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
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?
pepak is offline   Reply With Quote
Old 08-16-2008, 07:44 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,137
Karma: 17161828
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
BUMP!
JSWolf is offline   Reply With Quote
Old 11-25-2008, 10:56 PM   #3
jamesjmunro
Member
jamesjmunro began at the beginning.
 
jamesjmunro's Avatar
 
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?
jamesjmunro is offline   Reply With Quote
Old 11-26-2008, 02:21 AM   #4
pepak
Fanatic
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 594
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
Quote:
Originally Posted by jamesjmunro View Post
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?
I got rid of the regeneration by formatting the internal memory. Apparently there was some problem with the FAT and/or root directory, format solved that just fine.

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.
http://www.mobileread.com/forums/showthread.php?t=29217

Quote:
Also, even if I do fill in metadata for text files, would the reader even display it?
Yes. Until you change the underlying file, which forces regeneration of metadata, the metadata from the XML file are used.
pepak is offline   Reply With Quote
Old 11-28-2008, 10:11 AM   #5
jamesjmunro
Member
jamesjmunro began at the beginning.
 
jamesjmunro's Avatar
 
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?
jamesjmunro is offline   Reply With Quote
Old 11-28-2008, 10:26 AM   #6
pepak
Fanatic
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 594
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
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.
pepak is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 04:44 PM.


MobileRead.com is a privately owned, operated and funded community.