View Single Post
Old 12-16-2015, 12:15 PM   #829
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,027
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version (direct link).

2015-12-15 2nd

- New centeredcat_to_characters pairingcat_to_characters_ships and romancecat_to_characters_ships features for tthfanfic.org.

Quote:
Originally Posted by JimmXinu View Post
TtH's category level system is inconsistent.
...
I might be convinced to add code to the TtH adapter to use '*-Centered' and 'Pairing: *' to populate characters and ships instead of category. Does anyone see a problem with that?
As per @edeniz's request, I've added some code to the tthfanfic.org adapter to handle '*-Centered' and 'Pairing: *' categories different. As a bonus, there's also code for 'Romance' category pairings. There are important assumptions made that might prove to be wrong, but I haven't seen any counter examples yet.

You do have to turn them on for now (I may default them to on later):

Code:
[www.tthfanfic.org]
centeredcat_to_characters:true
pairingcat_to_characters_ships:true
romancecat_to_characters_ships:true
If centeredcat_to_characters:true, categories '*-Centered' will be left out of category and instead be added to characters (with '-Centered' removed).

If pairingcat_to_characters_ships:true, categories 'Pairing: *' will be left out of category and instead be added to characters (with 'Pairing: ' removed) and '(CenteredChar)/(PairingChar)' will be added to ships. Assumed: 'Pairing: *' only appears after '*-Centered'.

If romancecat_to_characters_ships:true, categories after 'Romance' will be left out of category and instead will be added to ships and split by '/' and added each part added to characters. Assumed: Categories after 'Romance' are 'CharA/CharB' ships.
JimmXinu is online now   Reply With Quote