Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-19-2023, 12:02 AM   #9091
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: 11,026
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: I have include_subject_tags set to a custom 'tagscategory' entry.

If I edit tagscategory, it adds new entries rather than replacing the column.

Is there a way to set it to always replace?

Additional question: When 'open pages' enabled, FanFicFare opens an ffnet author page when there's no cover image at all (not even a generic 'mystery head' image). Intended?

Last edited by ownedbycats; 11-19-2023 at 12:09 AM.
ownedbycats is online now   Reply With Quote
Old 11-19-2023, 12:46 AM   #9092
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Question: I have include_subject_tags set to a custom 'tagscategory' entry.

If I edit tagscategory, it adds new entries rather than replacing the column.

Is there a way to set it to always replace?
I would assume you have the 'Keep Existing Tags when Updating Metadata?' checkbox on. It's on the General tab, left side, in the 'Updating Calibre Options' box.
Quote:
Originally Posted by ownedbycats View Post
Additional question: When 'open pages' enabled, FanFicFare opens an ffnet author page when there's no cover image at all (not even a generic 'mystery head' image). Intended?
The code says it only loads the author page if there's a cover URL found and both skip_author_cover and include_images are true. Without an example, I assume either a bad image URL, or the site hiding the <img> tag with CSS.

You could turn off skip_author_cover to avoid it entirely.
JimmXinu is offline   Reply With Quote
Advert
Old 11-19-2023, 05:19 AM   #9093
apm
Junior Member
apm began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2016
Device: none
Hi, I'm having an issue where FFF is only downloading the first two chapters of a ten-chapter story. I think it's related to the author changing the name of the story after those two chapters.

Moderator Notice
NSFW links removed by Mod--please don't post NSFW links on MobileRead. You can use PM instead.


If I put in any of the later URLs, it still only downloads chapters 1-2.

Last edited by JimmXinu; 11-19-2023 at 11:32 AM. Reason: Remove NSFW links
apm is offline   Reply With Quote
Old 11-19-2023, 09:32 AM   #9094
apm
Junior Member
apm began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2016
Device: none
Quote:
Hi, I'm having an issue where FFF is only downloading the first two chapters of a ten-chapter story. I think it's related to the author changing the name of the story after those two chapters.
Update: Working from the CLI, it works fine, so just an issue with the plugin version it seems.
apm is offline   Reply With Quote
Old 11-19-2023, 10:27 AM   #9095
mrEd
Member
mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.
 
Posts: 17
Karma: 8634
Join Date: Oct 2020
Device: none
SOL is broken again. Only the chapter index page is being downloaded.
mrEd is offline   Reply With Quote
Advert
Old 11-19-2023, 11:37 AM   #9096
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by apm View Post
Hi, I'm having an issue where FFF is only downloading the first two chapters of a ten-chapter story. I think it's related to the author changing the name of the story after those two chapters.

Moderator Notice
NSFW links removed by Mod--please don't post NSFW links on MobileRead. You can use PM instead.


If I put in any of the later URLs, it still only downloads chapters 1-2.
Quote:
Originally Posted by apm View Post
Update: Working from the CLI, it works fine, so just an issue with the plugin version it seems.
This is a known issue that, IMO, is a site bug. See this post last month.

Quote:
Originally Posted by mrEd View Post
SOL is broken again. Only the chapter index page is being downloaded.
See Issue #1013.
JimmXinu is offline   Reply With Quote
Old 11-19-2023, 12:23 PM   #9097
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2023-11-19
- adapter_storiesonlinenet: Update for chapter URL change. See #1013

Note that this change invalidates the existing chapter URLs in existing EPUBs.

When you update an existing EPUB, FFF will download all chapters again because the chapter URLs in existing EPUB chapters won't match what the site now shows. See #1013 for full details.
JimmXinu is offline   Reply With Quote
Old 11-19-2023, 01:51 PM   #9098
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2023-11-19
- adapter_storiesonlinenet: Update for chapter URL change. See #1013
- adapter_fanfictionnet: Only use data-original cover images.

Quote:
Originally Posted by JimmXinu View Post
The code says it only loads the author page if there's a cover URL found and both skip_author_cover and include_images are true. Without an example, I assume either a bad image URL, or the site hiding the <img> tag with CSS.
Looking at this in more depth, it appears that ffnet no longer ever uses cover images that aren't defined with 'data-original' (ie, you can click and see a slightly larger version) and always sets src="/static/images/d_60_90.jpg" now.

So we're ignoring any cover image tag that doesn't have data-original.
JimmXinu is offline   Reply With Quote
Old 11-19-2023, 02:00 PM   #9099
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: 11,026
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thank you!
ownedbycats is online now   Reply With Quote
Old 11-19-2023, 05:56 PM   #9100
mrEd
Member
mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.
 
Posts: 17
Karma: 8634
Join Date: Oct 2020
Device: none
Thanks
mrEd is offline   Reply With Quote
Old 11-20-2023, 05:22 AM   #9101
bpothier
Member
bpothier began at the beginning.
 
Posts: 20
Karma: 10
Join Date: May 2020
Device: Kobo
The initial fix for issue 1013 breaks for paid SOL users with error:
line 550, in getChapterText
AttributeError: 'NoneType' object has no attribute 'find'

and

Error https://storiesonline.net/s/00001/this-is-a-test 'NoneType' object has no attribute 'find'

Paid users get 2 links per chapter within the same list. The "download chapter" link use format URL like "/library/download.php?id=xxxxxx" and the URL links of format "/s/00001/this-is-a-test/1"

submitted new pull request to only grab URLs containing "/s/".

Last edited by bpothier; 11-20-2023 at 05:25 AM.
bpothier is offline   Reply With Quote
Old 11-20-2023, 10:39 AM   #9102
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2023-11-20
- adapter_storiesonlinenet: Update for chapter URL change for paid subs. See #1014, thanks bpothier!
JimmXinu is offline   Reply With Quote
Old 11-20-2023, 12:11 PM   #9103
mrEd
Member
mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.
 
Posts: 17
Karma: 8634
Join Date: Oct 2020
Device: none
Another issue with some SOL stories, They're using /n/ instead of /s/ for some stories, which gives a bad story url error.

Using the python CLI and changing n to s, it downloads but still does the thing of only putting links in the book, with no chapters. Version 4.29.4

Example URL:
n/25243/variation-on-a-theme-book-5
mrEd is offline   Reply With Quote
Old 11-20-2023, 12:40 PM   #9104
mrEd
Member
mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.mrEd shines like a glazed doughnut.
 
Posts: 17
Karma: 8634
Join Date: Oct 2020
Device: none
Very quick fix for the latest test version of the plugin:

Change line 90 of adapter_storiesonlinenet.py to
Code:
return r"https?://"+re.escape(self.getSiteDomain())+r"/(s|n|library)/(storyInfo.php\?id=)?(?P<id>\d+)(?P<chapter>:\d+)?(?P<title>/.+)?((;\d+)?$|(:i)?$)?"
Under line 225, add this:
Code:
chapters += soup.select('div#index-list a[href*="/n/"]')
There's a whole load of other places where it's looking for /s/, but this at least gets the chapters read correctly.

Last edited by mrEd; 11-20-2023 at 12:52 PM.
mrEd is offline   Reply With Quote
Old 11-20-2023, 12:48 PM   #9105
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by mrEd View Post
Very quick fix for the latest test version of the plugin:
That will also break it for /s/ stories.

If you wait a little while, I have a fix; but also I'm looking at another problem to potentially include in the next test version.
JimmXinu is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[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 09:36 PM.


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