Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Error downloading specific SufficientVelocity story #713

Closed
dakswiggin opened this issue Jul 10, 2021 · 4 comments
Closed

[bug] Error downloading specific SufficientVelocity story #713

dakswiggin opened this issue Jul 10, 2021 · 4 comments

Comments

@dakswiggin
Copy link

Using 4.3.9 version FanficFare, CLI
Trying to download https://forums.sufficientvelocity.com/threads/nuka-girl-the-lone-teleporter-or-that-time-taylor-found-herself-in-the-fallout-universe.53339

Getting following trace:
Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/fanficfare", line 33, in <module> sys.exit(load_entry_point('FanFicFare==4.3.9', 'console_scripts', 'fanficfare')()) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/fanficfare/cli.py", line 310, in main do_download(url, File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/fanficfare/cli.py", line 468, in do_download output_filename = write_story(configuration, adapter, 'epub', File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/fanficfare/cli.py", line 62, in write_story writer.writeStory(outstream=outstream, metaonly=metaonly) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/fanficfare/writers/base_writer.py", line 204, in writeStory self.story = self.adapter.getStory(notification) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/fanficfare/adapters/base_adapter.py", line 240, in getStory data = self.getChapterTextNum(url,index) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/fanficfare/adapters/base_xenforoforum_adapter.py", line 695, in getChapterTextNum topsoup = self.make_soup(self.get_request(reader_url)) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/fanficfare/adapters/base_xenforoforum_adapter.py", line 232, in make_soup img['src'] = img['data-src'] File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/bs4/element.py", line 1406, in __getitem__ return self.attrs[key] KeyError: 'data-src'

Presumably happens due to following chapter: https://forums.sufficientvelocity.com/threads/nuka-girl-the-lone-teleporter-or-that-time-taylor-found-herself-in-the-fallout-universe.53339/page-38#post-20608393

@dakswiggin
Copy link
Author

Same error for https://forums.sufficientvelocity.com/threads/hereafter-worm-x-fate-grand-order.90656/threadmarks however for this fic there are no images in latest updates.

@Chirishman
Copy link

Chirishman commented Jul 13, 2021

Hey, I'm also seeing the data-src error and a complete failure to retrieve new chapters on a bunch of SV fics which I know to have more chapters than are in my local copy.

I've been seeing this error only since 7/10

I've identified 19 separate stories for which this error is occurring when checking for new chapters, but here are the three that have updated most recently:

https://forums.sufficientvelocity.com/threads/hatching-a-heist-worm-story-version.89760/
https://forums.sufficientvelocity.com/threads/kind-steel-foz-si.90353/
https://forums.sufficientvelocity.com/threads/bootstrapping-multi-cross-book-1-highschool-dxd.87200/

For these stories my local copies show the chapter/threadmark counts at 63, 8, and 10 respectively and when I run the check for updates I get a return of 0 new chapters found and "data-src" as the only error return.

If they were properly updating I would expect to see 67, 10, and 92 chapters on these three fics.

Just want to make sure your fix covers more than just the images not loading thing.

Status Title Author Comment URL
Error Hatching A Heist RecursiveMontage 'data-src' https://forums.sufficientvelocity.com/threads/hatching-a-heist-worm-story-version.89760/
Error Kind Steel Jaune Pendragon 'data-src' https://forums.sufficientvelocity.com/threads/kind-steel-foz-si.90353/
Error Bootstrapping Tersin 'data-src' https://forums.sufficientvelocity.com/threads/bootstrapping-multi-cross-book-1-highschool-dxd.87200/

Download 3 FanFiction Book(s)
FFF: INFO: 2021-07-13 00:18:57,406: calibre_plugins.fanficfare_plugin.jobs(49): CPUs:3
FFF: INFO: 2021-07-13 00:18:57,407: calibre_plugins.fanficfare_plugin.jobs(52): FanFicFare v4.3.0
FFF: INFO: 2021-07-13 00:18:57,407: calibre_plugins.fanficfare_plugin.jobs(68): Launch background process for site forums.sufficientvelocity.com:
https://forums.sufficientvelocity.com/threads/bootstrapping-multi-cross-book-1-highschool-dxd.87200/
https://forums.sufficientvelocity.com/threads/hatching-a-heist-worm-story-version.89760/
https://forums.sufficientvelocity.com/threads/kind-steel-foz-si.90353/
FFF: INFO: 2021-07-13 00:19:26,408: calibre_plugins.fanficfare_plugin.jobs(130):

================================================================================ site:(forums.sufficientvelocity.com)
FFF: INFO: 2021-07-13 00:18:59,665: calibre_plugins.fanficfare_plugin.jobs(211):

-------------------------------------------------------------------------------- https://forums.sufficientvelocity.com/threads/bootstrapping-multi-cross-book-1-highschool-dxd.87200/
FFF: DEBUG: 2021-07-13 00:18:59,702: configurable.py(1008): use_browser_cache:
FFF: DEBUG: 2021-07-13 00:18:59,703: configurable.py(1022): use_basic_cache:true
FFF: INFO: 2021-07-13 00:18:59,704: base_xenforoforum_adapter.py(424): url: https://forums.sufficientvelocity.com/threads/bootstrapping-multi-cross-book-1-highschool-dxd.87200/
FFF: DEBUG: 2021-07-13 00:18:59,705: fetcher.py(234):
========== MISS (GET) BasicCache
https://forums.sufficientvelocity.com/threads/bootstrapping-multi-cross-book-1-highschool-dxd.87200/
FFF: DEBUG: 2021-07-13 00:18:59,706: fetcher.py(441):
---------- REQ (GET) RequestsFetcher
Traceback (most recent call last):
File "calibre_plugins.fanficfare_plugin.jobs", line 260, in do_download_for_worker
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_adapter.py", line 308, in getStoryMetadataOnly
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_adapter.py", line 412, in doExtractChapterUrlsAndMetadata
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_xenforoforum_adapter.py", line 445, in extractChapterUrlsAndMetadata
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_xenforoforum_adapter.py", line 232, in make_soup
File "bs4\element.py", line 1401, in getitem
KeyError: 'data-src'
FFF: INFO: 2021-07-13 00:19:09,242: calibre_plugins.fanficfare_plugin.jobs(211):

Traceback (most recent call last):
File "calibre_plugins.fanficfare_plugin.jobs", line 260, in do_download_for_worker
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_adapter.py", line 308, in getStoryMetadataOnly
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_adapter.py", line 412, in doExtractChapterUrlsAndMetadata
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_xenforoforum_adapter.py", line 445, in extractChapterUrlsAndMetadata
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_xenforoforum_adapter.py", line 232, in make_soup
File "bs4\element.py", line 1401, in getitem
KeyError: 'data-src'
FFF: INFO: 2021-07-13 00:19:15,606: calibre_plugins.fanficfare_plugin.jobs(211):

Traceback (most recent call last):
File "calibre_plugins.fanficfare_plugin.jobs", line 260, in do_download_for_worker
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_adapter.py", line 308, in getStoryMetadataOnly
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_adapter.py", line 412, in doExtractChapterUrlsAndMetadata
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_xenforoforum_adapter.py", line 445, in extractChapterUrlsAndMetadata
File "C:\Users\Administrator\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_xenforoforum_adapter.py", line 232, in make_soup
File "bs4\element.py", line 1401, in getitem
KeyError: 'data-src'

FFF: INFO: 2021-07-13 00:19:26,408: calibre_plugins.fanficfare_plugin.jobs(142):
Download Results:
Error https://forums.sufficientvelocity.com/threads/hatching-a-heist-worm-story-version.89760/ 'data-src'
Error https://forums.sufficientvelocity.com/threads/kind-steel-foz-si.90353/ 'data-src'
Error https://forums.sufficientvelocity.com/threads/bootstrapping-multi-cross-book-1-highschool-dxd.87200/ 'data-src'

@dakswiggin
Copy link
Author

Dear @Chirishman
Seems you're using 4.3.0 version of FFF from 2021-05l30.
Bug was fixed in test version from 2021-07-10, I'd advise to try it.

@JimmXinu
Copy link
Owner

Already fixed. New version will be released shortly since it's actually a bit over due.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants