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)

dpierron 01-02-2010 03:37 PM

Quote:

Originally Posted by peterloron (Post 721597)
When I try to run the tool, I get the following output. Any suggestions? Thanks!

I answered your question at Launchpad.

In short : you should not give the path to the metadata.db file, but only the name of the folder that contains it (i.e. the path must not contain the "metadata.db" part).

peterloron 01-02-2010 03:51 PM

Thanks for the speedy response. I get the same output no matter what path I supply:

/library/books
/library/books/
/library/books/metadata.db

peterloron 01-02-2010 04:00 PM

I've created a bug at Launchpad:

https://bugs.launchpad.net/calibre2opds/+bug/502412

dpierron 01-02-2010 06:47 PM

Thanks peter ! I answered in your bug report...

peterloron 01-03-2010 01:46 AM

Interestingly, if I run the tool while the current working directory is the Calibre library, it works. Running the tool from elsewhere and specifying the CL directory fails. I've updated the bug.

da_jane 01-03-2010 02:50 AM

I have the same error message using the path of the folder wherein the metadata.db sits.

dpierron 01-03-2010 12:46 PM

I made a new release that corrects all but one of the reported bugs :
  • corrected a problem in the URLs : the / were escaped when it was not necessary
  • corrected a bug : the parameter specifying the calibre folder was not read correctly
  • corrected a bug : the authors list was not split nor sorted by last name but by first name
  • updated the readme.txt with the information of the FAQs

I need someone who can write and correct CSS stylesheets to take over the bug #502553 : Additional Links in HTML do not work with IE, because my knowledge of CSS and HTML is not good enough ; anyone up to the task ?

itimpi 01-03-2010 03:22 PM

A suggestion for some small enhancements to the HTML catalogs:
- The "Next Page" link is not very obvious - I would suggest a button would be better?
- When you are on second or later pages it would be a good idea to have a "Previous page" button (probably somwhere near the top of the page) rather than having to use the browser back button.
- It might be a good idea to have a "Page # of n" somewhere near the top to indicate how many pages there are and how far through the set one is.

If it would be better I could put these suggestions into Launchpad?

dpierron 01-03-2010 03:47 PM

Yes, please add these to Launchpad as it would make them persistent.
I'll answer there in order not to clog this nice forum ;)

dpierron 01-04-2010 11:14 AM

I made a new release :
  • corrected a bug : link to picture is missing from the thumbnail link (the OPDS one, not Stanza's)
  • corrected a bug : books for an author or a tag were not sorted by title
  • made the icons true png files to save space
  • changed the localization class to make it use UTF-8 files
  • modified the HTML pages to make the popup menus work in IE (thanks Jens !)

Thanks to Jens Baumeister for his help on this IE bug, I hope it works well, because I can't test with IE7...

Henny 01-05-2010 02:02 PM

Some problems with the command
 
:help:Hai
I tried to install the program, but have some problems with the command. Metadata.db stands in:
C:\Users\Bastiaansen\Documents\Henny\ebooks
The program: C:\Program Files\calibre2opds
I entered in the commandline: c:\program files\calibre2opds\bin\calibre2opds.bat
Now, I see in the directory ebooks new maps: Bin and REpo, but I can't find any catalog. What did I do wrong?
Hope to hear from you soon and thanks a lot, it looks great!:thanks:

itimpi 01-05-2010 02:17 PM

At the very least you need to tell it where the metadata.db file is located. If you are not running the .bat file from the calibre library folder you also need to say where the library is located.

If you run calibre2opds with the --help option it will show you what command line options are available.

Henny 01-05-2010 02:33 PM

How can I run Calibre2opds? I'm sorry, I thought I had to enter the command line in CMD.

itimpi 01-05-2010 02:41 PM

You have two chocies:
- Open up a CMD window and run it from there.
- Create a shortcut to the Calibre2opds.bat file and run it via that (which I find easier).

If using the latter method then you edit the properties of the shortcut to add any required parameters after the file name in the "Target" field. These are the same parameters you would use if running from the CMD window.

One disadvantage of the shortcut method is that the Window disappears as soon as the command completes so you would not see any error messages. My recommendation would therefore be to start by using the CMD window, and once you know what parameters you want you can then add them to the shortcut and run via that method.

In your case you probably want to give the path to the Calibre library folder as a parameter leaving the remaining ones to default.

dpierron 01-05-2010 04:53 PM

There's a FAQ on the site that should be helpful ; if not, please tell me what wasn't clear so I can enhance it.


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.