ZeroQI / Hama.bundle

Plex HTTP Anidb Metadata Agent (HAMA)
GNU General Public License v3.0
1.19k stars 110 forks source link

Episode summary only updates to correct language after next episode added #499

Closed quashtaki closed 2 years ago

quashtaki commented 2 years ago

Hello, I'm having trouble with the language of summaries of airing anime (specifically Attack on Titan and Demon Slayer atm, but it's happened before with My Hero Academia and other shows). The summary will be in Japanese, even though TheTVDB has the summary in English. Refreshing metadata does not solve the issue. When the next episode gets added however, the summary gets changed to the correct language. I've tried making a new library, but the issue still persists. Sorry if this is expected/intended behavior, can't find anything about it but it's very possible I'm just terrible at searching.

Hama config: p1, p2 What the episodes look like: AoT, Demon Slayer Logs (library name: Anime):

com.plexapp.agents.hama.log com.plexapp.system.log Attack on Titan (2013) [tvdb2-267440].scanner.log Attack on Titan (2013) [tvdb2-267440].agent-search.log Attack on Titan (2013) [tvdb2-267440].agent-update.log (not sure if I'm supposed to upload another log file).

ZeroQI commented 2 years ago

Summary are in the language of the library, English in this case and We cache the results so the important is the content of the cache file

This could be seen here: common.LoadFile() - File cached locally - Filename: 'TheTVDB/json/267440/series_en.json', Age: '5.21 days', Limit: '6 days', url: 'https://api.thetvdb.com/series/267440?en'

If your EP summary in the Json file is in Japanese, then you are way to quick to download the EP after the Japanese release.

5 hours after you copied the logs the tvdb Jason cache will be outdated and download a new copy

When it happens, do a match search for series called 'clear-cache' then cancel it, then refresh your series metadata...

[=] originally_available_at Sources: (AniDB),TheTVDB Inside: '['TheTVDB', 'AniDB']' Value: '2022-01-17'

It's only 4.5 days since the episode aired in Japan!!! We are not ready for when TheTVDB will enforce the new API... I haven't been using my own agent for years so long lost the motivation to do the tvdb V4 API and this kind of tickets don't help... If you feel bad please donate