Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 05-10-2025, 11:59 AM   #10741
Elseria
Junior Member
Elseria began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2025
Device: none
Quote:
Originally Posted by JimmXinu View Post
I was able to download the images in that story. I would suspect it's an issue with the image hosting blocking.
Thank you for verifying.
I had initially dropped that idea since my VPNs were also not working.

I dug a bit deeper and for some reason or another, what ended up being the problem for me was it was unable to handle image URLs with leading forward slashes (src="//46613.mitemin.net/.../"), which resulted in a request with extra forward slashes after the https (https:////46613.mitemin.net/.../).

I added a line in the plugin code to replace "https:////" with "https://" and that fixed this for me.

Not sure why this only affected my end; I'm guessing some sort of windows setting on my machine that causes it to be a problem, but I'm not gonna worry about it.
Elseria is offline   Reply With Quote
Old 05-10-2025, 04:46 PM   #10742
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,680
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
New Test Version Posted

2025-05-10
- AO3 make use_(domain) options not replace media.archiveofourown.org
It worked!

New question, re: the same story (https://archiveofourown.org/works/42492291). The cover selected the second image, not first. (Both downloaded.) I wanted to do anyways, but why did it happen?

EDIT: I also updated https://github.com/JimmXinu/FanFicFa...s#mirror-sites to note the change.

Last edited by ownedbycats; 05-10-2025 at 04:57 PM.
ownedbycats is offline   Reply With Quote
Old 05-10-2025, 05:18 PM   #10743
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,842
Karma: 4604429
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by ownedbycats View Post
New question, re: the same story (https://archiveofourown.org/works/42492291). The cover selected the second image, not first. (Both downloaded.) I wanted to do anyways, but why did it happen?
My download used the first embedded image as cover.

However, that first image comes out quite small vertically with the default image_max_size. If you have a custom cover_min_size setting, it may have rejected the first image.
JimmXinu is offline   Reply With Quote
Old 05-10-2025, 05:51 PM   #10744
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,680
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
ah, yeah I do. Thanks.
ownedbycats is offline   Reply With Quote
Old 05-11-2025, 03:23 AM   #10745
Clem2605
Connoisseur
Clem2605 began at the beginning.
 
Posts: 51
Karma: 10
Join Date: May 2020
Device: Kobo H2O, Kobo Libra H2O, Boox Tab Ultra C
Quote:
Originally Posted by JimmXinu View Post
It could be that the image didn't process. I'd have to see the story in question to do more than speculate.
I'm sorry, I forgot I had asked a question...

As far as I know, it doesn't work with any story on ff.net, but here are two random one:

https://www.fanfiction.net/s/3125559/1/Anabasis
https://www.fanfiction.net/s/1148107...tute-And-Alive

I have checked my cover setting and everything should work, the covers are still made from A03, and the only piece of code related to the cover in the fanfiction.net section is:
[CODE]skip_author_cover:false[CODE]
Clem2605 is offline   Reply With Quote
Old 05-11-2025, 10:22 AM   #10746
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,842
Karma: 4604429
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by Clem2605 View Post
As far as I know, it doesn't work with any story on ff.net, but here are two random one:

https://www.fanfiction.net/s/3125559/1/Anabasis
https://www.fanfiction.net/s/1148107...tute-And-Alive

I have checked my cover setting and everything should work, the covers are still made from A03, and the only piece of code related to the cover in the fanfiction.net section is:
[CODE]skip_author_cover:false[CODE]
I'm able to download those covers fine (with skip_author_cover:false).

Do you have cover_min_size set? ffnet 'covers' are really just thumbnails. Even the 'big' version is only 180x240
JimmXinu is offline   Reply With Quote
Old 05-11-2025, 01:56 PM   #10747
mijkala
Junior Member
mijkala began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2024
Device: kobo clara bw
Workaround + Bookmark notes

Quote:
Originally Posted by ownedbycats View Post
https://github.com/JimmXinu/FanFicFa...oblematicSites

I hope AO3 hurries up and fixes it so we can stop answering these questions.
I do hope the fix it soon too.

I've been able to download and update things using the archiveofourown.gay and can even download locked fics bc I'm logged in, but it doesn't save any of my bookmark notes.

Do you know any work arounds for that besides manually going into each book and adding it? I had my personal.ini set up so on the the title page it would include my "bookmark summary"
mijkala is offline   Reply With Quote
Old 05-12-2025, 05:13 PM   #10748
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,680
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Request: I've come across fics where varying numbers of <br> tags were enclosed in <p> tags (here's one). remove_empty_p didn't remove these, not empty.

Should they? I can imagine <p><br><br></p> being used for scene dividers, but not actually seen it. Might also be unintended effects?

remove_empty_p is kinda kludge, so may not want to tinker too much.

Last edited by ownedbycats; 05-12-2025 at 05:15 PM.
ownedbycats is offline   Reply With Quote
Old 05-12-2025, 05:36 PM   #10749
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,842
Karma: 4604429
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Code:
## Some sites/authors/stories (notably AO3/OTW) add empty p tags where
## they aren't intended by the author during document upload and not
## all authors know how/take the time to fix it.  This feature removes
## all "empty" <p> tags, ie, those containing only whitespace or <br>
## tags.  Literally: <p[^>]*>\s*(<br/>)*\s*</p>
#remove_empty_p: false
So apparently I need to change that to <p[^>]*>\s*(<br/?>)*\s*</p>

Gee, it sure would be nice if I knew a story that was exhibiting the problem to test with... -- My bad--I missed seeing the URL.
JimmXinu is offline   Reply With Quote
Old 05-12-2025, 06:06 PM   #10750
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,842
Karma: 4604429
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version Posted

2025-05-12
- Fix remove_empty_p regexp to work with nested <br> tags and whitespace.

Since remove_empty_p was only added last month, it's likely this is the first time someone's actually tried to use it with nested <br> tags for real.
JimmXinu is offline   Reply With Quote
Reply

Tags
fanfiction

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 514 03-23-2025 10:26 AM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 01:12 AM.


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