![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 177
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
|
![]()
I like koreader, so my /mnt/ext1/system/config/extensions.cfg is very partial to it. However I also borrow DRM books from libraries, so I get .acsm. When I tap the acsm file icon on the home screen, or the entry in the librarian, the content is downloaded, the acsm file is deleted and the reader goes on opening the resulting epub. As expected, but since extensions.cfg says
Code:
epub:@EPUB_file:1:koreader.app,eink-reader.app:ICON_EPUB Is anyone aware of any trick I could play for triggering pbreader only on epubs coming from acsm downloads, while leaving koreader as preferred default for all others? ![]() ![]() Last edited by EastEriq; 08-16-2024 at 09:32 AM. |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46
Karma: 388296
Join Date: Aug 2022
Location: USA
Device: Pocketbook Inkpad Color 3
|
I have the same issue, so I simply unassigned KOReader from ePubs and open them from the KOReader itself. You can assign a key to switch between the applications — it's helpful after downloading new books via Send to Pocketbook feature.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,494
Karma: 134254362
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Thread belongs in the KOReader forum.
|
![]() |
![]() |
![]() |
#4 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 177
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 177
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,665
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
Interesting problem. What directory is the epub file that the acsm generates downloaded to?
|
![]() |
![]() |
![]() |
#7 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 177
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
|
The final epub goes in the same directory where the acsm file is, before it's deleted. IIRC sometimes you can see the librarian updating the percentage of the download in progress on the icon of the newly created epub, which would give the impression that no intermediate temporary file is involved, but I can't really tell, it may be just an animation. Then you see the librarian changing the file name with the book title and rendering the cover image, before the default reading program opens.
|
![]() |
![]() |
![]() |
#8 | |
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,665
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
Quote:
What is the process for acquiring the acsm files on your pocketbook? |
|
![]() |
![]() |
![]() |
#9 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 177
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
|
Quote:
Quote:
![]() ![]() ![]() ![]() |
||
![]() |
![]() |
![]() |
#10 | |
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,665
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
Quote:
We could leave extensions.cfg as-is, the default for epubs remaining as Koreader. But we could run a check for the directory the epub is in and (if the check matches the dedicated directory) create a entry for that specific epub in handlers.cfg with PBReader as the default. I was thinking a few lines of code at the start of the koreader launcher file in /mnt/ext1/system/bin/koreader.app may suffice. Run the check, if the check matches the dedicated directory we write to handlers.cfg and exit without launching koreader. You'd then have to click on the book a second time for it to launch with PBreader. If the check does not match the dedicated directory, no writing to handlers.cfg and Koreader launches the epub as usual. Last edited by neil_swann80; Yesterday at 05:20 PM. |
|
![]() |
![]() |
![]() |
#11 |
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,665
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
Try using this custom version of /mnt/ext1/system/bin/koreader.app:
Code:
#!/bin/sh epubDir=$(dirname "$1") openWith="/mnt/ext1/system/config/handlers.cfg" if [ "$epubDir" == "/mnt/ext1/ACSM" ]; then echo "${1}:eink-reader.app" >> $openWith exit fi exec /mnt/ext1/applications/koreader.app "$@" Last edited by neil_swann80; Today at 03:06 AM. |
![]() |
![]() |
![]() |
#12 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 177
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
|
Thanks, I will check it in due time, I'm on the move today.
Another idea I had is that if there was a small application capable of determining whether the epub is DRMed or not, that one could be set as the default opener, in a script which then calls either eink-reader or koreader depending on the result. Still another one is that koreader does detect that an epub is DRMd (because it reports it), so a user patch cold be that it closes itself launching eink-reader instead. |
![]() |
![]() |
![]() |
#13 | ||
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,665
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
Quote:
Quote:
If you make any progress please post it here, I'd be interested to see your approach. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOreader as default on Boox Poke 3 | Waylander | KOReader | 4 | 05-22-2021 05:09 PM |
Plato or Koreader by default | stiivo | Kobo Reader | 3 | 07-28-2020 02:39 PM |
eBooks use epub so why am I getting an acsm file? | Atomised | Conversion | 9 | 05-30-2018 04:51 PM |
epub and ocsm (NOT acsm) | clemens14 | ePub | 0 | 12-26-2015 03:07 PM |
How long between dowloading the .acsm and downloading epub? | Mad_Max | ePub | 0 | 01-07-2011 02:18 PM |