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
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.