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 08-19-2021, 01:08 AM   #6361
Kammal
Junior Member
Kammal began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2014
Device: Kindle
Hello, the plugin is not fetching the images from Questionable Questing that are under spoilers.

Here is a example from QQ(SFW):
Quote:
<div class="ToggleTriggerAnchor bbCodeSpoilerContainer">
<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly"
title="Click to reveal or hide spoiler"
data-target="> .SpoilerTarget"><span>Spoiler: <span class="SpoilerTitle">Carol</span></span></button>
<div class="SpoilerTarget bbCodeSpoilerText"><img data-src="proxy.php?image=https%3A%2F%2Fi.pinimg.com%2F 474x%2F80%2F67%2F5b%2F80675b92b99d2b66ec1338054024 6490--fantasy-characters.jpg&amp;hash=fd0194ae2c0c5bf7b8ae4a1f96 bec08a" class="bbCodeImage LbImage lazyload" alt="[&#x200B;IMG]" data-url="https://i.pinimg.com/474x/80/67/5b/80675b92b99d2b66ec13380540246490--fantasy-characters.jpg" /><noscript><img src="proxy.php?image=https%3A%2F%2Fi.pinimg.com%2F 474x%2F80%2F67%2F5b%2F80675b92b99d2b66ec1338054024 6490--fantasy-characters.jpg&amp;hash=fd0194ae2c0c5bf7b8ae4a1f96 bec08a" alt="[&#x200B;IMG]"></noscript></div>
</div> <br />
and here is the output in the epub:
Quote:
<div class="ToggleTriggerAnchor bbCodeSpoilerContainer">
<button class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly"><span>Spoiler: <span class="SpoilerTitle">Carol</span></span></button>
<div class="SpoilerTarget bbCodeSpoilerText"><img alt="[​IMG]" class="bbCodeImage LbImage lazyload"/></div>
</div>

Last edited by Kammal; 08-19-2021 at 01:12 AM.
Kammal is offline   Reply With Quote
Old 08-19-2021, 06:10 PM   #6362
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Kammal View Post
Hello, the plugin is not fetching the images from Questionable Questing that are under spoilers.

Here is a example from QQ(SFW):


and here is the output in the epub:
It's best to use [code], not [quote] tags for code blocks. And then wrap the [code] tags in [SPOILER] tags if they are large. Just FYI.

Can you PM me the story URL?
JimmXinu is offline   Reply With Quote
Old 08-20-2021, 08:44 PM   #6363
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2021-08-20
- Fix for lazyload images in base_xenforoforum_adapter
JimmXinu is offline   Reply With Quote
Old 08-22-2021, 04:16 AM   #6364
Ser4nb2LUY6e
Connoisseur
Ser4nb2LUY6e began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jun 2017
Device: Moon+ Reader Pro on Android
The adapter for wuxiaworld.site has stopped working.

It fails for all stories with:

Code:
Traceback (most recent call last):
  File "calibre_plugins.fanficfare_plugin.jobs", line 260, in do_download_for_worker
  File "C:\Users\x\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_adapter.py", line 308, in getStoryMetadataOnly
  File "C:\Users\x\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_adapter.py", line 412, in doExtractChapterUrlsAndMetadata
  File "C:\Users\x\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\adapter_wuxiaworldsite.py", line 110, in extractChapterUrlsAndMetadata
AttributeError: 'NoneType' object has no attribute 'i'
Ser4nb2LUY6e is offline   Reply With Quote
Old 08-22-2021, 10:37 AM   #6365
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Ser4nb2LUY6e View Post
The adapter for wuxiaworld.site has stopped working.
I've opened issue #729.

If Kolbo5 (the original dev for that adapter) isn't interested or able to deal with it, I'll look into it more.
JimmXinu is offline   Reply With Quote
Old 08-22-2021, 12:05 PM   #6366
Ser4nb2LUY6e
Connoisseur
Ser4nb2LUY6e began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jun 2017
Device: Moon+ Reader Pro on Android
Quote:
Originally Posted by JimmXinu View Post
I've opened issue #729.

If Kolbo5 (the original dev for that adapter) isn't interested or able to deal with it, I'll look into it more.
How is it generally handled when html is loaded by scripts after loading the actual page?

I looked at the adapter code and the site, and it seems to me that on the site now, the list of chapters is being loaded on demand by a script via a post request to https://wuxiaworld.site/wp-admin/admin-ajax.php

But the adapter code is simply calling:
Code:
data = self.get_request(self.url)
soup = self.make_soup(data)
and assumes after that the the html which is dynamically loaded by the script is present. Is get_request purely a simple http request, or does it provide a full environment to execute javascript?
Ser4nb2LUY6e is offline   Reply With Quote
Old 08-22-2021, 12:13 PM   #6367
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Ser4nb2LUY6e View Post
How is it generally handled when html is loaded by scripts after loading the actual page?
...
To quote the issue linked in my post:
Quote:
The site wuxiaworld.site has changed significantly and breaks FFF's current code for parsing it.

The site is no longer serving the chapter list info in the HTML page and instead making a POST request in Javascript to .../admin-ajax.php to get the chapter list info.

The good news is that it appears the POST returns the chapter list as HTML that looks very similar to the previous chapter list code.

@Kolbo5, since you added this adapter to begin with, do you have the time (and interest) to deal with this?

You can search other adapters for post_request to see examples of how FFF performs POST requests.
FFF does not execute javascript.
JimmXinu is offline   Reply With Quote
Old 08-22-2021, 10:07 PM   #6368
Book_fury
Member
Book_fury began at the beginning.
 
Book_fury's Avatar
 
Posts: 20
Karma: 10
Join Date: Aug 2021
Device: None
How to set up login for a website on fanficfare

How do you login to a website that uses Facebook signing on fanficfare

Last edited by Book_fury; 08-22-2021 at 10:11 PM.
Book_fury is offline   Reply With Quote
Old 08-22-2021, 10:41 PM   #6369
Book_fury
Member
Book_fury began at the beginning.
 
Book_fury's Avatar
 
Posts: 20
Karma: 10
Join Date: Aug 2021
Device: None
Quote:
Originally Posted by Book_fury View Post
How do you login to a website that uses Facebook signing on fanficfare
The website I want to log into is webnovel but it uses Facebook login and it doesn’t ask for me to is there a way around that
Book_fury is offline   Reply With Quote
Old 08-22-2021, 11:27 PM   #6370
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
FFF doesn't do login for webnovel.com. Nor is it likely to be added. I'm very leery of downloading user/pass protected material from original/translated content sites.
JimmXinu is offline   Reply With Quote
Old 08-22-2021, 11:36 PM   #6371
Book_fury
Member
Book_fury began at the beginning.
 
Book_fury's Avatar
 
Posts: 20
Karma: 10
Join Date: Aug 2021
Device: None
Quote:
Originally Posted by JimmXinu View Post
FFF doesn't do login for webnovel.com. Nor is it likely to be added. I'm very leery of downloading user/pass protected material from original/translated content sites.
I get that thanks anyway
Book_fury is offline   Reply With Quote
Old 08-23-2021, 03:31 PM   #6372
FaceDeer
Connoisseur
FaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enough
 
Posts: 89
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
Long time since I've had anything go wrong with this plugin, so long time since my last comment. But alas, looks like the streak ended. I just noticed that none of the fanfics I've downloaded from Fimfiction since around July 1st or so have cover images. A few test downloads suggested that FFF is failing to fetch valid cover images, so I tried debugging a bit by scattering prints() about to see where it's going wrong. As far as I can see the adapter itself is working correctly - it finds the right URL and passes it to setCoverImage, getting back a return value that looks correct. Following execution down into addImgUrl in story.py shows it getting into the "# explicit cover, make the first image." block. At this point I'm well into code that I haven't poked around in before and I won't have much free time this evening to learn it, so I figured posting here was a good next step. I've randomly selected https://www.fimfiction.net/story/501587/ as a test example (it's recent and small) but the problem seems to apply to any story with a cover image. Given where I manage to get to in the code I don't think I've missed any obscure configuration settings anywhere, and this was working before with my existing config anyway so I doubt that's the problem.

Fortunately a test download of a story with inline images showed that FFF is getting those okay, so once I get this fixed it shouldn't be a big issue updating the stories I downloaded since whatever went wrong went wrong.
FaceDeer is offline   Reply With Quote
Old 08-23-2021, 04:22 PM   #6373
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
FaceDeer, I may have to disagree with you about your settings.

That story downloaded the cover correctly for me. As did the first three stories off the 'recently approved' list.

I'm using the current test version of FFF.
JimmXinu is offline   Reply With Quote
Old 08-23-2021, 04:29 PM   #6374
FaceDeer
Connoisseur
FaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enoughFaceDeer will become famous soon enough
 
Posts: 89
Karma: 706
Join Date: Nov 2012
Device: Kobo Touch
Interesting. I haven't touched the settings in living memory, but I do have a bunch of customizations from way back. I'll try fiddling them to see what's causing this. Thanks, "It Works On My Machine" is useful here.
FaceDeer is offline   Reply With Quote
Old 08-23-2021, 04:43 PM   #6375
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Covers are, unfortunately, one of the more complicated bits of FFF.

FYI, I use logger.debug() instead of print() and run in debug mode--I've had print()s not show up, especially in BG jobs.

Also, the cover image for https://www.fimfiction.net/story/501587/ is relatively small (335px × 150px), do you use a cover_min_size setting? (Seems unlikely that would be the case for all your updates, tho.)
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 11:34 PM.


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