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-26-2021, 02:50 PM   #5716
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
Changes applied to genre occur before mycolumn is copied.

You can prevent that by using:
Code:
## '.NOREPL' tells the system to *not* apply title's
## in/exclude/replace_metadata -- Only works on include_in_ lines.
include_in_mycolumn: genre.NOREPL
Or by turning it around and changing mycolumn instead.
Thank you!
Ascello is offline   Reply With Quote
Old 03-27-2021, 02:38 PM   #5717
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Did I make a mistake here? I got a calibre metadata error for this.

Code:
custom_columns_settings: 
## Fanfic subscriptions
 "N"=>#fanficsubbed,n
 "Y"=>#fanficsubbed&&seriesUrl=>https://archiveofourown\.org/series/1937545
ownedbycats is offline   Reply With Quote
Advert
Old 03-27-2021, 03:30 PM   #5718
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Also, if it's of any use, here are two templates that extract story IDs and converts them into custom AO3/FFNet identifiers unless status is set to anthology. You'll need something like Action Chains to use it.

Code:
program:
	publisher = field('publisher');
	ids = field('identifiers');
	status = field('#fanficstatus');
	u = select(ids, 'url');

	if publisher == 'Archive of Our Own' && u && status != 'Anthology' then
		n = re(u, '^https://archiveofourown.org/works/(\d+)$', '\1');
		ids = list_union(ids, strcat('ao3:', n), ',')
	fi;
	ids
Code:
program:
	publisher = field('publisher');
	ids = field('identifiers');
	status = field('#fanficstatus');
	u = select(ids, 'url');

	if publisher == 'FanFiction.net' && u && status != 'Anthology' then
		n = re(u, '^https://www.fanfiction.net/s/(\d+)/(\d+)/.*', '\1');
		ids = list_union(ids, strcat('ffnet:', n), ',')
	fi;
	ids

Last edited by ownedbycats; 03-27-2021 at 04:22 PM.
ownedbycats is offline   Reply With Quote
Old 03-27-2021, 06:44 PM   #5719
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
Did I make a mistake here? I got a calibre metadata error for this.

Code:
custom_columns_settings: 
## Fanfic subscriptions
 "N"=>#fanficsubbed,n
 "Y"=>#fanficsubbed&&seriesUrl=>https://archiveofourown\.org/series/1937545
custom_columns_settings lines don't allow for && conditionals -- only replace_metadata lines do.

Quote:
Originally Posted by ownedbycats View Post
Also, if it's of any use, here are two templates that extract story IDs and converts them into custom AO3/FFNet identifiers unless status is set to anthology. You'll need something like Action Chains to use it.
...
Why? What's wrong with using storyId if you want the... story ID?
JimmXinu is offline   Reply With Quote
Old 03-27-2021, 06:54 PM   #5720
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
custom_columns_settings lines don't allow for && conditionals -- only replace_metadata lines do.
Well that was stupid of me. Is there a feasible way to fudge this with a replace_metadata, seeing as it's an arbitrary value not derived from metadata?

Quote:
Why? What's wrong with using storyId if you want the... story ID?
I have custom identifiers ao3: and ffnet:

Click image for larger version

Name:	2021-03-27 19_48_33-Create rules for identifiers.png
Views:	161
Size:	15.3 KB
ID:	186179

I think I asked about it before and it'd be difficult to automate with FFF, though I may not have been too clear on what I meant.
ownedbycats is offline   Reply With Quote
Advert
Old 03-27-2021, 07:50 PM   #5721
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
Well that was stupid of me. Is there a feasible way to fudge this with a replace_metadata, seeing as it's an arbitrary value not derived from metadata?
Do the same thing, but into a new extra entry and assign that to the column?

Quote:
Originally Posted by ownedbycats View Post
I have custom identifiers ao3: and ffnet:
For what purpose? The URL identifier is already a clickable link.
JimmXinu is offline   Reply With Quote
Old 03-27-2021, 08:13 PM   #5722
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
For what purpose? The URL identifier is already a clickable link.
Crossposted fics and appearance in book details (though I leave a url: on in-progresses for quicker updates/search purposes):

Click image for larger version

Name:	2021-03-27 21_14_40.png
Views:	149
Size:	3.8 KB
ID:	186184

Last edited by ownedbycats; 03-27-2021 at 09:26 PM.
ownedbycats is offline   Reply With Quote
Old 03-28-2021, 06:13 AM   #5723
Nutzer0815
Enthusiast
Nutzer0815 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Sep 2020
Device: PC
Error Literotica

Download Status at Literotica (all stories)
Error
xxx
yyy
Couldn't find story <https://german.literotica.com/s/xxx> on author's page <https://www.literotica.com/stories/memberpage.php?uid=99999999&page=submissions>
https://german.literotica.com/s/xxx
Nutzer0815 is offline   Reply With Quote
Old 03-28-2021, 11:50 AM   #5724
leckadams
Enthusiast
leckadams began at the beginning.
 
Posts: 38
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite, Kindle Keyboard
I keep getting the following error:

Error
Sanctuary
CyborgSquirrel
HTTP Error in FFF '403 Client Error: Forbidden for url: https://harrypotterfanfiction.com/vi...icted'(403)
https://harrypotterfanfiction.com/vi...hp?psid=341370
Error
Harry Potter and the Order of the Phoenix - AU Rewrite
killthatrat
HTTP Error in FFF '403 Client Error: Forbidden for url: https://harrypotterfanfiction.com/vi...icted'(403)
https://harrypotterfanfiction.com/vi...hp?psid=341403
Error
In The Safety Of Magical World
flyflyhighup
HTTP Error in FFF '403 Client Error: Forbidden for url: https://harrypotterfanfiction.com/vi...icted'(403)
https://harrypotterfanfiction.com/vi...hp?psid=342524


I have my login information stored in the plugin (and it never pops up asking for it) so what am I missing?

TIA!
leckadams is offline   Reply With Quote
Old 03-28-2021, 06:21 PM   #5725
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 Nutzer0815 View Post
Download Status at Literotica (all stories)
Error
xxx
yyy
Couldn't find story <https://german.literotica.com/s/xxx> on author's page
Looks like the site has changed the way story URLs appear on author's pages. Again. Fix shortly, I hope.

Quote:
Originally Posted by leckadams View Post
I keep getting the following error:

Error
Sanctuary
CyborgSquirrel
HTTP Error in FFF '403 Client Error: Forbidden for url: [url]'(403)
I'm wasn't seeing any error for these, until I tried doing full download for all three in a row. Then I started seeing. So clearly, it's about how fast downloads are happening.

A short sleep:
Code:
[harrypotterfanfiction.com]
slow_down_sleep_time:1
...was sufficient for me. I'll add that to the defaults.ini.
JimmXinu is offline   Reply With Quote
Old 03-28-2021, 06:25 PM   #5726
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-03-28
- Get storyId for sugarquillnet and siyecouk from the parsed query string. From mcepl
- Fix for adapter_literotica changing URLs on author page yet again.
- Add [harrypotterfanfiction.com] slow_down_sleep_time:1 -- Site blocking fast downloads.
JimmXinu is offline   Reply With Quote
Old 03-28-2021, 07:10 PM   #5727
Nutzer0815
Enthusiast
Nutzer0815 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Sep 2020
Device: PC
It works for Literotica now.
Many Thanks
Nutzer0815 is offline   Reply With Quote
Old 03-28-2021, 09:34 PM   #5728
leckadams
Enthusiast
leckadams began at the beginning.
 
Posts: 38
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite, Kindle Keyboard
Quote:
Originally Posted by JimmXinu View Post
New Test Version Posted

2020-03-28
- Get storyId for sugarquillnet and siyecouk from the parsed query string. From mcepl
- Fix for adapter_literotica changing URLs on author page yet again.
- Add [harrypotterfanfiction.com] slow_down_sleep_time:1 -- Site blocking fast downloads.
That worked for the harrypotterfanfiction issue! Thank you
leckadams is offline   Reply With Quote
Old 03-29-2021, 09:45 AM   #5729
MimiRose113
Junior Member
MimiRose113 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2021
Device: Kindle P4
I'm having trouble with a piece of my coding, it used to work, I'm sure, or else I'm going mad.

If ships contains a platonic relationship such as 'Fili & Kili' I want to split this into just the characters 'Fili, Kili'.
So I have
ships=>(.*) (amp;|&) (.*)=>\1\,\2


I've tried this in add_to_replace_metadata and in replace metadata and it still pulls through as 'Fili & Kili'.

Last edited by MimiRose113; 03-29-2021 at 09:48 AM.
MimiRose113 is offline   Reply With Quote
Old 03-29-2021, 01:32 PM   #5730
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 MimiRose113 View Post
I'm having trouble with a piece of my coding, it used to work, I'm sure, or else I'm going mad.

If ships contains a platonic relationship such as 'Fili & Kili' I want to split this into just the characters 'Fili, Kili'.
So I have
ships=>(.*) (amp;|&) (.*)=>\1\,\2

I've tried this in add_to_replace_metadata and in replace metadata and it still pulls through as 'Fili & Kili'.
You probably want something more like ships=>(.+) ?(&amp;|&) ?(.+)=>\1\,\2

FYI, if you search the thread for ships2chars, that's a very similar thing that's been done before. Here's one version I found:

Code:
add_to_extra_valid_entries:,ships2chars

include_in_ships2chars:ships.NOREPL
# NOREPL prevents any ships patterns from being applied to ships2chars.

add_to_replace_metadata:
 ships2chars=>[ ]*/[ ]*=>/
 ships2chars=>[ ]*&amp;[ ]*=>/
 ships2chars=>([^/]+)/([^/]+)/([^/]+)/(.+)=>\1\,\2\,\3\,\4
 ships2chars=>([^/]+)/([^/]+)/(.+)=>\1\,\2\,\3
 ships2chars=>([^/]+)/(.+)=>\1\,\2

include_in_characters:characters,ships2chars
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 03:38 AM.


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