-
Notifications
You must be signed in to change notification settings - Fork 85
Description
Continuing the previous conversation from #760
Ok so first things off, the commit that added the parser (2f66219) is currently not in the latest release, we need to install the git version (in my case through the AUR)
To enable anitopy as the parser, you should add
{"title_parser": "anitopy"}to ~/.config/trackma/config.json or ~/.trackma/config.json
You can verify it by running trackma -d and you should see
[D] Tracker: Using Anitopy parser
Here are some of my issue, it seems that it doesnt work? Playing (MPRIS)
Test 1
Re:Zero S02E07 - Friend will not be recognized as the season 2 of the show
[D] Tracker (MPRIS): Guessing filename: Re:Zero S02E07 - Friend
[D] Tracker (MPRIS): Show guess: Re:Zero: {'id': 21355, 'title': 'Re:Zero kara Hajimeru Isekai Seikatsu', 'my_progress': 25, 'total': 25, 'type': None, 'titles': ['Re:Zero kara Hajimeru Isekai Seikatsu', 'Re:Zero kara Hajimeru Isekai Seikatsu', 'Re:ZERO -Starting Life in Another World-', 'Re:ゼロから始める異世界生活', 'Re: Life in a different world from zero', 'ReZero', 'Re Zero', 'Re:从零开始的异世界生活', 'Re:Zero รีเซทชีวิต ฝ่าวิกฤตต่างโลก', 'Re:Zero — жизнь с нуля в другом мире']} - 7
[D] Tracker (MPRIS): New tracker status: Tracker.PLAYING (previously: Tracker.NOVIDEO)
Tracker (MPRIS) warning: Not playing the next episode of Re:Zero kara Hajimeru Isekai Seikatsu (expected: 26, found: 7). Ignoring.
We need to add an altname as the first season, that is Re:Zero for it to work
altname "Re:Zero kara Hajimeru Isekai Seikatsu 2nd Season" "Re:Zero"
[D] Tracker (MPRIS): Guessing filename: Re:Zero S02E07 - Friend
[D] Tracker (MPRIS): Show guess: Re:Zero: {'id': 108632, 'title': 'Re:Zero kara Hajimeru Isekai Seikatsu 2nd Season', 'my_progress': 6, 'total': 13, 'type': None, 'titles': ['Re:Zero kara Hajimeru Isekai Seikatsu 2nd Season', 'Re:Zero kara Hajimeru Isekai Seikatsu 2nd Season', 'Re:ZERO -Starting Life in Another World- Season 2', 'Re:ゼロから始める異世界生活 2nd Season', 'Re:Zero kara Hajimeru Isekai Seikatsu (2020)', 'Re: 제로부터 시작하는 이세계 생활 2기', 'Re:从零开始的异世界生活第二季(上半)', 'Re:从零开始的异世界生活 2 上半', 'Re:Zero รีเซทชีวิต ฝ่าวิกฤตต่างโลก ภาค 2', 'Re:Zero — жизнь с нуля в другом мире. Второй сезон']} - 7
[D] Tracker (MPRIS): New tracker status: Tracker.PLAYING (previously: Tracker.IGNORED)
Tracker (MPRIS): Will update Re:Zero kara Hajimeru Isekai Seikatsu 2nd Season - 7
But running a quick python interactive shell to test anitopy will show that it's indeed recognized as season2 from "Re:Zero". So why we need to add an alt name in the first place?
>>> import anitopy
>>> anitopy.parse('Re:Zero S02E07 - Friend');
{'file_name': 'Re:Zero S02E07 - Friend', 'anime_season': '02', 'episode_number': '07', 'anime_title': 'Re:Zero', 'episode_title': 'Friend'}
Test 2
Re:Zero Break Time S02E06 - Otto's Diary - 05 will not be recognized at all
[D] Tracker (MPRIS): Guessing filename: Re:Zero Break Time S02E06 - Otto's Diary - 05
[D] Tracker (MPRIS): Show guess: Re:Zero Break Time: None - 6
Until, we add an altname using the trackma cli
altname "Re:Zero kara Hajimeru Kyuukei Jikan (Break Time) 2nd Season" "Re:Zero Break Time"
Then it will be recognized
Anitopy result from python interactive shell:
>>> import anitopy
>>> anitopy.parse('Re:Zero Break Time S02E06 - Otto\'s Diary - 05');
{'file_name': "Re:Zero Break Time S02E06 - Otto's Diary - 05", 'anime_season': '02', 'episode_number': '06', 'anime_title': 'Re:Zero Break Time', 'episode_title': "Otto's Diary - 05"}
Am I doing something wrong here? I think that trackma will use the anime_title field and match it through the synonyms on anilist (first case)