01-12-2023, 07:10 AM | #16 |
Guru
Posts: 723
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
One can never be too curious ;-) My last lines are: Code:
$this->functionBody = $func; // For PHP 8 replace this line //return create_function ('$it', $func); // with return function ($it) use ($func) { return eval($func); }; // end replace } public function execute ($data) { return $this->functionCode ($data); } } |
01-12-2023, 10:28 AM | #17 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
thanks for reply - just found it out by myself (and/or reading other contributions here), just to follow the postcount 1890 and to copy the code from 3) leads to the nirvana as the return eval in line 2 is missing... Everything is well - I changed back to php 8.0 and hope, that it will last (until next year, when I have to change to 8.1 etc) best regards, Peter |
Advert | |
|
01-12-2023, 10:47 AM | #18 |
Guru
Posts: 723
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
Peter, Sorry for the missing return. Great that it all works now. Personally I would go with PHP8.1 over 8.0 as 8.0 is no longer developed. See: https://www.php.net/supported-versions.php Happy reading! Mario |
01-12-2023, 12:31 PM | #19 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
thanks - hopefully one last question: when I open a book in the reader out of COPS I receive the book in horizontal version (with just half the cover) - is vertical not possible?
|
01-12-2023, 01:30 PM | #20 |
Guru
Posts: 723
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
The internal reader of COPS was meant for "quick browsing" a book, not really for reading it. The creator of COPS meant to replace the reader, but never finished it (I think he got on with life and work). A half cover means that the cover is too big (too many pixels) to display on your screen. And as far as I know vertical scrolling through the pages of a book is not possible. Only horizontal, just like a real book. When I want to read a book in a browser I almost always use "epubreader". This is a browser extension for firefox, chrome and chrome-based browsers like Brave. https://www.mobileread.com/forums/fo...play.php?f=211 Another option is using a self hosted reader like ePubViewer https://github.com/pgaskin/ePubViewer and others. |
Advert | |
|
01-12-2023, 01:34 PM | #21 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
well, it was just a question - you're right: quick browsing - not really reading.. No fun really to read a book in a browser... |
01-12-2023, 01:50 PM | #22 |
Guru
Posts: 723
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
|
01-12-2023, 02:46 PM | #23 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
Tolino Vision 5 and 6, resp
|
01-30-2023, 09:59 AM | #24 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
Has somebody tried to extend the queries at the hime page by meore components eg type of file "epub", "mobi", "pdf" etc
calibre2opds offers more possibilities of customer defined categories which I miss within COPS That's the reason I am still running both via web |
01-30-2023, 12:52 PM | #25 |
Guru
Posts: 723
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
If you know php it certainly can be done (but not by me). It's here that COPS shows it's age. Anything that was not included in 2018 (in COPS and or Calibre) is not easily added. I put e-pubs, comics, mobi + azw3 and pdf's in their own calibre directory. So if I want comics, I just open that directory and I only get comics. |
01-30-2023, 02:21 PM | #26 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
"So if I want comics, I just open that directory and I only get comics." well, so I did Anything: calibre itsself is being developed permanently and includes (as far as I am concerned) all features requested And what's about alternatives to COPS/OPDS? |
01-31-2023, 08:23 AM | #27 |
Guru
Posts: 723
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
The "best" alternative to COPS is calibre-web (Link:https://github.com/janeczku/calibre-web) It looks great, but is it overkill for my humble needs. I like the utilitarian interface of COPS. My read flow:
|
01-31-2023, 10:56 AM | #28 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
I agree, the main reason for my question is the intention to share my library with some good freinds via the net and I have the problem that I cannot install it in my Synology as I am using no +version of NAS and therefore I am not able to install docker |
01-31-2023, 11:49 AM | #29 |
Guru
Posts: 723
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
Then COPS is a good and working option. Give every user his/her own user/password and library selection (not every user should have access to my "private" collection). |
01-31-2023, 12:11 PM | #30 |
Addict
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
thanks, passwords are set via 1.) website and 2.) via server |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
COPS : Calibre OPDS PHP Server | vlad59 | Related Tools | 1920 | 11-03-2024 02:52 PM |
OPDS in php or populate metadata.db from filesystem | skelos | Related Tools | 0 | 09-06-2019 12:03 PM |
php??? | crutledge | ePub | 13 | 01-24-2014 07:27 PM |
Which PHP version do you have? | erayd | Workshop | 2 | 10-04-2010 09:02 PM |