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 03-05-2023, 12:09 AM   #8176
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,502
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
The expected mode of operation is to use "Update Epub" mode normally, which intentionally keeps pre-existing modified chapters.

If you choose to use overwrite regularly and do manual edits, it's up to you to come up with something.
JimmXinu is offline   Reply With Quote
Old 03-06-2023, 03:48 AM   #8177
mx400
Junior Member
mx400 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2021
Device: none
Development environment

Hi,

i just cloned the project from the github page but i'm struggling the get all the dependencies right. What would be the correct stepts to set it up for adding support to a new site?
mx400 is offline   Reply With Quote
Old 03-06-2023, 12:33 PM   #8178
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,502
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by mx400 View Post
i just cloned the project from the github page but i'm struggling the get all the dependencies right. What would be the correct stepts to set it up for adding support to a new site?
I honestly haven't set up a new dev dir in years. Let's see...

There's a makeplugin.py file to make the plugin zip, so you need python CLI to run that, and I believe that script needs the package six installed (using pip).

Then to install the plugin, run calibre-customize -a FanFicFare.zip.

To run as CLI in your dev dir, I'd:
  1. Install the fanficfare package (with pip) to insure all the deps are installed.
  2. set env var PYTHONPATH=. (or to your dev dir)
  3. Run fanficfare\cli.py -d

Advanced option: the CLI has a developer option --save-cache, if you also have use_basic_cache:true for your new site, then the CLI will save the cached pages so you can run tests over and over without hitting the server again.
JimmXinu is offline   Reply With Quote
Old 03-08-2023, 08:41 AM   #8179
watani
Enthusiast
watani began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2014
Device: Kindle Fire HD
There are a few custom images I want to insert into a chapter in a story, but I'm running into a lot of trouble making it work:

- I wanted to put the images at a path which has special characters (& and ') and spaces in it (on Windows 10), but no matter how I escape the characters in the additional_images I always get a 404 error where it can't find them. I eventually gave up and used a location which had no spaces and special characters, but I want to know if it's possible.

- Once custom images are added into the fic, I don't know how to preserve their insertion into the text. Every time I update the story through FFF, the inserted images have their source and longdesc replaced by "failedtoload" when the text of the chapters are unmodified.

- As an alternative, can FFF ignore the processing of custom images added to an epub? I find it odd that images which don't follow the ffdl-*.jpg naming format get deleted when the story gets updated unless they are in additional_images, especially since ffdl-*.jpg images that are in existing chapters don't get redownloaded from what I can tell.
watani is offline   Reply With Quote
Old 03-08-2023, 11:30 AM   #8180
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,502
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by watani View Post
- I wanted to put the images at a path which has special characters (& and ') and spaces in it (on Windows 10), but no matter how I escape the characters in the additional_images I always get a 404 error where it can't find them. I eventually gave up and used a location which had no spaces and special characters, but I want to know if it's possible.
additional_images takes URLs, not file paths. Use URL escaping, ie, %26 for &, %20 for space, etc.
See https://www.w3schools.com/tags/ref_urlencode.ASP

I find an easy way to get the URL is to drag the image onto my browser, then copy the location it shows.

Quote:
Originally Posted by watani View Post
- Once custom images are added into the fic, I don't know how to preserve their insertion into the text. Every time I update the story through FFF, the inserted images have their source and longdesc replaced by "failedtoload" when the text of the chapters are unmodified.
additional_images is intended for use with CSS, not directly including them in the text. There's no way in FFF currently to differentiate between images put in the story text by the author and ones you added manually.

Plus, there's an easier way to do it:

Put the <img> tags in the chapter text with src attr pointing to the URL of the image on disk (or where ever) and then run an FFF Update Always (if there aren't new chapters) and FFF will process it as if the author had put it in.

Your custom image will be 'downloaded', mapped to an ffdl-# name and included in the epub.
JimmXinu is offline   Reply With Quote
Old 03-08-2023, 04:27 PM   #8181
JDesat
Connoisseur
JDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beauty
 
Posts: 91
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
Probably a stupid question, but since I'm not the most computer literate person around...

I was adding the username and password for a site to the personal.ini but it won't let me save it because there is a % in the password. I'm assuming there is some kind of workaround, but I don't know what it is... or do I just need to change the password on the site?
JDesat is offline   Reply With Quote
Old 03-08-2023, 06:20 PM   #8182
Mieeka
Member
Mieeka began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Aug 2012
Device: Iphone
Got a bit of a weird one for you. Trying to create a anthology from https://www.squidgeworld.org/series/1174

But its only finding story id's
https://www.squidgeworld.org/works/3...=true#comments
https://www.squidgeworld.org/works/3...=true#comments
https://www.squidgeworld.org/works/3...=true#comments

there should be 11.
Mieeka is offline   Reply With Quote
Old 03-08-2023, 06:31 PM   #8183
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: 9,193
Karma: 63194629
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JDesat View Post
Probably a stupid question, but since I'm not the most computer literate person around...

I was adding the username and password for a site to the personal.ini but it won't let me save it because there is a % in the password. I'm assuming there is some kind of workaround, but I don't know what it is... or do I just need to change the password on the site?
Double the percentage sign to escape it.

@JimmXinu perhaps add something about escaping percentage signs to the FAQ?
ownedbycats is offline   Reply With Quote
Old 03-08-2023, 06:42 PM   #8184
JDesat
Connoisseur
JDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beauty
 
Posts: 91
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
Quote:
Originally Posted by ownedbycats View Post
Double the percentage sign to escape it.
Won't that just put the wrong password in when I try to download stories? Or will FFF know to remove one when it accesses the site?
JDesat is offline   Reply With Quote
Old 03-08-2023, 09:05 PM   #8185
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: 9,193
Karma: 63194629
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JDesat View Post
Won't that just put the wrong password in when I try to download stories? Or will FFF know to remove one when it accesses the site?
https://www.mobileread.com/forums/sh...postcount=8042

Escape characters are ignored. It'll be treated as a single percent sign. If you have two percent signs, you'd want %%%%.

Last edited by ownedbycats; 03-08-2023 at 09:10 PM.
ownedbycats is offline   Reply With Quote
Old 03-08-2023, 09:28 PM   #8186
JDesat
Connoisseur
JDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beauty
 
Posts: 91
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
Thank you!


EDIT:
And damn it! I had hoped that was the issue but it doesn't seem to be. I'm getting a 403 Client Error from scribblehub from this link: *censored*
I looked at the site list and that appears to be the way I should be entering the link... it also grabs it when I click on "Download from URLs". Is there an issue with scibblehub like there is on FFN? I've never downloaded a fic from SH before, so I don't know anything about it.

EDIT the Second:
Nevermind... I just downloaded it from another site where it worked fine, and given the other site was HF I've removed the scribblehub link since I don't want to get in trouble for something that might be more smut than I was told it was.

Last edited by JDesat; 03-08-2023 at 09:54 PM. Reason: Edit 2
JDesat is offline   Reply With Quote
Old 03-08-2023, 11:16 PM   #8187
John Maverick
Connoisseur
John Maverick began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Oct 2018
Device: none
Quote:
Originally Posted by JDesat View Post
Thank you!


EDIT:
And damn it! I had hoped that was the issue but it doesn't seem to be. I'm getting a 403 Client Error from scribblehub from this link: *censored*
I looked at the site list and that appears to be the way I should be entering the link... it also grabs it when I click on "Download from URLs". Is there an issue with scibblehub like there is on FFN?
I'm not sure but it seems that scribblehub has raised its Cloudflare security against bots. I can now download an update stories from this site with the following options in personal.ini:

Code:
[www.scribblehub.com]


## Using cloudscraper can satisfy the first couple levels of
## Cloudflare bot-proofing, but not all levels.  Older versions of
## OpenSSL will also raise problems, so versions of Calibre older than
## v5 will probably fail.  Only a few sites are configured with
## use_cloudscraper:true by default, but it can be applied in other
## sites' ini sections.  user_agent setting is ignored when
## use_cloudscrape
use_cloudscraper:true

## number of seconds to sleep between calls to the story site.  May be
## useful if pulling large numbers of stories or if the site is slow.
## The actual sleep time used on each request is a random number
## between 0.5 and 1.5 times slow_down_sleep_time.
slow_down_sleep_time:5
use_cloudscraper it's working for me now.

slow_down_sleep_time may not be necessary, but I put it just in case to not be flagged as a bot for the site if there is a lot of stories to update.
John Maverick is offline   Reply With Quote
Old 03-09-2023, 12:38 AM   #8188
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,502
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by Mieeka View Post
squidgeworld.org uses the same software as AO3. In both cases, the site doesn't show you mature level stories unless you are logged in and have checked the appropriate age level.

You need to set always_login:true under [squidgeworld.org] along with username and password.

Quote:
Originally Posted by ownedbycats View Post
Double the percentage sign to escape it.

@JimmXinu perhaps add something about escaping percentage signs to the FAQ?
Feel free to write one. It's come up more times in the last few months than the 10 years before.

Quote:
Originally Posted by John Maverick View Post
I'm not sure but it seems that scribblehub has raised its Cloudflare security against bots. I can now download an update stories from this site with the following options in personal.ini:
If use_cloudscraper works for you, great. But be aware that many users have had to go with one of the proxy services instead. And no, the Browser Cache feature cannot be made to work with scribblehub.
JimmXinu is offline   Reply With Quote
Old 03-09-2023, 01:39 AM   #8189
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: 9,193
Karma: 63194629
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I added this to the end of the FAQ:

Code:
## How do I use a percentage sign in personal.ini without getting an error?

Percentage signs are a special character and need to be 'escaped.' To do this, simply double it ('%%' rather than '%'). The second one will be ignored.
Feel free to edit as needed—at the very least you might want to move it to a better spot.

Last edited by ownedbycats; 03-09-2023 at 05:51 AM.
ownedbycats is offline   Reply With Quote
Old 03-09-2023, 12:17 PM   #8190
kolbinski
Member
kolbinski began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Apr 2022
Device: kindle paperwhite
I am trying to update a fanfic from quotev that has more than one author but the author order keeps switching. It is annoying because when I send the converted fanfic to my kinlde I have to delete the orginal fanfic and I loose all my progress. Can you please fix it so the author order doesn't keep changing. Here is a link so know what i mean.
https://www.quotev.com/story/1514438...rrior-Princess
kolbinski 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 494 05-18-2024 02:34 AM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 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 06:33 PM.


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