05-16-2010, 10:26 AM | #1 | ||||
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Beta Beta Test of Major New Features
This is a non-sticky discussion thread for the unofficial beta beta development available from lp:~cbhaley/calibre/charles.custcol
Charles, Instead of doing this by email or PM, this is easier for me, so I'm moving the discussion here. Our last round is quoted below: 1) I'll check the attempt to delete and get back to you. 2) I suspected you might not see the oddity of LN, FN sorting 3) Yes, there are often unsuspected benefits of new features. 4) New bug: a) connect to empty folder, add books b) disconnect c) reconnect to same folder. The author is now listed as title and title as author for each book. Quote:
|
||||
05-16-2010, 10:50 AM | #2 | |
Grand Sorcerer
Posts: 12,018
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I have checked with Kovid, and it is broken. Oddly enough, it has been broken since forever. I will fix it soonly .
Quote:
As an experiment, disconnect from the folder, go to that folder and delete the file .metadata.calibre, and then reconnect to the folder. The device driver will rebuild the metadata from what is found in the books. Are the results different? |
|
Advert | |
|
05-16-2010, 11:17 AM | #3 |
Grand Sorcerer
Posts: 12,018
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Ahhh -- you were adding a new book, not copying from the library?
I just tried doing that, and it worked for me. This operation will use the preference settings for adding books. Any chance you have ticked 'read metadata only from file name' and that your regexp is getting the two reversed? My settings are vanilla: no boxes checked on the add preferences tab, with the standard regexp. I added an epub that had metadata in it, and the metadata was right. I added a text file and got the text file name as title with author unknown. |
05-16-2010, 11:22 AM | #4 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
[QUOTE=Starson17;913208]This happens with .txt format files. In one pdf it mangled, in another, it looks correct. Some .lits are OK, others not. ...
Still testing, this is a prelim report. The data looks correct in the GUI during the initial import. It's wrong during the reconnect. The errors can be seen in the .metadata.calibre cache file. Last edited by Starson17; 05-16-2010 at 11:53 AM. |
05-16-2010, 11:31 AM | #5 | ||||
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
Quote:
Quote:
|
||||
Advert | |
|
05-16-2010, 11:47 AM | #6 | |
Grand Sorcerer
Posts: 12,018
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I wonder if the delete problem is not related to this? Clearly something is stopping calibre from certain file manipulations. If the metadata cache is not being written, then it tries to determine the metadata from the file. For text files this is clearly impossible, so it uses the filename pattern stored in preferences. Code:
pat = re.compile(prefs.get('filename_pattern')) name = name.replace('_', ' ') match = pat.search(name) I will look at the path names for local drives. I can easily imagine that the paths are not being normalized to windows (you run vista?), which might cause trouble. |
|
05-16-2010, 11:57 AM | #7 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Somewhere I lost a reply to you. The author/title munge is visible in the .metadata.cache file. I'm multitasking some jobs for the wife: welding oxygen and goldfish - don't ask.
|
05-16-2010, 12:13 PM | #8 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
I suggest we focus on this, then see if the delete is still an issue. |
|
05-16-2010, 12:22 PM | #9 | ||
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
I probably do have a mismatch between the regex used to Add Books and the pattern used to save the book out. Normally I have the option to read metadata only from filename on, and I vary the Add Books import regex. Does that regex come into play during the reconnect to the folder (or during the initial transfer from main library to Device)? Quote:
|
||
05-16-2010, 12:27 PM | #10 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
I'll test to verify. (I think this is what you were saying, but it just sank in.) Last edited by Starson17; 05-16-2010 at 12:38 PM. |
|
05-16-2010, 12:29 PM | #11 |
Grand Sorcerer
Posts: 12,018
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Yes, that is what I was saying, and yes, it will be problematic. It shouldn't recompute the metadata.
I am now looking at when that happens and why. I have seriously broken the code, unfortunately, so it will be a little while before I get back to you. |
05-16-2010, 12:31 PM | #12 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Can you post the default Add Save regex and the Send to Device regex. I can recreate something similar to them, but I'd like to use the defaults, and I don't seem to have them in my notes.
|
05-16-2010, 12:34 PM | #13 |
Grand Sorcerer
Posts: 12,018
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Under some conditions that I haven't yet figured out, it uses
re.compile(r'^(?P<title>[ \S]+?)[ _]-[ _](?P<author>[ \S]+?)_+\d+')) The default in preferences is '(?P<title>.+) - (?P<author>[^_]+)' |
05-16-2010, 12:55 PM | #14 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
OK, this will confirm that setting regex to defaults mostly fixes things. I say "mostly" due to the oddity of text file metadata. I vaguely recall that calibre attempts to divine the metadata from inside the text file rather than always getting it from the filename. If the "metadata only from filename" option is off, it is getting the metadata of a txt file incorrectly on the reread. Apparently calibre never writes the correct metadata internally into a txt file, so with that option off, on the reread of metadata, it's always wrong. Other formats have correct metadata written internally, or if not, the metadata is picked up from the filename on the reread, so I saw errors only with txt files after the default regexes were set.
Turning on the "metadata only from filename" option fixed the txt file problem. I'll check the delete issues now that this bug is at least identified. |
05-16-2010, 01:00 PM | #15 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
There's no confirm dialog on delete.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copia beta test - Get Your Invite Now! | Nate the great | Announcements | 34 | 11-18-2010 07:48 PM |
Beta Test of new Kobo Driver | timlegge | Calibre | 58 | 06-22-2010 07:37 AM |
Beta test of major new features | chaley | Calibre | 130 | 06-04-2010 08:52 PM |
DR800 V2 Beta Firmware Battery Test | CoolDragon | iRex | 29 | 05-11-2010 05:37 AM |
Mobile Forum Beta Test Here! | Alexander Turcic | Announcements | 12 | 03-10-2004 05:38 PM |