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 06-08-2014, 08:26 PM   #2866
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by cryzed View Post
@Amalthia
Hey, the problem is that the "replace_metadata" instruction expects regular expressions. Each special character listed on this page, must be escaped with a '\'.

So your configuration file section should look like this:

Code:
# only put fandoms in tags
include_subject_tags: fandoms
# Remove the FanFiction tag that FFDL includes for most sites.
extratags: a03 downloader
replace_metadata:
 fandoms=>Thor \(Movies\)=>Thor
anthology_tags:
Thank you! this worked.

A semi-related question is there a way to say add an extra tag only if it detects the other tags are in use.

For example, some authors use Captain America (Movies) but they don't add Marvel Cinematic Universe tag to their story, as a result my Marvel tag cannot be applied to the story until I edit the meta data. I'd like to add the Marvel tag to only the marvel fandoms. I can't just add Marvel to my extratags because I'm downloading fic in other fandoms.
Amalthia is offline  
Old 06-08-2014, 10:28 PM   #2867
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Amalthia View Post
Thank you! this worked.

A semi-related question is there a way to say add an extra tag only if it detects the other tags are in use.

For example, some authors use Captain America (Movies) but they don't add Marvel Cinematic Universe tag to their story, as a result my Marvel tag cannot be applied to the story until I edit the meta data. I'd like to add the Marvel tag to only the marvel fandoms. I can't just add Marvel to my extratags because I'm downloading fic in other fandoms.
You can use the same test in the replace_metadata more than once. You could try something like:

Code:
replace_metadata:
 fandoms=>Thor \(Movies\)=>Thor
 fandoms=>Thor \(Movies\)=>Marvel Cinematic Universe
 fandoms=>Captain America \(Movies\)=>Captain America 
 fandoms=>Captain America \(Movies\)=>Marvel Cinematic Universe
Another way to do this is:
Code:
replace_metadata:
 fandoms=>Thor \(Movies\)=>Thor
 fandoms=>Captain America \(Movies\)=>Captain America 
 fandoms=>(Thor|Captain America|Iron Man) \(Movies\)=>Marvel Cinematic Universe
The match is done using a regular expression. That makes the matching very powerful.

The thing that I fell is missing for this is being able to supply more that one tag. There have been a couple of times where what I really wanted was to split the found tag into two. The solution was to put two lines in, but it does mean I have two copies of the same match string to maintain if things change.
davidfor is offline  
Old 06-08-2014, 10:43 PM   #2868
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by davidfor View Post
You can use the same test in the replace_metadata more than once. You could try something like:

Code:
replace_metadata:
 fandoms=>Thor \(Movies\)=>Thor
 fandoms=>Thor \(Movies\)=>Marvel Cinematic Universe
 fandoms=>Captain America \(Movies\)=>Captain America 
 fandoms=>Captain America \(Movies\)=>Marvel Cinematic Universe
Another way to do this is:
Code:
replace_metadata:
 fandoms=>Thor \(Movies\)=>Thor
 fandoms=>Captain America \(Movies\)=>Captain America 
 fandoms=>(Thor|Captain America|Iron Man) \(Movies\)=>Marvel Cinematic Universe
The match is done using a regular expression. That makes the matching very powerful.

The thing that I fell is missing for this is being able to supply more that one tag. There have been a couple of times where what I really wanted was to split the found tag into two. The solution was to put two lines in, but it does mean I have two copies of the same match string to maintain if things change.
Hi,

I tried both options and neither worked. I think what I have now is a good step forward and I can manually add the "Marvel" tag to the stories that don't already have one if need be.

Thanks,
Amalthia
Amalthia is offline  
Old 06-09-2014, 01:45 AM   #2869
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
@Amalthia

Do you have the Generate Cover plugin installed?
Tanjamuse is offline  
Old 06-09-2014, 01:59 AM   #2870
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by Tanjamuse View Post
@Amalthia

Do you have the Generate Cover plugin installed?
Yes, I have the plugin installed.
Amalthia is offline  
Old 06-09-2014, 02:00 AM   #2871
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
This is a sample of my covers:

[www.fanfiction.net]
generate_cover_settings:
${category} => How I Met Your Mother => HIMYMCover
${category} => Pirates of the Caribbean => PiratesCover
${category} => Lord of the Rings => LOTRCover

They work for me. Have you also made the different covers in the Generate Cover setting?
Tanjamuse is offline  
Old 06-09-2014, 02:23 AM   #2872
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by Tanjamuse View Post
This is a sample of my covers:

[www.fanfiction.net]
generate_cover_settings:
${category} => How I Met Your Mother => HIMYMCover
${category} => Pirates of the Caribbean => PiratesCover
${category} => Lord of the Rings => LOTRCover

They work for me. Have you also made the different covers in the Generate Cover setting?
Is the "Lord of the Rings" your current tag?
Amalthia is offline  
Old 06-09-2014, 02:23 AM   #2873
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
Current tag?
Tanjamuse is offline  
Old 06-09-2014, 02:32 AM   #2874
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by Tanjamuse View Post
Current tag?
Where is your text "Lord of the Rings" coming from? The cover name makes sense but I'm not sure what the source is for the middle value aka "Lord of the Rings."
Amalthia is offline  
Old 06-09-2014, 02:34 AM   #2875
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
In FF.net ... the Category is the fandom, so my category/fandom is Lord of the Rings, which means if that is the name of the category, when the plugin uses the LOTR cover ... I don't know if the technical terms are correct.
Tanjamuse is offline  
Old 06-09-2014, 02:37 AM   #2876
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by Tanjamuse View Post
In FF.net ... the Category is the fandom, so my category/fandom is Lord of the Rings, which means if that is the name of the category, when the plugin uses the LOTR cover ... I don't know if the technical terms are correct.
I figured out what was missing. I had to go to the tab for "Generate Cover" in the FFDL settings and select the box "Allow generate_cover_settings from personal.ini to override."

Thank you for your help. Seeing your settings that fit with what I had helped me realize the problem wasn't my settings in the personal.ini area.
Amalthia is offline  
Old 06-09-2014, 02:38 AM   #2877
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
You're welcome ... Glad I could use some of the help I've gotten
Tanjamuse is offline  
Old 06-09-2014, 02:57 AM   #2878
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Amalthia View Post
I tried both options and neither worked. I think what I have now is a good step forward and I can manually add the "Marvel" tag to the stories that don't already have one if need be.
Do you have a couple of example links I can try? The times I have tried this are with genre and category rather than fandom. I assumed they would be the same, but maybe they aren't.
davidfor is offline  
Old 06-09-2014, 04:14 AM   #2879
Sunlite
Addict
Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.
 
Sunlite's Avatar
 
Posts: 206
Karma: 547516
Join Date: Mar 2008
Location: Berlin, Germany
Device: KObo Clara, Kobo Aura, PRS-T1, PB602, CyBook Gen3
Quote:
Originally Posted by Amalthia View Post
Hi,

I tried both options and neither worked. I think what I have now is a good step forward and I can manually add the "Marvel" tag to the stories that don't already have one if need be.

Thanks,
Amalthia
Sorry for stepping in, but I just had an idea.

Maybe you should switch the oder of the two lines using the same search value.

I think the problem is that the first line changes the value and the second then can't find it anymore.
Sunlite is offline  
Old 06-09-2014, 06:25 AM   #2880
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
davidfor's trick doesn't work for me either. I checked the code and unfortunately found no easy way to do a conditional (extra-)include. We might have to wait until JimmXinu is around, he should know more.

@Amalthia
I'm glad you got the cover issue already sorted out.

Last edited by cryzed; 06-09-2014 at 06:49 AM.
cryzed 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 11:32 AM.


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