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 02-17-2023, 12:30 AM   #8071
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,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: What options are there to deal with Zalgo? My Kobo renders it as a bunch of overlapping notdef squares.
ownedbycats is offline   Reply With Quote
Old 02-17-2023, 12:33 AM   #8072
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 70
Karma: 76
Join Date: Apr 2019
Device: none
Quote:
Originally Posted by applegaa View Post
It looks like Scribblehub changed something today that stops FFF from working.
I'm not sure what was going on, but it's working again now.

- Andrew
applegaa is offline   Reply With Quote
Old 02-17-2023, 10:13 AM   #8073
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by applegaa View Post
It looks like Scribblehub changed something today that stops FFF from working.
...
Quote:
Originally Posted by applegaa View Post
I'm not sure what was going on, but it's working again now.
Scribblehub uses CloudFlare, as do many other sites. I would not be surprised if behavior on one site can affect throttling/blocking on an unrelated site these days. I have no proof of that, but it's technilogically possible.

Scribblehub works for me with Calibre plugin, but not FFF CLI. No idea why. Nor would I currently be able to pursue the issue. Last time there were Scribblehub issues, somebody else fixed them.
https://github.com/JimmXinu/FanFicFare/pull/900

Quote:
Originally Posted by ownedbycats View Post
Question: What options are there to deal with Zalgo? My Kobo renders it as a bunch of overlapping notdef squares.
From defaults.ini:
Code:
## Some authors use 'Zalgo' text--arbitrary and often excessive
## added/combined unicode markings--to indicate 'noise' of some kind.
## While a critical part of some languages, when over used it can also
## cause problems for some ebook readers, such as Kindle.
## https://stackoverflow.com/questions/6579844/how-does-zalgo-text-work
## This setting will reduce the number 'Zalgo' characters.  Set to 0
## to remove all of them, -1 or leave undefined for no limit.
## Note: This will also remove other 'marked' unicode characters. If
## set to 0, café will become cafe, déjà -> deja, etc.  1 will keep
## single marks and is the recommended setting if you use it.
#max_zalgo:1
JimmXinu is offline   Reply With Quote
Old 02-17-2023, 12:39 PM   #8074
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,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thanks. I didn't think to search 'Zalgo' itself
ownedbycats is offline   Reply With Quote
Old 02-17-2023, 04:20 PM   #8075
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,185
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
replace_metadata regex prevent infinite recursion

Hello,

I have a question about my "replace_metadata:" settings.

Code:
 
 fandoms=>.*陈情令 \|\ The Untamed.*=>陈情令 | The Untamed
 fandoms=>.*魔道祖师 \|\ Módào Zǔshī.*=>魔道祖师 | Módào Zǔshī
 fandoms=>.*魔道祖师 - 墨香铜臭 \|\ Módào Zǔshī - Mòxiāng Tóngxiù.*=>魔道祖师 - 墨香铜臭 | Módào Zǔshī - Mòxiāng Tóngxiù
 fandoms=>.*(陈情令 \|\ The Untamed|魔道祖师 - 墨香铜臭 \|\ Módào Zǔshī - Mòxiāng Tóngxiù|魔道祖师 \|\ Módào Zǔshī).*=>\1\,陈情令 | The Untamed
This code works in that it adds the tag "陈情令 | The Untamed" to all the Untamed fics from AO3, even if they don't have "The Untamed" in the fandom tag.

I still want to keep "Módào Zǔshī" tags because they can tell me if the primary source for the fan fiction is from the novel or comic. However, I'm adding "The Untamed" tag so I can locate all fics from this fandom with one tag.

The concern I have with my method is when I ran Calibre in Debug mode I got this error line:

Code:
FFF: INFO: 2023-02-17 11:50:25,615: story.py(883): Skipping replace_metadata line 'fandoms=>(陈情令 \|\ The Untamed|魔道祖师 - 墨香铜臭 \|\ Módào Zǔshī - Mòxiāng Tóngxiù|魔道祖师 \|\ Módào Zǔshī)=>\1\,陈情令 | The Untamed' on fandoms to prevent infinite recursion.
Is there a better way to run my replace_metadata: without potentially causing an infinite recursion, or needing 4 lines of code?

Thanks,
Amalthia
Amalthia is offline   Reply With Quote
Old 02-17-2023, 05:25 PM   #8076
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Amalthia View Post
I have a question about my "replace_metadata:" settings.
...
Code:
FFF: INFO: 2023-02-17 11:50:25,615: story.py(883): Skipping replace_metadata line 'fandoms=>(陈情令 \|\ The Untamed|魔道祖师 - 墨香铜臭 \|\ Módào Zǔshī - Mòxiāng Tóngxiù|魔道祖师 \|\ Módào Zǔshī)=>\1\,陈情令 | The Untamed' on fandoms to prevent infinite recursion.
Is there a better way to run my replace_metadata: without potentially causing an infinite recursion, or needing 4 lines of code?
You don't need to worry about an infinite recursion, the system is already preventing it. It's only an 'INFO' level message.

I believe what's happening is your "陈情令 | The Untamed" string is also matched by the pattern. I believe you could remove the "陈情令 \|\ The Untamed|" part of the pattern to prevent that INFO msg without hurting anything.
JimmXinu is offline   Reply With Quote
Old 02-17-2023, 05:47 PM   #8077
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,185
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by JimmXinu View Post
You don't need to worry about an infinite recursion, the system is already preventing it. It's only an 'INFO' level message.

I believe what's happening is your "陈情令 | The Untamed" string is also matched by the pattern. I believe you could remove the "陈情令 \|\ The Untamed|" part of the pattern to prevent that INFO msg without hurting anything.
thanks! I'll update my code.
Amalthia is offline   Reply With Quote
Old 02-18-2023, 02:47 AM   #8078
sios00
Enthusiast
sios00 began at the beginning.
 
Posts: 31
Karma: 10
Join Date: May 2022
Device: Kobo Libra 2
Hi, what's the latest version of flaresolverr https://github.com/FlareSolverr/FlareSolverr that works with FanficFare? I just downloaded the latest version v3.0.2 using Docker Desktop Windows (docker pull flaresolverr/flaresolverr) and then starting it, but it doesnt seem to work. It's serving on http://0.0.0.0:8191. Is 8191 the correct port?

in my personal.ini, I have use_flaresolverr_proxy:true

Thanks!
sios00 is offline   Reply With Quote
Old 02-18-2023, 04:30 AM   #8079
sios00
Enthusiast
sios00 began at the beginning.
 
Posts: 31
Karma: 10
Join Date: May 2022
Device: Kobo Libra 2
is there any way to add my password with apostrophes to AO3 in the personal.ini?

My password has the % symbol in it, and it results in this error (password slightly modified)

Code:
"calibre, version 6.13.0
ERROR: Unhandled exception: <b>InterpolationSyntaxError</b>:'%' must be followed by '%' or '(', found: "%x5'"

calibre 6.13  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 3) && Count Pages (1, 12, 1) && EpubMerge (2, 15, 0) && FanFicFare (4, 20, 4) && Generate Cover (2, 3, 2) && Goodreads (1, 7, 3) && KePub Input (3, 6, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 6, 3) && Kindle hi-res covers (0, 5, 0) && Kobo Utilities (2, 16, 6) && KoboTouchExtended (3, 6, 3) && Manage Series (1, 5, 0) && View Manager (1, 10, 2)
Traceback (most recent call last):
  File "calibre_plugins.fanficfare_plugin.dialogs", line 1398, in accept
  File "calibre_plugins.fanficfare_plugin.fff_util", line 48, in test_config
  File "C:\Users\name\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\configurable.py", line 931, in test_config
  File "configparser.py", line 860, in items
  File "configparser.py", line 860, in <listcomp>
  File "configparser.py", line 856, in <lambda>
  File "configparser.py", line 395, in before_get
  File "configparser.py", line 442, in _interpolate_some
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: "%x5'"
sios00 is offline   Reply With Quote
Old 02-18-2023, 10:08 AM   #8080
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by sios00 View Post
Hi, what's the latest version of flaresolverr https://github.com/FlareSolverr/FlareSolverr that works with FanficFare? I just downloaded the latest version v3.0.2 using Docker Desktop Windows (docker pull flaresolverr/flaresolverr) and then starting it, but it doesnt seem to work. It's serving on http://0.0.0.0:8191. Is 8191 the correct port?
I have briefly tested FlareSolverr 3.0.2 with Docker without issue, but only with FlareSolverr on a different computer (I didn't want to install Docker on mine). Yes, 8191 is the expected port.

I wouldn't be surprised if there's a firewall or other protective program blocking you.

Quote:
Originally Posted by sios00 View Post
My password has the % symbol in it, and it results in this error (password slightly modified)
Percent(%) signs need to be doubled up to be escaped. For example:
Code:
## Date formats used by FanFicFare.  Published and Update don't have time.
## See http://docs.python.org/library/datetime.html#strftime-strptime-behavior
## Note that ini format requires % to be escaped as %%.
dateCreated_format:%%Y-%%m-%%d %%H:%%M:%%S
datePublished_format:%%Y-%%m-%%d
dateUpdated_format:%%Y-%%m-%%d
JimmXinu is offline   Reply With Quote
Old 02-18-2023, 10:34 AM   #8081
sios00
Enthusiast
sios00 began at the beginning.
 
Posts: 31
Karma: 10
Join Date: May 2022
Device: Kobo Libra 2
Thanks for the reply! I think it's a Flaresolverr issue, I switched to running the Python file and it works.

Also, I think there's a bug in downloading long series from AO3.
For example, when I download "Get story URLs from web page" the series https://archiveofourown.org/series/1344409 , the series numbers don't match with those found on AO3.

For example, 2 stories are downloaded with [74] in the series, and no [73]. Also, the series number that gets downloaded doesnt match with the one on Ao3. For example, [64] that gets downloaded by Fanficfare ends up being "Hangover", but in AO3, it's supposed to be number 65. And Fanficfare doesn't download 65 at all.

It also downloads 2 different stories and labels them as 67. One of those downloaded as 67 is listed as 68 on AO3, "A pint of bitter and a cider".

These are just some of the examples.
sios00 is offline   Reply With Quote
Old 02-18-2023, 11:29 AM   #8082
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by sios00 View Post
Also, I think there's a bug in downloading long series from AO3.
I was all ready to call you crazy, but for thoroughness sake, I downloaded the series. And sure enough, it's full of mis-numberings.

But it's AO3 that's mis-numbering them. See attached example of two stories showing the same series number.

I don't know how this would happen or how it could be fixed in AO3, but FFF can only use the data given it by the site.

I would suggest the Plugin Manage Series as an easy way to correct the series numbers in Calibre.

FYI, Unlike most sites that show, but block access to adult content, AO3 hides them entirely unless you are logged in. This particular series only shows 76 stories when not logged in.

I suggest you turn on the setting: always_login:true under [archiveofourown.org] in personal.ini. Note that leading '#' chars are commented out lines and should be removed:
Code:
[archiveofourown.org]
## Some sites require login (or login for some rated stories) The
## program can prompt you, or you can save it in config.  In
## commandline version, this should go in your personal.ini, not
## defaults.ini.
#username:YourName
#password:yourpassword

## In order to get bookmarktags and bookmarksummary, you need to login
## all the time.  This defaults to off to save time and network
## traffic.  Requires valid AO3 username and password when true.
#always_login:false
Attached Thumbnails
Click image for larger version

Name:	TheFirst.PNG
Views:	321
Size:	35.3 KB
ID:	199794   Click image for larger version

Name:	TheSpeeches.PNG
Views:	307
Size:	37.2 KB
ID:	199795  
JimmXinu is offline   Reply With Quote
Old 02-18-2023, 12:24 PM   #8083
sios00
Enthusiast
sios00 began at the beginning.
 
Posts: 31
Karma: 10
Join Date: May 2022
Device: Kobo Libra 2
Thanks! I just realised that the numbers when you open the story are wrong, but when you view it on the series page, it's mostly correct.

Seems like Fanficfare follows the numbers in the story itself, instead of the one on the series list.

Last edited by sios00; 02-18-2023 at 12:28 PM.
sios00 is offline   Reply With Quote
Old 02-19-2023, 07:04 PM   #8084
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,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Is there any practical limit to the number of story-url sections in personal.ini? I've found myself using them often (all sorts of various reasons).
ownedbycats is offline   Reply With Quote
Old 02-19-2023, 07:13 PM   #8085
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,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Bug report?

Code:
[https://archiveofourown.org/works/44088169]
always_reload_first_chapter:true
add_category_when_multi_category:false
never_make_cover:true
When downloading as new book or overwriting, I get a "Cannot insert None into a tag" unless I comment always_reload_first_chapter. It doesn't happen when updating.

EDIT: Another story by the same author instead gets a 'NoneType' object has no attribute 'find' error when I attempt to overwrite with always_reload.

Last edited by ownedbycats; 02-19-2023 at 07:33 PM.
ownedbycats 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 10:46 AM.


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