View Single Post
Old 01-24-2022, 01:53 PM   #6845
estherflails
Member
estherflails began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jul 2021
Device: none
Thanks so much for the solution! 😊
It works, but I'm having some trouble with the metadata.

The main issue is that the fandom and the pairing are both in the same category on the site. Like so: Fanfiction > Könyv > Harry Potter > Nagyterem > Draco/Harry
From this list I only really need the fandom and pairing, and I tried to separate them into different columns, but it didn't quite work as I wanted. The best I could do is have "Draco/Harry" in the pairing column and "Harry Potter, Draco/Harry" in fandoms.

Here are the relevant parts from my personal.ini:
Spoiler:
Code:
[defaults]
replace_metadata:
 category=>\>=>,

[merengo.hu]
add_to_include_in_ships: category

add_to_replace_metadata:
 ships=>(.*)Draco/Harry=>Draco/Harry
 category=>(.*)Harry Potter=>Harry Potter
 category=>Nagyterem=>

Trying to exclude the "Draco/Harry" tag from category just makes both columns "Harry Potter". Is there a solution or elegant workaround for this? The only way I can think of is to mess with the adapter file, which isn't a problem for me tbh if there is no solution, but I figured I'd ask. (I'd rather not set up a different column for category and pull metadata from that if I can avoid it, I feel like it would get messy)


Also, is there a way to add something to an empty column through replace_metadata or some other method, or is extratags the only one that can do that? I tried language=>(.*)=>Hungarian and some variations, but either I didn't find the right one or, well, it's not possible. 😅 In which case, I can do it manually, but I wanted to ask to be sure. Would probably be useful in the future, I mess around in personal.ini quite a lot lol.


Last thing, I swear 😅
In the base_eficition_adapter, would you mind changing this line:
Code:
        elif key == 'Completed':
            if 'Yes' in value or 'Completed' in value or 'Ja' in value:
to this?
Code:
        elif key == 'Completed':
            if 'Yes' in value or 'Completed' in value or 'Ja' in value or 'Igen' in value:
I tried status=>Igen=>Yes in replace_metadata, but unfortunately that didn't work.

Sorry for the trouble and thank you! 😊
estherflails is offline   Reply With Quote