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, 09:32 AM   #9091
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   #9092
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
Old 11-19-2023, 11:37 AM   #9093
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: 7,327
Karma: 5007213
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   #9094
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: 7,327
Karma: 5007213
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   #9095
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: 7,327
Karma: 5007213
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   #9096
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,633
Karma: 81412473
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thank you!
ownedbycats is offline   Reply With Quote
Old 11-19-2023, 05:56 PM   #9097
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   #9098
bpothier
Enthusiast
bpothier began at the beginning.
 
Posts: 25
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   #9099
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: 7,327
Karma: 5007213
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   #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
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   #9101
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   #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: 7,327
Karma: 5007213
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
Old 11-20-2023, 12:52 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
Just tested, working fine on /s/ stories as well.

Just looked at the code posted, second part should have been +=, not just equals. Will edit now.
mrEd is offline   Reply With Quote
Old 11-20-2023, 01:01 PM   #9104
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: 7,327
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2023-11-20
- adapter_storiesonlinenet: Allow /n/ as well as /s/ paths
- adapter_storiesonlinenet: Update for chapter URL change for paid subs. See #1014, thanks bpothier!
JimmXinu is offline   Reply With Quote
Old 11-20-2023, 02:24 PM   #9105
Da Man
Enthusiast
Da Man began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Jun 2018
Device: none
Is it right that I have to redownload the complete fic to get chapters that got updated? It would be nice if FFF could detect updated chapters to prevent having to do that, especially from FFN.
Da Man is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 405 02-09-2026 07:54 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 529 01-28-2026 10:32 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:06 AM.


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