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 01-12-2023, 06:10 AM   #16
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: 719
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);
    }

}
Are there any errors in the log files?
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2023-01-12 at 12.08.29.png
Views:	114
Size:	205.2 KB
ID:	198970  
mariosipad is offline   Reply With Quote
Old 01-12-2023, 09:28 AM   #17
huber70
Addict
huber70 has learned how to buy an e-book online
 
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
huber70 is offline   Reply With Quote
Advert
Old 01-12-2023, 09:47 AM   #18
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: 719
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
mariosipad is offline   Reply With Quote
Old 01-12-2023, 11:31 AM   #19
huber70
Addict
huber70 has learned how to buy an e-book online
 
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?
huber70 is offline   Reply With Quote
Old 01-12-2023, 12:30 PM   #20
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: 719
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.
mariosipad is offline   Reply With Quote
Advert
Old 01-12-2023, 12:34 PM   #21
huber70
Addict
huber70 has learned how to buy an e-book online
 
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...
huber70 is offline   Reply With Quote
Old 01-12-2023, 12:50 PM   #22
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: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Quote:
Originally Posted by huber70 View Post
@mariosipad
No fun really to read a book in a browser...
Certainly not on a 38" widescreen...

I prefer my iPad with an easy readable font size.
mariosipad is offline   Reply With Quote
Old 01-12-2023, 01:46 PM   #23
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
Tolino Vision 5 and 6, resp
huber70 is offline   Reply With Quote
Old 01-30-2023, 08:59 AM   #24
huber70
Addict
huber70 has learned how to buy an e-book online
 
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
huber70 is offline   Reply With Quote
Old 01-30-2023, 11:52 AM   #25
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: 719
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.
mariosipad is offline   Reply With Quote
Old 01-30-2023, 01:21 PM   #26
huber70
Addict
huber70 has learned how to buy an e-book online
 
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?
huber70 is offline   Reply With Quote
Old 01-31-2023, 07:23 AM   #27
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: 719
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:
  • I want to read a certain book
  • I use COPS to see if I have it, if YES
  • Download to e-reader/app
  • Read
mariosipad is offline   Reply With Quote
Old 01-31-2023, 09:56 AM   #28
huber70
Addict
huber70 has learned how to buy an e-book online
 
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
huber70 is offline   Reply With Quote
Old 01-31-2023, 10:49 AM   #29
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: 719
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).
mariosipad is offline   Reply With Quote
Old 01-31-2023, 11:11 AM   #30
huber70
Addict
huber70 has learned how to buy an e-book online
 
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
huber70 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
COPS : Calibre OPDS PHP Server vlad59 Related Tools 1911 03-04-2024 06:39 AM
OPDS in php or populate metadata.db from filesystem skelos Related Tools 0 09-06-2019 11:03 AM
php??? crutledge ePub 13 01-24-2014 06:27 PM
Which PHP version do you have? erayd Workshop 2 10-04-2010 08:02 PM


All times are GMT -4. The time now is 09:48 AM.


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