Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 05-07-2014, 12:11 PM   #2641
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: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Tanjamuse View Post
Would it be possible to make a custom column for the times people have clicked favorite on a story?
Depends on the site.

Some adapters (we call the code specific to each site an adapter) collect what we call 'site specific data'. The adapter for ffnet collects the numbers of reviews, favs & follows in addition to the regular metadata.

So if you create a custom column with lookup name #favs, and check the 'Allow custom_column_settings' option on the Custom Columns tab, then you can add this to your personal.ini:

Code:
[www.fanfiction.net]
custom_columns_settings:
 favs=>#favs
JimmXinu is offline  
Old 05-07-2014, 12:15 PM   #2642
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
What kind of Column type would it be?
Tanjamuse is offline  
Old 05-07-2014, 12:36 PM   #2643
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: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Tanjamuse View Post
What kind of Column type would it be?
Integer would be most logical. That worked the last time I checked.
JimmXinu is offline  
Old 05-07-2014, 01:23 PM   #2644
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Thanks again, so much for all your enormous (and kind) help, and your patience ... I know absolutely nothing about htlm codes, but with your help I'm beginning to make a little sense of it...
Tanjamuse is offline  
Old 05-09-2014, 12:11 PM   #2645
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Have you had time to look at adding Spuffyrealm yet? It would be fantastic if you did.
Tanjamuse is offline  
Old 05-10-2014, 02:52 PM   #2646
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: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Fix for a change on fictionpad.com.

Last edited by JimmXinu; 05-13-2014 at 09:23 PM. Reason: Remove obsolete beta versions
JimmXinu is offline  
Old 05-11-2014, 11:21 AM   #2647
Snow Sciles
Connoisseur
Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 400010
Join Date: Mar 2013
Location: London
Device: Nook STG, PW2
I've begun using FFDL to just update the meta. How do I get it to only put the genre info into the tags column? For AO3 it currently inputs all the tags, characters, genre, warnings, fandom etc.
Snow Sciles is offline  
Old 05-11-2014, 12:05 PM   #2648
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: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Snow Sciles View Post
I've begun using FFDL to just update the meta. How do I get it to only put the genre info into the tags column? For AO3 it currently inputs all the tags, characters, genre, warnings, fandom etc.
In personal.ini you can control what ends up in calibre's Tags column with the include_subject_tags keyword. (It's named for the dc:subject tags used inside epubs. FFDL didn't start out as a plugin.)

To only include genre for AO3 specifically, put this in your personal.ini:
Code:
[archiveofourown.org]
include_subject_tags: genre
JimmXinu is offline  
Old 05-11-2014, 01:09 PM   #2649
Snow Sciles
Connoisseur
Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 400010
Join Date: Mar 2013
Location: London
Device: Nook STG, PW2
Thanks! And if I wanted it to input nothing, would it be include_subject_tags: false ?

This is all new to me. Is there a list of the keywords that FFDL uses?
Snow Sciles is offline  
Old 05-11-2014, 01:37 PM   #2650
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: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Snow Sciles View Post
Thanks! And if I wanted it to input nothing, would it be include_subject_tags: false ?

This is all new to me. Is there a list of the keywords that FFDL uses?
Empty list would be:
Code:
[archiveofourown.org]
include_subject_tags:
At the bottom of the personal.ini tab is a button to view the plugin-defaults.ini file. I've tried to document all the options there.

However, there's no search function or anything, so it may be easier to look at the file in the source repository.

At the top of the FFDL config dialog there's also a link to the FAQs. There are some other useful docs in the same wiki area.

How can you have more karma than me with fewer than 20 posts? Now I feel inadequate.
JimmXinu is offline  
Old 05-11-2014, 03:25 PM   #2651
Snow Sciles
Connoisseur
Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 400010
Join Date: Mar 2013
Location: London
Device: Nook STG, PW2
I've been reading the documents and searched the thread to see what others have done, but this just isn't working.

Code:
replace_metadata:
 category=>Angel: the Series=>Buffyverse
 Teen Wolf (TV)=>Teen Wolf
It seems like it should work. I place this at the end of my code for A03.

Code:
[www.archiveofourown.org]
username:****
password:****
is_adult:true
include_subject_tags:genre
replace_metadata:
 category=>Angel: the Series=>Buffyverse
 Teen Wolf (TV)=>Teen Wolf
Snow Sciles is offline  
Old 05-11-2014, 04:06 PM   #2652
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: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I don't see anything wrong with the first part--I suspect you're not matching the source exactly. Can you provide a couple story URLs that you're trying to affect?

The second one is because parentheses '()' are part of the regular express language and need to be escaped when they're part of the string to be matched:
Code:
replace_metadata:
 category=>Angel: the Series=>Buffyverse
 Teen Wolf \(TV\)=>Teen Wolf
JimmXinu is offline  
Old 05-11-2014, 07:14 PM   #2653
Snow Sciles
Connoisseur
Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.Snow Sciles ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 400010
Join Date: Mar 2013
Location: London
Device: Nook STG, PW2
It now works! But the first one doesn't do exactly what I want.

Here is one of the fics

http://archiveofourown.org/works/114...apters/2313663

I want to make anything tagged with Angel or Buffy, be Buffyverse. It currently just turns the Angel tag to Buffyverse, but leaves the Buffy tag there.
Snow Sciles is offline  
Old 05-11-2014, 07:24 PM   #2654
Jade Aislin
Groupie
Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.
 
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
Quote:
Originally Posted by JimmXinu View Post
I haven't been able to replicate Jade's problem--the URL update warning and replacement works fine for me.
I ran into that problem again, but I have an idea what might be causing it. As I am currently trying to reorganize the stories I have already downloaded, I'm transfering them into different libraries. I set the add book feature to ignore a story if it is already in the new library. I think that might be affecting the override function of FFDL. Once I finish moving the stories, I will reset my preferences back to override stories when the story already exsists in the new library.

Quote:
Originally Posted by JimmXinu View Post
Empty list would be:
Code:
[archiveofourown.org]
include_subject_tags:
I was wondering how to do that. Now I'm wondering if I can use the extra_valid entries with the include_in_(valid entry) to repopulate the tags with what I want. Right now, Once I am ready to send to my device, I take every book and do a search and replace in editing. For instance, I take search my character column, add a 'C.' to the beginning, and then put the new metadata into the tags column. It would be easier if I could do that automatically as I grab the story. I'll have to fiddle with it when I have the stories sorted.

Quote:
Originally Posted by JimmXinu View Post
The second one is because parentheses '()' are part of the regular express language and need to be escaped when they're part of the string to be matched:
Code:
replace_metadata:
 category=>Angel: the Series=>Buffyverse
 Teen Wolf \(TV\)=>Teen Wolf
Does the second fandom not need the 'category=>' in front of it? For some reason, I thought it had to look like this:
Code:
replace_metadata:
 category=>Angel: the Series=>Buffyverse
 category=>Teen Wolf \(TV\)=>Teen Wolf
Jade Aislin is offline  
Old 05-11-2014, 07:49 PM   #2655
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: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Snow Sciles View Post
It now works! But the first one doesn't do exactly what I want.

Here is one of the fics

http://archiveofourown.org/works/114...apters/2313663

I want to make anything tagged with Angel or Buffy, be Buffyverse. It currently just turns the Angel tag to Buffyverse, but leaves the Buffy tag there.
That story has two category values "Buffy the Vampire Slayer" and "Angel: the Series" The replace_metadata feature operates on each value independently. So while you've replaced Angel, you haven't done anything to the original Buffy category. You want something like this:

Code:
replace_metadata:
 category=>Angel: the Series=>Buffyverse
 category=>Buffy:? [tT]he Vampire Slayer=>Buffyverse
The second regular expression will match all of these:
Buffy: the Vampire Slayer
Buffy: The Vampire Slayer
Buffy the Vampire Slayer
Buffy The Vampire Slayer

It may or may not be necessary for AO3, but some sites aren't terribly consistent.
JimmXinu is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Count Pages kiwidude Plugins 1846 08-02-2025 10:44 PM
[GUI Plugin] Resize Cover kiwidude Plugins 100 07-10-2025 08:50 AM
[GUI Plugin] Find Duplicates kiwidude Plugins 1124 04-18-2025 09:19 AM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 02:49 PM.


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