Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 11-15-2022, 07:28 PM   #1
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,968
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Fanfiction Identifiers

This recently came up in another thread so I thought people would be interested.

By default, fanfics downloaded with FanFicFare have a url: identifier. This works perfectly fine. However, I also have ao3: and ffnet: identifiers, for Archive of Our Own and FanFiction.net respectively.

This has two advantages, both seen in this screenshot:
1. If a story is available on both websites, it means I can add both of them.
2. It looks nicer in Book Details.

However, note: FanFicFare checks for a url: identifier when updating fanfics, so not having one can slow things down. I tend to keep it on incomplete fics, then remove it when the fic is finished.

So, if you like the sound of this, here's a quick tutorial on setting them up.

Preferences > Look & Feel > Book Details > Create rules to convert identifiers into links.

Click image for larger version

Name:	2022-11-15 20_05_00-Create rules for identifiers.png
Views:	182
Size:	24.9 KB
ID:	197788

Now now when you copy a story URL from one of those two sites, you can open the metadata editor and use the "paste identifiers" button to get a nicely-formatted one. But that's kind of a pain to do if you have more than a dozen fics.

So two options here.

First Option: Action Chains

Action Chains. Attached is "ConvertFanficIDs.zip", which you import into Action Chains.

Two caveats:

1. For this to work, the publishers have to be exactly "Archive Of Our Own" or "FanFiction.net". However, you can edit the templates within the chain if you use something else.

2. Do not use these on FanFicFare anthologies. The url: is usually not a work-specific one, so you'll get odd results.

For those curious, here's the templates that do the work:

Spoiler:

Code:
program:
	publisher = $publisher;
	ids = $identifiers;
	u = select(ids, 'url');

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

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

	ids


Second Option: Search & Replace

This is what I used before the Action Chains plugin existed. Note that unlike AC, it doesn't check the publisher. (When I got a bit careless, I sometimes ended up with ids like ffnet:https://archiveofourown.org/works/xxxx )

Click image for larger version

Name:	2022-11-15 20_21_15-Editing metadata for one book.png
Views:	179
Size:	47.1 KB
ID:	197791

Click image for larger version

Name:	2022-11-15 20_22_10-Editing metadata for one book.png
Views:	160
Size:	46.7 KB
ID:	197792
Attached Files
File Type: zip ConvertFanficIDs.zip (11.1 KB, 125 views)

Last edited by ownedbycats; 11-15-2022 at 07:39 PM.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are there any fanfiction sites Frankr General Discussions 8 12-08-2012 08:22 AM
iPad Does Anybody Used their iPad for fanfiction? araevin Apple Devices 9 05-14-2011 12:36 AM
Fanfiction, anybody? Lady_3Jane Lounge 17 06-19-2010 06:48 AM
Unutterably Silly Interesting FanFiction Nate the great Lounge 3 08-21-2008 10:41 AM
Which one for online fanfiction etc? KleMC Which one should I buy? 15 10-10-2007 01:47 AM


All times are GMT -4. The time now is 08:52 PM.


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