06-07-2010, 08:47 AM | #1 |
Member
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
|
calibredb list --output-format=xml no longer supported
As in the title, calibre 0.7 seems to have dropped --output-format (which I use in http://blog.mekk.waw.pl/archives/36-...-detector.html and some other scripts).
I can live without it, but I find it a bit troublesome that this change is neither mentioned, nor explained in changelog. Was it done on purpose, or is it a mistake? Are there other changes in calibredb commands? |
06-07-2010, 09:04 AM | #2 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
From the GUI:
From the CLI:
|
Advert | |
|
06-07-2010, 11:22 PM | #3 | |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Some day I may try to expand my knowledge in these areas so I am curious is calibredb catalog vice calibredb list the way to now output the list he is looking for? Thanks in advance. |
|
06-07-2010, 11:23 PM | #4 |
creator of calibre
Posts: 44,334
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes
calibredb catalog out.xml |
06-08-2010, 06:08 AM | #5 |
Member
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
|
I switched my scripts from list to catalog, it works, thank you.
Still I think it would make sense to mention such a change in release notes. Sentence like "--output-format parameter of list command is no longer supported, use catalog command instead" would perfectly do and save some time and doubts. PS Once more thank you for calibre, great tool :-) |
Advert | |
|
06-11-2010, 02:42 AM | #6 |
Member
Posts: 21
Karma: 50
Join Date: Jun 2010
Location: Poland
Device: Sony PRS-600
|
One small problem: in case catalog is given search params which no book satisfy, it fails (returns error exit code, prints error message). It makes scripting around this command somewhat troublesome (either I must ignore all calibredb errors, or fail in correct situations when simply nothing is found, or capture standard error and regexp it to detect this very case).
Is it a deliberate decision? What would be wrong in creating empty catalog? |
06-11-2010, 08:13 AM | #7 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Mekk: Patch submitted to Kovid to output empty XML file instead of returning error. If he approves, will be included in next release.
G |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why is the un-upgraded PRS500 no longer supported in Calibre 0.7? | megacoupe | Calibre | 10 | 08-29-2010 11:09 PM |
LRF no longer "supported" by Calibre | DrMoze | Calibre | 92 | 02-20-2010 04:23 PM |
Sony PRS-505 not on the list of supported devices in Calibre? | impayler | Calibre | 4 | 12-08-2009 12:00 PM |
XML inpput to several formats output | tibiafry | Workshop | 5 | 03-05-2009 02:17 AM |
Is there a universally supported format? | jonathanp | News | 6 | 01-20-2009 07:19 PM |