View Single Post
Old 05-24-2017, 12:27 PM   #2113
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,999
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
(multi-reply)

Quote:
Originally Posted by Tanjamuse View Post
Would it be possible to add a feature that could add more than one page with links?

Much like we can add a lot of story links?
I believe that's been requested before. It's not a feature I want to provide because I worry that it would encourage excessively long download lists.

Quote:
Originally Posted by Atherton25 View Post
First, Wattpad, thats wonderful! I've done some basic testing and so far it looks good. There is a small thing though, the 'category' section should probably be considered 'tags' instead. It can get a lot of different assignments, and isn't really something that should be considered a category.
botmtl is the developer to thank for wattpad support, not sure if they read this forum.

Wattpad tags are put into a site specific metadata field: tags. The default config when copies tags to the standard metadata field category since wattpad appears to only have one kind of tag.

Quote:
Originally Posted by Atherton25 View Post
Next I have a question. I've wanted to do this for a while but never could figure what I was doing wrong. Wattpad has made me sit down and try to get it right, and still fail. An example of what I want is to take the tag (or currently category) of harrypotter, fix its name and make sure that 'characters' gets the tag Harry Potter.
So wattpad is even worse than AO3 for tags. Lovely. Witness this example with tags harry and potter vs harrypotter in your example.

Short answer: You can try, but you'll never get it all perfect without manually fixing tags.

Longer answer: You'll need to copy all of tags to characters using include_in_characters, then normalize and filter down to what you consider characters using the replace_metadata and include/exclude features.

Quote:
Originally Posted by Atherton25 View Post
Now based on previous posts I've read, I thought:

Code:
add_to_replace_metadata:
 category=>harrypotter=>Harry Potter&&characters=>Harry Potter
would do it, but apparently not. Am I doing something wrong?
You seem to assume the part after && is an assignment. It is a condition that must be matched. Your line says: "Replace harrypotter with Harry Potter in category if metadata field characters already has an entry that matches Harry Potter.

See replace_metadata doc.

Quote:
Originally Posted by Atherton25 View Post
Oh and one last question. Is it possible to do a custom colum entry based on tag data (or currently category data)? I have a column I use do designate if a story is a webfiction or fanfiction and since wattpad is a little different and offers both, I'm trying to write something that basically says if category/tag says fanfiction, add to the custom column 'Fanfiction'. And I'd like to have a something that says if there ISNT a category/tag saying fanfiction then add Webfiction instead.
By default, FanFicFare adds 'FanFiction' to Calibre's tags (using extratags) for most sites, including wattpad. You could clear extratags for wattpad in personal.ini and rely on the site tags, but your own example doesn't include a Fanfiction tag.

To populate a custom column, you'd add a new site-specific metadata field with add_to_extra_valid_entries, copy tags to it with include_in_X, then filter and normalize down to just what you want in that column with replace_metadata and include/exclude.

Frankly, I consider it all a Sisyphean task. The world seems to be moving to generic tags in all things--Calibre's already there with it's tags field. I choose not to fight it.
JimmXinu is offline   Reply With Quote