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-02-2014, 02:12 AM   #2611
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
Code:
[default]
replace_metadata:
 ... tons of code to tweak metadata to your exacting standards
 ... and normalize all the character names juuuust right

## Now make sure that only characters that start with your corrected
## formatting are included.
include_metadata_post:
 characters=~^(Books|Anime|Movies)\.
I had to laugh at the info in the replace_metadata. That is exactly what I do. . tons of code tweak. . . though I am trying to cut back.

I tried the include_metadata_post with characters, ships, and genre. I used this code:
Code:
include_metadata_post:
 characters=~^(Anime/Manga|Book|TV|Movie|Game|Cartoon|Comics)\.
 ships=~^(Anime/Manga|Book|TV|Movie|Game|Cartoon|Comics)\.
 genre=~^(Soulmate|Story Abandoned/Hiatus)
It worked great for characters and genre, excluding the one piece of metadata I did not want in each set.

However, when I tried to use it for the ships, it excluded everything.

Now, I've had problems before with ships when I tried attaching the categories I wanted at the beginning and found a way around that by using the ships_LIST.

Code:
##Starting with 'Duo M/Heero Yuy, and this code in replace_metadata. . .
 characters,ships=>Duo M=>Duo Maxwell&&category=>Gundam Wing
  
 characters,ships_LIST=>(^|, )(Heero Yuy|Duo Maxwell)=>\1Anime/Manga.Gundam Wing.\2&&category=>Gundam Wing
##results in this: Anime/Manga.Gundam Wing.Duo Maxwell/Heero Yuy.
When I tried to use the ships_LIST in the include_metadata_post:
First Attempt
Code:
 ships_LIST=~(^|, )(Anime/Manga|Book|TV|Movie|Game|Cartoon|Comics)\.
Second Attempt
Code:
 ships_LIST=~^(Anime/Manga|Book|TV|Movie|Game|Cartoon|Comics)\.
It let all the ships through.

I'm not sure what code I should use to make only the metadata starting with what I want be accepted. For everything but the ships, it seems to work great.
Jade Aislin is offline  
Old 05-02-2014, 12:13 PM   #2612
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 Jade Aislin View Post
I had to laugh at the info in the replace_metadata. That is exactly what I do. . tons of code tweak. . . though I am trying to cut back.
The first step is admitting you have a problem...

Quote:
Originally Posted by Jade Aislin View Post
...
However, when I tried to use it for the ships, it excluded everything.
...
Now, I've had problems before with ships when I tried attaching the categories I wanted at the beginning and found a way around that by using the ships_LIST.
...
In the case of ships, you're not adding the 'Anime/Manga.Gundam Wing.' until after the list is joined into one string(ships_LIST). You can't use in/exclude on 'Anime/Manga.Gundam Wing.' when processing the ships values because it isn't there yet.

Using in/exclude on ships_LIST isn't very meaningful--the list is already made, the most you can do it either pass or omit the entire list string.

And then there's sort_ships which takes place after in/exclude_metadata_post but before replace_metadata on ships_LIST.

So, you're still on your own for that one. I don't remember (if I ever knew) why you're doing that on ships_LIST. I'd expect something like this to work:
Code:
replace_metadata:
 ships=>^(Heero Yuy|Duo Maxwell)=>Anime/Manga.Gundam Wing.\1&&category=>Gundam Wing
JimmXinu is offline  
Old 05-02-2014, 04:59 PM   #2613
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
And then there's sort_ships which takes place after in/exclude_metadata_post but before replace_metadata on ships_LIST.

So, you're still on your own for that one. I don't remember (if I ever knew) why you're doing that on ships_LIST. I'd expect something like this to work:
Code:
replace_metadata:
 ships=>^(Heero Yuy|Duo Maxwell)=>Anime/Manga.Gundam Wing.\1&&category=>Gundam Wing
I think I used ships_LIST because I was having a problem with the 'Anime/Manga.' getting added before the ship was sorted and it getting mixed into the pairing.

I found the original post I had about that issue here. ships_LIST allowed me to sort the pairing before adding the 'Anime/Manga.'.

I think I found a solution. Instead of looking for the heirachical tags (Anime/Manga, etc) I set the code to keep anything that has '/':
Code:
 ships=~/
which at that point, all my ships should have. I may still get some pairings I did not mean to keep, but hopefully that will keep most of the junk metatags out.
Jade Aislin is offline  
Old 05-02-2014, 05:23 PM   #2614
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
Hi Jimmy.

I tried using the "count words/pages" plugin, but the word count is to high.

Have I done something wrong in the settings?
Tanjamuse is offline  
Old 05-02-2014, 05:46 PM   #2615
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
I tried using the "count words/pages" plugin, but the word count is to high.
The "Count Pages" plugin also counts the words on the title page and log page (if you use it). So naturally it will be a bit higher than a count of just the words of the story itself.

Unless it's ludicrously high, I wouldn't worry about it. Plus some sites don't have very accurate word counts to start with.
JimmXinu is offline  
Old 05-03-2014, 04:39 AM   #2616
Firedancer885
Occassional Beta Tester
Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.
 
Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
Jimm,

FFDL doesn't recognize WWOMB (squidge/~peja) urls.
Firedancer885 is offline  
Old 05-03-2014, 09:02 AM   #2617
Firedancer885
Occassional Beta Tester
Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.
 
Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
Even after I put back the latest official plugin and restarted Calibre. Did the url change?
Firedancer885 is offline  
Old 05-03-2014, 10:40 AM   #2618
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 Firedancer885 View Post
Jimm,

FFDL doesn't recognize WWOMB (squidge/~peja) urls.
Another site silently switching to https.

https://www.squidge.org/~peja/cgi-bi....php?sid=36323

Try this version.

UPDATE May 5, 2014 - Remove obsolete beta versions

Last edited by JimmXinu; 05-05-2014 at 02:03 PM. Reason: Remove obsolete beta versions
JimmXinu is offline  
Old 05-03-2014, 12:20 PM   #2619
Firedancer885
Occassional Beta Tester
Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.Firedancer885 can teach chickens to fly.
 
Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
Quote:
Originally Posted by JimmXinu View Post
Another site silently switching to https.

https://www.squidge.org/~peja/cgi-bi....php?sid=36323

Try this version.
Thank you, it works
Firedancer885 is offline  
Old 05-03-2014, 03:23 PM   #2620
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
Where do I input username and password for dark-solace.org?

Also, a question for the group: What do you have in your Custom Columns?

I've had to redo my enormous fanfiction library and is looking for new things to sort by and so on ... I already have word count, what else do you suggest?

Thanks

Last edited by Tanjamuse; 05-03-2014 at 03:50 PM.
Tanjamuse is offline  
Old 05-03-2014, 06:16 PM   #2621
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
Where do I input username and password for dark-solace.org?
In the personal.ini tab of FFDL's config:
Code:
[dark-solace.org]
username:YourName
password:yourpassword
Quote:
Originally Posted by Tanjamuse View Post
Also, a question for the group: What do you have in your Custom Columns?

I've had to redo my enormous fanfiction library and is looking for new things to sort by and so on ... I already have word count, what else do you suggest?
I have Words, Chapter count, & Updated Date for FFDL metadata. I keep some additional columns for Read/Unread, Not On Devices, ExtraNotes and one that merges read/unread, series name and title.

You might look at this page about using FFDL and Reading List plugins to manage your read/unread and updating devices.
JimmXinu is offline  
Old 05-03-2014, 06:24 PM   #2622
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
Do I just copy that? and where to put it in?

Edit: Never mind I figured it out.

How do you generate a cover from tag instead of site, since I use Fanfiction.net to download from more than one fandom?

Thanks

Last edited by Tanjamuse; 05-04-2014 at 04:00 AM.
Tanjamuse is offline  
Old 05-04-2014, 11:25 AM   #2623
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
How do you generate a cover from tag instead of site, since I use Fanfiction.net to download from more than one fandom?
The forum doesn't send notices about updated posts, only new ones. So it's only chance that I came back and saw your update. I usually only check the forum when I get notification of a new post.

At the bottom of the Generate Cover tab, one of the options is to allow generate_cover_settings in personal.ini.

From defaults.ini:
Code:
## If you have the Generate Cover plugin installed, you can use the
## generate_cover_settings parameter to intelligently decide which GC
## setting to run.  There are three parts 1) a template of which
## metadata part(s) to look at, 2) a regular expression to match the
## template, and 3) the name of the GC setting to use, which must
## match exactly.  Use this parameter in [defaults], or by site eg,
## [ficwad.com]
## Make sure to keep at least one space at the start of each line and
## to escape % to %%, if used.
## template => regexp to match => GC Setting to use.
#generate_cover_settings:
 ${category} => Buffy:? [tT]he Vampire Slayer => BuffyCover
 ${category} => Star Trek => StarTrekCover
JimmXinu is offline  
Old 05-04-2014, 12:29 PM   #2624
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
Where in the Personal.ini file do I input the code, because all the sudden I got the following in the tag column:

Bones, Drama, ${category} => Buffy:? [tT]he Vampire Slayer => BuffyCover ${category} => Bones => BonesCover ${category} => How I Met Your Mother => HIMYMCover ${category} => Pirates of the Caribbean => PiratesCover
Tanjamuse is offline  
Old 05-04-2014, 12:35 PM   #2625
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
Oops. Also need to remove the '#' comment character in front of generate_cover_settings.

If you want it to effect all sites, put it in the [defaults] section. Otherwise, put it in the section for the site you want to effect:
Code:
[www.fanfiction.net]
generate_cover_settings:
 ${category} => Buffy:? [tT]he Vampire Slayer => BuffyCover
 ${category} => Star Trek => StarTrekCover
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 06:51 PM.


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