View Single Post
Old 01-24-2022, 03:11 PM   #6846
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,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
estherflails,

Please always include the story URL that exhibits whatever you're asking about. Since you didn't give one, I'm using https://merengo.hu/viewstory.php?sid=147405 (I hope it's SFW, I can't tell--Hungarian.)

The category as given by merengo.hu has a lot of redundancy.

Here's what I've come up with that I think does basically what you're asking:
Spoiler:
Code:
[merengo.hu]
## Base eFiction adapter is really pretty smart--it noticed and
## collected these metadata entries for itself.  But you need to
## declare them here to use them.  Add to titlepage_entries or columns
## as you like.  Or include them in existing metadata entries.
add_to_extra_valid_entries:,jellemzők,figyelmeztetések

## Copy category to ships, but without running category's
## replace_metadata on it.
add_to_include_in_ships:,category.NOREPL

## Only keep category,ships values containing Fanfiction.  May want to
## add Original, Crossover, etc,.  I was mostly discarding 'Kihívások'
## (challenges?)
add_to_include_metadata_pre:
 category,ships=~Fanfiction

add_to_replace_metadata:
## If you want more than Fanfiction, or 'Books' and Film, this
## will need more work.
 category=>^Fanfiction > (Könyv|Film) > ([^>]+?)( >|$).*$=>\2
## This removes everything except the final A/B part.
 ships=>^.*> ([^/]+/.*)$=>\1

## Discard anything in ships that made it through that doesn't have a
## '/' in it.  Could be an issue if site uses '&' for non-romantic
## 'ships'.
add_to_exclude_metadata_post:
 ships=~\>


It likely isn't perfect, but hopefully it will point you in the right directions.
JimmXinu is offline   Reply With Quote