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 05-30-2022, 10:04 PM   #7201
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
That site is already supported, if only with http (not https).

I'll tweak the code to allow https URLs too.

In the meantime, just use http://chosentwofanfic.com instead of https.
JimmXinu is offline   Reply With Quote
Old 05-30-2022, 10:18 PM   #7202
grimorie
Enthusiast
grimorie began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Feb 2017
Device: Kobo Clara HD
Great! Thank you so much!

Er, one hitch, it seems I can't download multi chapters or series? I keep getting "list index out of range"

Last edited by grimorie; 05-31-2022 at 06:25 AM. Reason: new question
grimorie is offline   Reply With Quote
Old 05-31-2022, 10:34 AM   #7203
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2022-05-31
- adapter_chosentwofanficcom: http->https
JimmXinu is offline   Reply With Quote
Old 05-31-2022, 10:35 AM   #7204
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by grimorie View Post
Great! Thank you so much!

Er, one hitch, it seems I can't download multi chapters or series? I keep getting "list index out of range"
I'm not seeing that. Story URL?
JimmXinu is offline   Reply With Quote
Old 05-31-2022, 10:52 AM   #7205
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,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
For this fanfic, I was trying to change the description so that the two links pointed to my local copies of the fic.

Code:
[https://archiveofourown.org/works/34149469]
add_to_replace_metadata:
 description=>\"https://archiveofourown\.org/works/32414443\">=>\"calibre://show-book/_hex_-4d795f426f6f6b73/3424\"
However, it resulted in the link getting deleted entirely ("and Fred's .").

Did I mess up, or is it just not possible to modify the html like this?
ownedbycats is offline   Reply With Quote
Old 05-31-2022, 11:02 AM   #7206
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
For this fanfic, I was trying to change the description so that the two links pointed to my local copies of the fic.

Code:
[https://archiveofourown.org/works/34149469]
add_to_replace_metadata:
 description=>\"https://archiveofourown\.org/works/32414443\">=>\"calibre://show-book/_hex_-4d795f426f6f6b73/3424\"
However, it resulted in the link getting deleted entirely ("and Fred's .").

Did I mess up, or is it just not possible to modify the html like this?
Wow. Does it get lonely being that far out there?

Don't escape the " chars, it isn't needed. And you are removing the trailing > of the a tag, but not replacing it. Fix those and the substitution works; I could see the changed URL in description. But I couldn't test the link because I have no idea how to get the calibre UUID for a book.
JimmXinu is offline   Reply With Quote
Old 06-01-2022, 12:28 PM   #7207
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Version Released

Version 4.13.0 - 2022-06-01
- Update translations.
- adapter_chosentwofanficcom: http->https
- adapter_mediaminerorg: More story URL forms. #845
- Don't set marked in Calibre when book_id is None #833
- adapter_quotevcom: Update collection of searchtags
- Add config check parsing for custom_columns_settings on personal.ini save.
- Refactor img code in story.py to fix a problem when cover image also in story.
- fastnovel.net -> fastnovels.net - Rename adapter_fastnovelsnet - Fixes for site changes
- fix storiesonline login (again) - parameter name was changed back to "email" (#840) - Thanks mvlcek!
- adapter_webnovelcom: Not all paragraphs starting with '<' are HTML. #841
- Lighten color highlighting for storyUrls sections in dark mode.
- fix storiesonline login - thanks, mvlcek!
- adapter_ficbooknet: Fix for site change.
- adapter_wwwutopiastoriescom: Fixes for site changes.
- adapter_fanficsme: Fix for changed 'words' metadata.
- Remove site tomparisdorm.com - Moved to AO3
- Remove site: bloodties-fans.com - Moved to AO3.
- Remove site wuxiaworld.com Closes #796
- Remove site wuxiaworld.site Closes #758
JimmXinu is offline   Reply With Quote
Old 06-01-2022, 06:22 PM   #7208
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,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
Wow. Does it get lonely being that far out there?

Don't escape the " chars, it isn't needed. And you are removing the trailing > of the a tag, but not replacing it. Fix those and the substitution works; I could see the changed URL in description. But I couldn't test the link because I have no idea how to get the calibre UUID for a book.
Thanks. I also had to remove the trailing '\' at the end of the replacement link. It works now.
ownedbycats is offline   Reply With Quote
Old 06-02-2022, 10:24 AM   #7209
DirCat
Enthusiast
DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.
 
Posts: 26
Karma: 84276
Join Date: Aug 2011
Location: Tuscaloosa, AL
Device: Samsung Tablet
Is anyone else having issues with the Get Story URLs From Email with the new version? It told me my login credentials were wrong (they haven't changed). I went ahead and re-entered my password anyway, but it still didn't work.

If it makes a difference, I am using GMail for this.

The error I am getting is:
Spoiler:
calibre, version 5.43.0
ERROR: Unhandled exception: <b>error</b>:b'[AUTHENTICATIONFAILED] Invalid credentials (Failure)'

calibre 5.43 embedded-python: True is64bit: True
Linux-5.4.0-113-generic-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.4.0-113-generic', '#127-Ubuntu SMP Wed May 18 14:30:56 UTC 2022')
Python 3.8.5
Interface language: None
Successfully initialized third party plugins: Count Pages (1, 11, 2) && FanFicFare (4, 13, 0) && Generate Cover (2, 1, 0) && Resize Cover (1, 1, 0) && Save Composite Custom Columns (1, 1, 1) && View Manager (1, 8, 0)
Traceback (most recent call last):
File "calibre_plugins.fanficfare_plugin.fff_plugin" , line 569, in get_urls_from_imap_menu
url_list = get_urls_from_imap(prefs['imapserver'],
File "/media/dcarwyr/64d4736b-8fcf-47aa-9afd-5cf1fa13e1aa/calibre-portable/CalibreConfig/plugins/FanFicFare.zip/fanficfare/geturls.py", line 189, in get_urls_from_imap
status = mail.login(user, passwd)
File "imaplib.py", line 603, in login
imaplib.IMAP4.error: b'[AUTHENTICATIONFAILED] Invalid credentials (Failure)'
DirCat is offline   Reply With Quote
Old 06-02-2022, 10:31 AM   #7210
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,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
@JimmXinu -- Gmail recently dropped support for "less secure apps," whatever that means. OAuth 2.0 works but I don't know if FFF could use it.

Last edited by ownedbycats; 06-02-2022 at 10:36 AM.
ownedbycats is offline   Reply With Quote
Old 06-02-2022, 11:04 AM   #7211
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
None of the IMAP code has changed in FFF. If something's different, I believe it's on the other end. You have to have your Gmail settings juuust right.

IMAP4 with user/pass is still working for me on the "Google Workspace" (formerly "Google Apps") account I use. I thought the 'dropped support for "less secure apps,"' was months ago?

Last time I looked into OAuth it was prohibitively difficult to do in FFF, but I don't remember why--possibly needing to basically launch a brower. I'll look into it again.
JimmXinu is offline   Reply With Quote
Old 06-02-2022, 11:39 AM   #7212
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,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
It was finally dropped a few days ago. I had to fix my Thunderbird settings to use OAuth.

EDIT: Help article. Apparently it doesn't apply to Workplaces.

Last edited by ownedbycats; 06-02-2022 at 11:42 AM.
ownedbycats is offline   Reply With Quote
Old 06-02-2022, 11:45 AM   #7213
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
OAuth continues to look very daunting from my POV.

However, the "Sign in with App Passwords" feature works for me on both my Gmail and Google Workspace accounts.

See:
https://support.google.com/accounts/answer/185833?hl=en
JimmXinu is offline   Reply With Quote
Old 06-02-2022, 11:53 AM   #7214
DirCat
Enthusiast
DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.DirCat invented the internet.
 
Posts: 26
Karma: 84276
Join Date: Aug 2011
Location: Tuscaloosa, AL
Device: Samsung Tablet
Hmmm... It was working for a while. Maybe I need to change email providers. I created that account just for ebooks, since I didn't want access to others.

I just changed to Outlook email, moved the old emails to the account, and ran it successfully. Thanks!
DirCat is offline   Reply With Quote
Old 06-02-2022, 12:33 PM   #7215
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
GMail / OAuth

Google seems to be on a path towards requiring more security for GMail, with an apparent end point of requiring all apps accessing it:
  1. To be 'verified', a process apparently very heavily tilted towards web services, not things like FFF, see link;
  2. Use their RESTful APIs (instead of standard email IMAP4), preferably with their python libraries--which are some 30Mbytes vs FFF's current 1.8Mbytes; and
  3. Authenticate through OAuth2, which requires a manual user interaction with Google in a browser, whether that's an instance started in FFF, or the user opening a URL in separate browser, and copying codes back and forth. No idea how often.
Gmail appears to be trying to pull into a more walled-garden kind of place in the name of security.

Which is kind of good--Email is really old and it's original security was non-existent. OTOH, it's also hilarious--you've already given all your data to Google, the largest data mining/advertising company to have ever existed.

I added Email fetching because it uses standard interfaces and was relatively easy. I have always included the warning:
It's safest if you create a separate email account that you use only for your story update notices. FanFicFare and calibre cannot guarantee that malicious code cannot get your email password once you've entered it.
Use this feature at your own risk.


For the time being, I think my official answer for GMail is going to be the "Sign in with App Passwords" feature. Bonus: It works with accounts set to two factor authentication.

If they do take away App Passwords too, GMail will probably become unsupported in FanFicFare and the answer will be 'use a different email provider for your separate fanfic notices account'.
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 02:18 PM.


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