Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 07-14-2016, 07:40 AM   #1291
commandante
Member Retired
commandante is a glorious beacon of lightcommandante is a glorious beacon of lightcommandante is a glorious beacon of lightcommandante is a glorious beacon of lightcommandante is a glorious beacon of lightcommandante is a glorious beacon of lightcommandante is a glorious beacon of lightcommandante is a glorious beacon of lightcommandante is a glorious beacon of lightcommandante is a glorious beacon of lightcommandante is a glorious beacon of light
 
Posts: 18
Karma: 12050
Join Date: Nov 2013
Device: none
Hi,

Thanks a lot for your software. I am trying to add custom columns and I have some questions:
(1) I have created the ISBN column following the calibre way (I clicked on « ISBN »). Is this type of column supported or does it fall inside the "composite custom columns" category?

(2) I have added custom columns this way:
Quote:
$config['cops_calibre_custom_column_list'] = array("test","source","type"); $config['cops_calibre_custom_column_preview'] = array ("test","source","type");
$config['cops_calibre_custom_column'] = array ("test","source","type");
For example, inside the "type" column I have : fiction, non-fiction. On the homepage it works great, I can navigate inside "fiction" and "non-fiction". However when it display the booklist and the preview, it doesn't display the text (fiction or non-fiction), it displays digits (1, 2).

What shoudl I do so that it displays the text?

(3) I have tried to add "size" inside the array of the custom_column lines, but it didn't work. Am I missing something?
commandante is offline   Reply With Quote
Old 07-15-2016, 12:59 PM   #1292
Michel4632
Junior Member
Michel4632 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2014
Device: Moon+ reader pro on android
Hello,

With new version 1.0.0 installed, I can't get my opds catalog to work anymore on my moon+ reader.
I can see the structure of the database, but when I click on any link (e.g. 'recent additions' or any other), I get the following message : 'no validated OPDS content'.

Previous version (RC3) renamed cops_old sitting besides the new one on my NAS still works well (after updating the opds catalog link name in moon+ reader, of course).

Any idea? Any setting that I have copied wrong ?

Thanks,
Michel
Michel4632 is offline   Reply With Quote
Advert
Old 07-15-2016, 04:31 PM   #1293
Grishka
Member
Grishka began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Dec 2012
Device: Kindle
Hello There !

I was not involved here a long time, but the release of a new version of COPS does not happen every day!

I've just installed it on my Synology (no package, all manual, and webserver using appache), and so far it work very well. I just needed some time to tweak it a little, so Marvin on my iPhone could download book.

Nice work @vlad59 ! I'm really glad to see that COPS is still evolving :-)
Grishka is offline   Reply With Quote
Old 07-17-2016, 06:04 AM   #1294
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@Michael4632

Did you try to reach COPS with:

http://<IP-address-COPS>/cops/feed.php ??

I had the same error until I remembered ........
mariosipad is offline   Reply With Quote
Old 07-19-2016, 03:48 PM   #1295
Michel4632
Junior Member
Michel4632 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2014
Device: Moon+ reader pro on android
Quote:
Originally Posted by mariosipad View Post
@Michael4632

Did you try to reach COPS with:

http://<IP-address-COPS>/cops/feed.php ??

I had the same error until I remembered ........
Oh yes, you're a God ! :-)
For some reason, the feed.php part was not required for the previous version of COPS (RC3). It still works right beside the new one on my synology.
But anyhow, it is solved !

Thanks a lot !

The only thing that doesn't work well now is the page count in the opds catalog : you can actually turn pages of long lists, but the page index stay sticked to 1 (at least with moon+ reader). With HTML clients, it works well...

I should post that one in another topic, I guess.

Thanks
Michel
Michel4632 is offline   Reply With Quote
Advert
Old 07-21-2016, 11:38 AM   #1296
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
Quote:
Originally Posted by Michel4632 View Post
Oh yes, you're a God ! :-)
For some reason, the feed.php part was not required for the previous version of COPS (RC3). It still works right beside the new one on my synology.
But anyhow, it is solved !

Thanks a lot !
Fixed in https://github.com/seblucas/cops/com...14db47acd2d6b7
vlad59 is offline   Reply With Quote
Old 07-21-2016, 12:46 PM   #1297
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@vlad59

What a difference a "\" makes

It seems to work for Marvin as well (again?).


Last edited by mariosipad; 07-21-2016 at 12:48 PM.
mariosipad is offline   Reply With Quote
Old 07-21-2016, 01:22 PM   #1298
Freakeao
Connoisseur
Freakeao began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Nov 2012
Device: none
FBReader and OPDS 1.0.0

I upgraded to 1.0.0 release version and it works fine in chrome, but FBReader and the OPDS is not working.

I can see the first level in FBReader (which in my case is a DB selection screen) but then when I select one I just get 404 errors.

cops is installed in a /cops directory on my webserver.

Here's the output of feed.php in chrome

Code:
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:opds="http://opds-spec.org/2010/catalog" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dcterms="http://purl.org/dc/terms/">
<title>Books</title>
<subtitle>Books for Nerds</subtitle>
<id>cops:catalog</id>
<updated>2016-07-21T12:17:10-05:00</updated>
<icon>favicon.ico</icon>
<author>
<name>Sébastien Lucas</name>
<uri>http://blog.slucas.fr</uri>
<email>sebastien@slucas.fr</email>
</author>
<link href="feed.php" type="application/atom+xml;profile=opds-catalog;kind=navigation" rel="start" title="Home"/>
<link href="feed.php?" type="application/atom+xml;profile=opds-catalog;kind=navigation" rel="self"/>
<link href="feed.php?page=8" type="application/opensearchdescription+xml" rel="search" title="Search here"/>
<entry>
<title>Danzo's Books</title>
<updated>2016-07-21T12:17:10-05:00</updated>
<id>cops:0:catalog</id>
<content type="text">125 books</content>
<link href="feed.php?db=0" type="application/atom+xml;profile=opds-catalog;kind=navigation"/>
</entry>
<entry>
<title>Heidi's Books</title>
<updated>2016-07-21T12:17:10-05:00</updated>
<id>cops:1:catalog</id>
<content type="text">13 books</content>
<link href="feed.php?db=1" type="application/atom+xml;profile=opds-catalog;kind=navigation"/>
</entry>
</feed>

Here's an error from the log
Code:
192.168.1.105 debian - [19/Jul/2016:23:59:29 -0500] "GET /feed.php?db=0 HTTP/1.1" 404 345 "-" "FBReader/2.7 beta 15 (Android 5.1, falcon_cdma, XT1031)"

I checked the feed.php output from my old install and it generates links like this.

Code:
<link href="/cops.old/feed.php?db=0" type="application/atom+xml;profile=opds-catalog;kind=navigation"/>
Freakeao is offline   Reply With Quote
Old 07-21-2016, 06:04 PM   #1299
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@Freakeao

Have you seen the "fix" by @vlad59 for the file index.php in the COPS directory (on a server)?

https://github.com/seblucas/cops/com...14db47acd2d6b7

Just adding the "\" in the right place made a world of difference (for me).

Or you could reinstall COPS from the github source:

https://github.com/seblucas/cops
mariosipad is offline   Reply With Quote
Old 08-01-2016, 01:05 PM   #1300
Freakeao
Connoisseur
Freakeao began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Nov 2012
Device: none
I did a little digging around in the code and found what changed.

in base.php there is a new function getScriptName

PHP Code:
      public function getScriptName() {
          
$parts explode('/'$_SERVER["SCRIPT_NAME"]);
          return 
$parts[count($parts) - 1];
      } 
I changed to to what was happening in the previous version of the code.

PHP Code:
      public function getScriptName() {
          
#$parts = explode('/', $_SERVER["SCRIPT_NAME"]);
          #return $parts[count($parts) - 1];
          
return $_SERVER["SCRIPT_NAME"];
      } 
And now the feed.php output has the directory in the links and the FBReader OPDS client is happy again.
Freakeao is offline   Reply With Quote
Old 08-02-2016, 02:45 AM   #1301
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
@Freakeao

Can you see if there is a difference in the XML content before and after your modification.

I also use FBReader and I can confirm that both my main OPDS library (on a subdomain) and my development library (installed on /cops like you) work perfectly fine.
vlad59 is offline   Reply With Quote
Old 08-02-2016, 04:53 AM   #1302
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
@Freakeao

A few other questions :
* I noticed you're using a beta version of FBReader, did the same problem also happen with latest stable (I have 2.6.13 on my phone)
* Which webserver are you using ?
vlad59 is offline   Reply With Quote
Old 08-04-2016, 02:22 PM   #1303
Freakeao
Connoisseur
Freakeao began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Nov 2012
Device: none
@Vlad

I don't have a non beta version of FBReader installed anywhere.

I'm using Lighttpd 1.4.31 as my webserver on debian.

original output
Code:
<link href="feed.php?page=1&db=0" type="application/atom+xml;profile=opds-catalog;kind=navigation"/>
with my change
Code:
<link href="/cops/feed.php?page=1&db=0" type="application/atom+xml;profile=opds-catalog;kind=navigation"/>
But the weird thing is, I changed the code back to original and OPDS kept working fine on my phone and tablet.

So I don't know if there was some kind of caching problem or what.

I'll have to test again when I'm not on my home wi-fi.
Freakeao is offline   Reply With Quote
Old 08-06-2016, 11:17 PM   #1304
Freakeao
Connoisseur
Freakeao began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Nov 2012
Device: none
@Vlad

I've now tested from outside my home network on a different OPDS server entry with my external IP in FBReader.

I can get to the first level, but then I get 404 errors from then on.

It's very confusing.

Internal works fines still.

I'm switching back to my edit and will test again when I'm out of the house.
Freakeao is offline   Reply With Quote
Old 08-08-2016, 01:20 PM   #1305
superturrican
Member
superturrican began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2016
Device: Kobo Touch
I've just installed OPDS on a Raspberry Pi 2. All seemed to be working well. When I tested it out on my PC + Firefox, clicking on an epub link resulted in an epub downloading to the PC, as expected. However, when I try doing the same thing from the built-in web browser on my Kobo Touch, nothing happens. No epub is downloaded. The screen refreshes, and that's about it. Any ideas where I went wrong?

The log entry in nginx's log folder looked like this:
Code:
::ffff:192.168.x.x - - [08/Aug/2016:18:31:10 +0100] "GET /fetch.php?data=2930&type=epub&id=2287 HTTP/1.1" 200 357177 "-" "Mozilla/5.0 (Linux; U; Android 2.0; en-us;) AppleWebKit/538.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/538.1 (Kobo Touch)"

Last edited by superturrican; 08-08-2016 at 01:34 PM. Reason: Added Logfile Information
superturrican is offline   Reply With Quote
Reply

Tags
calibre opds, dns, kobo aura, synology


Forum Jump

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


All times are GMT -4. The time now is 03:53 AM.


MobileRead.com is a privately owned, operated and funded community.