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 04-01-2021, 11:19 PM   #5746
tricklem
Connoisseur
tricklem began at the beginning.
 
tricklem's Avatar
 
Posts: 60
Karma: 10
Join Date: Feb 2015
Device: none
Quote:
Originally Posted by JimmXinu View Post
I'm assuming that you are already familiar with this page and have already tried to 'force reload' the page.
Yup. All of the other updates work from my browser cache, just not this one story. I even cleared my cache and then re-opened the story and it still didn't work, but when I looked at the browser cache is said:

https://www.fanfiction.net/s/1385180...-Cullens-Bella 0 bytes 0 No last modified time No expiration time

So maybe it was too soon after the release.

Totally weird. I ended up removing all of the browser "stuff" under ff.net and then running the download, getting the story and then re-adding all of the deleted stuff back. I just did an update on 2 stories and it worked fine.
tricklem is offline   Reply With Quote
Old 04-01-2021, 11:46 PM   #5747
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
The only other thing that comes to mind is that your browser may not cache such a small page on disk--it's <500 words and the whole page is ~32KB.
JimmXinu is offline   Reply With Quote
Old 04-03-2021, 02:13 AM   #5748
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
I made another FFF-related template for use with Action Chains' single-field edit. It will set the fanfic's status column to "Abandoned" if either:
  • the last-updated column is more than 730 days ago
  • the error column is filled (note that it'll run for any value, including the transient and informational ones. So you want "save all errors" unchecked!)

Also note that since this uses the new field references, you need a minimum of Calibre 5.14 for this.

Code:
program:
d1 = format_date(today(),'iso');
d2 = $$#yourfanficupdatedcolumn;
status = $#yourfanficstatuscolumn;
error = $#yourfanficerrorcolumn;

	if
		and(
			status=='In-Progress',
			days_between(d1, d2) ># 730,
			)
	then
		"Abandoned"
		elif
			and(
				status=='In-Progress',
				error,
				)
		then
			"Abandoned"

	else
		status
	fi

Last edited by ownedbycats; 04-03-2021 at 10:41 PM.
ownedbycats is offline   Reply With Quote
Old 04-04-2021, 11:12 AM   #5749
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

2020-04-04
- Use newer Calibre image processing, add JPG quality setting - thanks, Malloc Voidstar
- Add use_cloudscraper:true under [www.ficbook.net] to defaults.ini
JimmXinu is offline   Reply With Quote
Old 04-04-2021, 10:34 PM   #5750
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 AO3 fics in multiple series, I saw this in the defaults.ini:

Code:
## archiveofourown.org, for example, fills genre (a standard
## entry) as the composite offreeformtags, ao3categories in
## include_in_genre.  If there's ever more than 4 series, add
## series04,series04Url etc.
How would I make more than one series appear on the title page?
ownedbycats is offline   Reply With Quote
Old 04-05-2021, 02:02 PM   #5751
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 AO3 fics in multiple series, I saw this in the defaults.ini:

Code:
## archiveofourown.org, for example, fills genre (a standard
## entry) as the composite offreeformtags, ao3categories in
## include_in_genre.  If there's ever more than 4 series, add
## series04,series04Url etc.
How would I make more than one series appear on the title page?
Adding series04HTML to titlepage_entries. Because it's ordered, you may need to replace the whole thing instead of just using add_to_titlepage_entries to get the order you want.

From defaults.ini under [archiveofourown.org]:
Code:
## Some adapters collect additional meta information beyond the
## standard ones.  They need to be defined in extra_valid_entries to
## tell the rest of the FanFicFare system about them.  They can be
## used in include_subject_tags, titlepage_entries,
## extra_titlepage_entries, logpage_entries, extra_logpage_entries,
## and include_in_* config items.  You can also add additional entries
## here to build up composite metadata entries.
## archiveofourown.org, for example, fills genre (a standard
## entry) as the composite offreeformtags, ao3categories in
## include_in_genre.  If there's ever more than 4 series, add
## series04,series04Url etc.
extra_valid_entries:fandoms, freeformtags, freefromtags,
 ao3categories, comments, chapterslashtotal, chapterstotal, kudos,
 hits, bookmarks, collections, byline, bookmarked, bookmarktags,
 bookmarksummary, bookmarkprivate, bookmarkrec, restricted, series00,
 series01, series02, series03, series00Url, series01Url, series02Url,
 series03Url, series00HTML, series01HTML, series02HTML, series03HTML
...
## Assume entryUrl, apply to "<a class='%slink' href='%s'>%s</a>" to
## make entryHTML.
make_linkhtml_entries:series00,series01,series02,series03
make_linkhtml_entries instructs FFF to create series00HTML etc from series00 and series00Url.
JimmXinu is offline   Reply With Quote
Old 04-08-2021, 08:56 AM   #5752
Ascello
Enthusiast
Ascello began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 4
So, I need advice, because I am stuck without ideas. Let's assume we have story XXX by author AAA on ao3 and one of the genre is "author: BBB". So, now I want FFF in Calibre to automatically substitute change AAA into BBB, so that BBB is the author. Any suggestions how to do it?
Ascello is offline   Reply With Quote
Old 04-08-2021, 09:26 AM   #5753
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
If you just want a straight substitution you can use

Code:
replace_metadata: 
 author=>AAA=>BBB
You can also use exact matching and conditionals:

Code:
replace_metadata: 
 author=>^AAA$=>BBB&&site==archiveofourown.org
ownedbycats is offline   Reply With Quote
Old 04-08-2021, 10:14 AM   #5754
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 Ascello View Post
So, I need advice, because I am stuck without ideas. Let's assume we have story XXX by author AAA on ao3 and one of the genre is "author: BBB". So, now I want FFF in Calibre to automatically substitute change AAA into BBB, so that BBB is the author. Any suggestions how to do it?
Without knowing the specific story and only speaking in the hypothetical, I can't actually test my suggestion.

But given what you asked, something like this will probably work:
Code:
[archiveofourown.org]
add_to_replace_metadata: 
 author=>^AAA$=>BBB&&genre==author: BBB
Limited to AO3, only matches the entire author string, and only when the exact string "author: BBB" is in metadata entry genre.

If you want more help with it, you'll need to provide story URLs.
JimmXinu is offline   Reply With Quote
Old 04-09-2021, 03:17 PM   #5755
Ascello
Enthusiast
Ascello began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 4
Quote:
Originally Posted by JimmXinu View Post
Without knowing the specific story and only speaking in the hypothetical, I can't actually test my suggestion.

But given what you asked, something like this will probably work:
Code:
[archiveofourown.org]
add_to_replace_metadata: 
 author=>^AAA$=>BBB&&genre==author: BBB
Limited to AO3, only matches the entire author string, and only when the exact string "author: BBB" is in metadata entry genre.

If you want more help with it, you'll need to provide story URLs.
The issue is that I don't have a story. I am working purely hypothetically right now. Aaand I am struggling, because I want to make it conditional on whether on not author is actually AAA, and for BBB to be able to vary as well depending on story, meaning that FFF would need to actually extract the content of the genre tag. I think I might be delving a little too deep into conditionals to actually make it work, but I am anything but an expert in coding.
Ascello is offline   Reply With Quote
Old 04-09-2021, 03:25 PM   #5756
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 Ascello View Post
for BBB to be able to vary as well depending on story
storyUrl is a valid conditional. I use it myself to fix flunky metadata on specific stories.
ownedbycats is offline   Reply With Quote
Old 04-09-2021, 03:31 PM   #5757
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 Ascello View Post
The issue is that I don't have a story. I am working purely hypothetically right now. ...
If you don't have stories you need this for.... Why try to do it?

In general, I find it easier to put story specific settings under [storyUrl] instead of using storyUrl in conditionals.
JimmXinu is offline   Reply With Quote
Old 04-09-2021, 04:45 PM   #5758
HowWouldIKnow
Enthusiast
HowWouldIKnow began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Dec 2020
Device: Kobo Glo
Hi,
I just updated to the newest Calibre and FFF and now I have waited a few hours only to get only Errors for every single story.


Quote:
FFF: DEBUG: 2021-04-09 19:55:58,703: calibre_plugins.fanficfare_plugin.fanficfare.adapt ers.adapter_royalroadcom(202): Getting chapter text from: https://www.royalroad.com/fiction/29...stress-testing
FFF: DEBUG: 2021-04-09 19:55:58,704: calibre_plugins.fanficfare_plugin.fanficfare.fetch er(234):
========== MISS (GET) BasicCache
https://www.royalroad.com/fiction/29...stress-testing
FFF: DEBUG: 2021-04-09 19:55:58,704: calibre_plugins.fanficfare_plugin.fanficfare.fetch er(441):
---------- REQ (GET) RequestsFetcher
https://www.royalroad.com/fiction/29...stress-testing
FFF: DEBUG: 2021-04-09 19:55:58,882: calibre_plugins.fanficfare_plugin.fanficfare.fetch er(447): response code:200
FFF: DEBUG: 2021-04-09 19:55:58,883: calibre_plugins.fanficfare_plugin.fanficfare.reque stable(50): Encoding:utf8
FFF: DEBUG: 2021-04-09 19:55:59,237: calibre_plugins.fanficfare_plugin.fanficfare.adapt ers.adapter_royalroadcom(202): Getting chapter text from: https://www.royalroad.com/fiction/29...power-triangle
HowWouldIKnow is offline   Reply With Quote
Old 04-09-2021, 05:05 PM   #5759
smallbutmighty
Junior Member
smallbutmighty began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2021
Device: Mobile
Include Comments

The plugin is amazing, and this thread has been incredibly helpful in the past to search through and find what I'm looking for. But I've searched around for this and not found anything on the wiki or elsewhere.

I'm wondering if there's anything I can add, either to personal.ini or somewhere else, to allow the published comments of an AO3 story to be downloaded along with the story itself? Ideally as part of an anthology too.

includecomments, as far as my investigations go, doesn't do that!

Not something I've wanted to do before, and not something that downloads from ao3 usually include, so I feel it's probably not possible - but if anyone would know, you all would!
smallbutmighty is offline   Reply With Quote
Old 04-09-2021, 05:14 PM   #5760
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
The AO3 adapter collects "comments" (though I am not sure whether it's user comments or something else), so its just a matter of putting it somewhere:

Code:
[archiveofourown.org]

## Some adapters collect additional meta information beyond the
## standard ones.  They need to be defined in extra_valid_entries to
## tell the rest of the FanFicFare system about them.  They can be
## used in include_subject_tags, titlepage_entries,
## extra_titlepage_entries, logpage_entries, extra_logpage_entries,
## and include_in_* config items.  You can also add additional entries
## here to build up composite metadata entries.
## archiveofourown.org, for example, fills genre (a standard
## entry) as the composite offreeformtags, ao3categories in
## include_in_genre.  If there's ever more than 4 series, add
## series04,series04Url etc.
extra_valid_entries:fandoms, freeformtags, freefromtags,
 ao3categories, comments, chapterslashtotal, chapterstotal, kudos,
 hits, bookmarks, collections, byline, bookmarked, bookmarktags,
 bookmarksummary, bookmarkprivate, bookmarkrec, restricted, series00,
 series01, series02, series03, series00Url, series01Url, series02Url,
 series03Url, series00HTML, series01HTML, series02HTML, series03HTML
You can try this:

Code:
[archiveofourown.org]

## adds to titlepage_entries instead of replacing it.
extra_titlepage_entries: comments

Last edited by ownedbycats; 04-09-2021 at 05:16 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 01:17 PM.


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