MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Related Tools (https://www.mobileread.com/forums/forumdisplay.php?f=238)
-   -   [The Older version] Calibre2opds V2 (https://www.mobileread.com/forums/showthread.php?t=64095)

cistehovado 12-22-2009 04:47 AM

1 Attachment(s)
I translated almost all,
only the part "information messages" (and some few lines) are not translated yet, I need to see output from translated program, so I can choose sentences and words better ;-)

dpierron 12-22-2009 05:00 AM

Thanks cistehovado !

If you want to test, and know how to extract/compress a zip file, here is what you can do :
Find the file named StanzaOutput-0.0.7-SNAPSHOT.jar, somewhere in the tool's installation directory (should be in repo\fr\free\davidsoft\calibre\StanzaOutput\0.0.7-SNAPSHOT).
Extract this file (it's a simple zip file, use Winzip or, even better, Total Commander) and add your Enumerations_sk.properties and Localization_sk.properties files along with the _en and the _fr ones.
Recompress the zip file, and start the tool with the "--lang sk " parameter and voilą !

cistehovado 12-22-2009 05:31 AM

Ok I will try it at home :D where do I have my book collection, btw dont you have an idea how to solve my problem https://www.mobileread.com/forums/sho...244#post706244

dpierron 12-22-2009 06:09 AM

No, sorry, I'm not fluent in Python ; I'm certain Kovid will react and help you quite fast, he's usually reactive.

dpierron 12-24-2009 01:16 PM

1 Attachment(s)
I made a new release (0.0.8) ; you'll find it at the usual place...

Changelog :
  • split by letter for all catalogs, when the --maxBeforeSplit option is reached
  • added icons in all the elements of the catalogs
  • added icons in the HTML catalogs, too
  • added a check to rebuild thumbnails when --thumbnailHeight has changed
  • changed the way the "split by letter" catalog entries are described
  • added the --nogeneratefiles options, to skip download links in the OPDS catalogs (useful for demos)
  • added the --nomixbooks option, when set the books and their containers are never mixed (by inserting additional container levels)
  • enhanced authors, tags, series, and all books container summaries

I'm preparing a demo catalog, which will be referenced in the tool's website ; I'll let you know when it'll be ready.

For the people who would like to help in translating the tool, here are the translation files (attached) ; I'm ready to help anyone willing to help me ;)

Last but not least, I'd like to thank everyone who supported me and specially Ian, who was kind and patient and whose excellent ideas were the base of almost all the options of the tool ;)
Thanks Ian !

Cheers,
David.

hakan42 12-25-2009 07:08 AM

:thanks: for this excellent tool, I was just about to write a library to access the calibre DB myself, so you saved me quite a bit of work :2thumbsup

One question, though, would you like to deploy the artifacts from your library directly to central? It would make using your code as a library for other application easier and would help with making other developers aware of your code also.

I'm using the services of the good people at sonatype.org to mirror some of my artifacts (for now osmosis and postgis) to central, too, so I could lend a hand if necessary.


Regards,
Hakan

dpierron 12-26-2009 07:33 AM

Thanks for the compliments !

My tool is made of three libraries : one for accessing the Calibre db and modelizing the data, one which is a generic tool library, and one that is the actual catalog exporter.

The problem is, these libraries evolve very fast at the moment, while I'm at the start of the project (and in a beta phase).

Later, I'll happily oblige and publish the libraries in the M2Central repository, but for the moment I think that it would be quite unpractical. Don't you agree ?

Anyhow, you're more than welcome to either make use of these open-source components, and even more welcome to come join me in this project, doing whatever you wanted to build at first...

Regards,
David.

dpierron 12-26-2009 02:58 PM

Change of name (the tool is now called calibre2opds), hosting (on Launchpad) and a new release (1.0.0) ...

I've written a welcome page to explain everything, and there's even a demo HTML catalog available - and also, a demo OPDS catalog, if you want to try it in Stanza (although no downloads of eBook files are permitted in the demo)

dpierron 12-28-2009 01:23 PM

Would it make me a irrecoverable megalomaniac if I asked a moderator to pin this thread ? Ooops too late, I did ask ;o)

dpierron 12-30-2009 06:24 AM

A new version has been released :
  • added the --nouseauthorsort option, which makes the tool resort to the author name for sorting, instead of the special Calibre 'sort' field
  • added the --catalogtitle option, to allow for custom catalog titles
  • corrected a bug in the "split by letter" catalogs, with the "other" split element

itimpi 01-02-2010 12:49 PM

I notice that with the latest 1.01 release that some of the '/' characters in URL's for appear to be escaped to give %2F. I believe that this is incorrect behaviour as if the browser does not translate them back to '/' characters before sending the URL to the web server they do not get treated as directory separators so you end up with file not found errors.

I also notice that the "Downloads, links and other catalogs" popup does not work with IE8. Even though one might think that other browsers such as Firefox are better, I still think it is wrong to use HTML that does not work with IE if it can be avoided as it is still the browser with the largest market share. It is possible that this is related to the issue in the first paragraph, but I am not certain.

dpierron 01-02-2010 01:38 PM

I made a new release that corrects two bugs (and adds an icon to the program) :
  • corrected a NullPointerException bug when a book has no author
  • books sorted by letter were then sorted in reverse alphabetical order

itimpi 01-02-2010 01:43 PM

Does that correct the bug I mentioned above where '/' characters in URL's are incorrectly escaped?

peterloron 01-02-2010 03:31 PM

When I try to run the tool, I get the following output. Any suggestions? Thanks!

Code:

peterl@myth:~/calibre2opds$ bin/calibre2opds /library/books/metadata.db
calibre2opds v1.0.1

Please join us on MobileRead to discuss this tool !
(https://www.mobileread.com/forums/showthread.php?t=64095)

Based on Calibre2Web, a Visual Basic script written by itimpi for MobileRead users
(https://www.mobileread.com/forums/showthread.php?t=33388)
Thanks to him for the idea and the work he spared me !
Also, thanks go to Kovid Goyal for the excellent Calibre
(http://calibre-ebook.com/)
and to the Lexcycle people for Stanza
(http://www.lexcycle.com/)

01:26:15,169 INFO  [Catalog] database folder            : /library/books/metadata.db
01:26:15,170 INFO  [Catalog] catalog folder            : _catalog
01:26:15,171 INFO  [Catalog] catalog title              : Calibre library
01:26:15,178 INFO  [Catalog] elements before pagination : 25
01:26:15,179 INFO  [Catalog] elements before split      : 75
01:26:15,179 INFO  [Catalog] books in recent additions  : 100
01:26:15,179 INFO  [Catalog] wikipedia language        : en
01:26:15,179 INFO  [Catalog] included formats          : ALL
01:26:15,181 INFO  [Catalog] save bandwith              : yes
01:26:15,182 INFO  [Catalog] thumbnail height          : 90
01:26:15,182 INFO  [Catalog] generate HTML catalogs    : yes
01:26:15,182 INFO  [Catalog] generate HTML downloads    : yes
01:26:15,182 INFO  [Catalog] generate OPDS downloads    : yes
01:26:15,182 INFO  [Catalog] split tags using          : no split
01:26:15,182 INFO  [Catalog] mix books and containers  : yes
01:26:15,183 INFO  [Catalog] use author sort field      : no
01:26:15,183 INFO  [Catalog] loading and filtering database
01:26:15,408 ERROR [DatabaseRequest] java.sql.SQLException: no such table: books
Exception in thread "main" java.lang.NullPointerException
        at com.gmail.dpierron.calibre.database.Database.listBooks(Database.java:50)
        at com.gmail.dpierron.calibre.datamodel.DataModel.getListOfBooks(DataModel.java:78)
        at com.gmail.dpierron.calibre.opds.RemoveEmptyAndNotInIncludedFormats.runOnDataModel(RemoveEmptyAndNotInIncludedFormats.java:42)
        at com.gmail.dpierron.calibre.opds.Catalog.createMainCatalog(Catalog.java:1237)
        at Main.run(Main.java:26)
        at Main.main(Main.java:286)


dpierron 01-02-2010 03:32 PM

No, sorry, I didn't see your message before posting mine ; I'll check this though, thanks for the heads up.
Could you file a bug report at Launchpad and give me some examples, so I can be sure I correct the bug thoroughly ?
Thanks,
David.


All times are GMT -4. The time now is 07:32 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.