01-12-2013, 03:09 PM | #226 |
Member
Posts: 22
Karma: 10
Join Date: Oct 2011
Device: Kobo Glo HD
|
Hi Vlad,
Checked your newly added option to omit the Fancybox. Works like a charm and I am very happy with it. Now I can read the book detail in good order. The bookdetail page is approx. 5% too wide for the screen of the PRS-T1, so the last two letters are not directly visible, but at least without the fancybox it is possible to scroll from left to right. Perhaps you can point me out where I can substract a few pixels from the page width? I suspect something needs to be done in the following line of "index.php"? Code:
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no" /> |
01-12-2013, 10:13 PM | #227 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: Kindle Fire
|
Hey there!
I' ve found your OPDS-Content-Server or whatever it sshould be called and it is really great. Theres no more need of calibre2opds for me and it is running great on my little NAS. I've added some code for displaying Books by Genre in a seperate Category. This is done by creating a custom column in calibre and telling your application how it is named (by looking into the metadata.db-file, for example "custom_column_6". Let me know if you are interested in (integrating) this code. Cheers |
01-13-2013, 03:13 AM | #228 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
@ElmoFuntz
I'll certainly add the loading of a user customized CSS. That will cover your case. @Northguy I guess you have this problem only when you have a scroller on the right. If you choose an author / serie / tag which only have 2 or 3 books, is it ok ? Please try to change Code:
.container { margin:auto; width:100%; max-width:800px; } @CreaB I'm always interested in code contribution. So yes please send me your patches (by mail or with github as you prefer) |
01-13-2013, 10:07 AM | #229 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
Dear all,
I return towards you because I still have a problem under IIS. I installed COPDS under IIS8 and I can see my books under the web interface or with OPDS catalog. But when I want to download a book (mobi ou ebook) on my tablett ou my PC, I have the HTTP 404 error.... See the log file for IIS: Code:
#Date: 2013-01-13 14:49:37 #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken 2013-01-13 14:49:37 192.168.0.11 GET / - 8080 - 192.168.0.25 Mozilla/5.0+(Windows+NT+6.2;+WOW64)+AppleWebKit/537.11+(KHTML,+like+Gecko)+Chrome/23.0.1271.97+Safari/537.11 - 200 0 0 233 2013-01-13 14:49:41 192.168.0.11 GET /index.php page=6 8080 - 192.168.0.25 Mozilla/5.0+(Windows+NT+6.2;+WOW64)+AppleWebKit/537.11+(KHTML,+like+Gecko)+Chrome/23.0.1271.97+Safari/537.11 http://192.168.0.11:8080/ 200 0 0 93 2013-01-13 14:49:42 192.168.0.11 GET /index.php page=7&id=1 8080 - 192.168.0.25 Mozilla/5.0+(Windows+NT+6.2;+WOW64)+AppleWebKit/537.11+(KHTML,+like+Gecko)+Chrome/23.0.1271.97+Safari/537.11 http://192.168.0.11:8080/index.php?page=6 200 0 0 93 2013-01-13 14:49:43 192.168.0.11 GET /Z:/Calibre+Server/Ebook/Brown,Dan/Anges+et+demons+(3)/Anges+et+demons+-+Brown,Dan.mobi - 8080 - 192.168.0.25 Mozilla/5.0+(Windows+NT+6.2;+WOW64)+AppleWebKit/537.11+(KHTML,+like+Gecko)+Chrome/23.0.1271.97+Safari/537.11 http://192.168.0.11:8080/index.php?page=7&id=1 404 0 2 62 |
01-13-2013, 01:06 PM | #230 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: Kindle Fire
|
|
01-13-2013, 02:40 PM | #231 | |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Quote:
About the download. If your Calibre library is outside your webdir (which is good), you have to fill that config item : $config['cops_x_accel_redirect'] = "X-Sendfile"; But with IIS it doesn't seems that X-Sendfile is available and there is no alternative (correct me if I'm wrong). So please try to edit fetch.php and replace the last lines by : Code:
if ($type == "jpg") { header('Content-Disposition: filename="' . basename ($file) . '"'); } else { header('Content-Disposition: attachment; filename="' . basename ($file) . '"'); } //header ($config['cops_x_accel_redirect'] . ": " . $config['calibre_internal_directory'] . $file); $fp = fopen($config['calibre_internal_directory'] . $file, 'rb'); header("Content-Length: " . filesize($config['calibre_internal_directory'] . $file)); fpassthru($fp); ?> Beware I did not test the code but there should be no risk. |
|
01-14-2013, 12:54 PM | #232 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Jul 2010
Location: The Netherlands
Device: Kobo Glo HD, Kobo Aura H2O edition 2, Kobo Libra 2
|
I have a very interesting issue!
COPS running on a Synology NAS, folder with my books (/volume1/Books) is mounted to the /volume1/web/cops/books folder. I can download books with my laptop or my kobo. But there are books that give a 404 page not found error. Access rights throughout the books folder is all the same: everyone has full rights. The books that cannot be downloaded do exist and have the same permissions as other books, so I am a bit confused here. Anyone ran into this yet? Thanks for this GREAT tool! |
01-14-2013, 12:56 PM | #233 |
Well trained by Cats
Posts: 29,703
Karma: 54369092
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
filename case issues? (can happen when bouncing between Windows and *nix based)
|
01-14-2013, 01:07 PM | #234 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Jul 2010
Location: The Netherlands
Device: Kobo Glo HD, Kobo Aura H2O edition 2, Kobo Libra 2
|
Thanks, that is indeed the case! Is there a way to quickly filter case issues between the title in Calibre and the filename? I have a lot of books so some kind of automation would be welcome.
|
01-14-2013, 01:16 PM | #235 | |
Well trained by Cats
Posts: 29,703
Karma: 54369092
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Note down: The Missing/extra .(Do NOT Repair) (I believe delete is the only repair option. Not what you want) Those are your candidates Quit Calibre and content server. very carefully, fix the case (ONLY) inside the library to match the title or Author (note that Calibre uses underscores in some places, like trailing dots A Backup is strongly recommended EDIT The Quality Check PI has a fix for paths wit commas Last edited by theducks; 01-14-2013 at 01:19 PM. Reason: Added Quality Check |
|
01-14-2013, 01:31 PM | #236 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Jul 2010
Location: The Netherlands
Device: Kobo Glo HD, Kobo Aura H2O edition 2, Kobo Libra 2
|
Thanks for the tip, but I ran the checks and the missing/extra section shows up empty
I wonder if it's possible in Calibre to write the file back to disk with a filename based upon title and author? So far I cannot find anything. Before we go off topic, I can open a seperate topic for this... |
01-14-2013, 02:00 PM | #237 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
I had the same problem and had to use library check on Linux to detect the problems.
Running it on Windows was useless. Note that COPS will not render the cover if the path is incorrect, so I also use it to track missing cover. |
01-14-2013, 02:09 PM | #238 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Jul 2010
Location: The Netherlands
Device: Kobo Glo HD, Kobo Aura H2O edition 2, Kobo Libra 2
|
I'm running Calibre on a Mac, so it should detect case issues I think? The OS is case-sensitive after all.
Also, for the problematic books I can see the cover in COPS just fine... Edit: I'm not so sure that OSX is case sensitive after all... it might depend on how the disk if formatted. I'm going to install Calibre on Debian in VMware and do a library check from there. Edit2: I have my linux setup running in a VM, Calibre installed and pointing to my library which is still on my Mac partition. Still, no missing/extra Maybe I'll copy my library to the linux partition and try again. I found out that when I modify the author from "author" to "author_x", the filename is correctly written, thus the book can be downloaded in COPS too. If only I could find a way to mass change the authors and then change it back to the original names again... Last edited by redlob; 01-15-2013 at 01:43 AM. |
01-15-2013, 01:37 PM | #239 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Jul 2010
Location: The Netherlands
Device: Kobo Glo HD, Kobo Aura H2O edition 2, Kobo Libra 2
|
Ok, I copied the Calibre database to the Linux partition, and all the "wrong" books showed up during the database check
It's still a lot of work to fix this. And I learned my lesson to NOT change the title of a book in Calibre when not on a case sensitive OS... If anyone has an idea to write back the book-title to the filename, or change the author temporarily and change it back to original, or another way to fix this quickly, please let me know. |
01-15-2013, 03:00 PM | #240 |
Grand Sorcerer
Posts: 12,124
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
I *think* you might be safe if you did changes of the form
SomEBaDCase Name to xxSomEBaDCase Name and then xxSomEBaDCase Name to SomeBadCase Name |
Tags |
calibre opds, dns, kobo aura, synology |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre OPDS server with windows apps? | nickdma | Related Tools | 10 | 03-03-2024 02:53 PM |
[Old Thread] Android FBreader and Calibre OPDS server question | kalex | Calibre | 5 | 12-24-2015 10:16 PM |
PHP+Apache web server for calibre ... | chaley | Related Tools | 254 | 04-28-2014 08:18 PM |
External OPDS catalogue in Calibre | bolton | Calibre | 1 | 09-05-2012 06:14 AM |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |