Hama.bundle
Hama.bundle copied to clipboard
Hama not loading any metadata
Hello!
Used Hama and ASS without problems till this Feburary. Than Hama stopped loading metadata.
I tried updating Hama and ASS, then tried total cleanup (uninstall + delete plex folder completely) and reinstalling of plex/hama/ass. But still no luck.
2022-07-03 00:33:07,289 (caa0) : INFO (agentkit:961) - Searching for matches for {'openSubtitlesHash': '0f4c5f156312814a', 'episode': '24', 'name': None, 'episodic': '1', 'show': 'Shakugan no Shana (BD)', 'season': '1', 'plexHash': '2a997e6ac58d1df306ed8d8fee2aab92492bfa74', 'filename': 'E%3A%5C%D0%90%D0%BD%D0%B8%D0%BC%D0%B5%5CShakugan%20no%20Shana%20%28BD%201280x720%20x264%20AAC%29%5C%5BZero-Raws%5D%20Shakugan%20no%20Shana%20-%2024%20%28BD%201280x720%20x264%20AAC%29%2Emkv', 'year': None, 'duration': '1481088', 'id': '346'}
2022-07-03 00:33:07,290 (caa0) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/346/tree'
2022-07-03 00:33:07,308 (caa0) : INFO (common:135) - ==== common.PlexLog(file="C:\Users\feofa\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\_Logs\Anime\Shakugan no Shana (BD 1280x720 x264 AAC).agent-search.log")
2022-07-03 00:33:07,986 (caa0) : DEBUG (runtime:88) - Sending packed state data (104 bytes)
2022-07-03 00:33:07,986 (caa0) : DEBUG (runtime:924) - Response: [200] str, 2108 bytes
2022-07-03 00:33:10,339 (a88c) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzMwozNDZzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM0NApjb20ucGxleGFwcC5hZ2VudHMuaGFtYTovL2FuaWRiLTM0MDg%40bGFuZz1lbnM0Cmd1aWRzMTAKYW5pZGItMzQwOHMyCmlkcjAK
2022-07-03 00:33:10,342 (a88c) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzMwozNDZzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM0NApjb20ucGxleGFwcC5hZ2VudHMuaGFtYTovL2FuaWRiLTM0MDg@bGFuZz1lbnM0Cmd1aWRzMTAKYW5pZGItMzQwOHMyCmlkcjAK
2022-07-03 00:33:10,342 (a88c) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.hama://anidb-3408?lang=en
2022-07-03 00:33:10,342 (a88c) : ERROR (model:205) - Cannot read model from C:\Users\feofa\AppData\Local\Plex Media Server\Metadata\TV Shows\8\574b3a9bc1c9a7bf85d736471ea87cd4ef2c383.bundle\Contents\com.plexapp.agents.hama
2022-07-03 00:33:10,344 (a88c) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/346/tree'
2022-07-03 00:33:10,358 (a88c) : INFO (common:135) - ==== common.PlexLog(file="C:\Users\feofa\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\_Logs\Anime\Shakugan no Shana (BD 1280x720 x264 AAC).agent-update.log")
2022-07-03 00:33:10,411 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/login'
2022-07-03 00:33:10,862 (a88c) : DEBUG (sandbox:19) - TheTVDBv2.LoadFileTVDB() - URL https://api.thetvdb.com/login, headers: {'Content-type': 'application/json', 'Accept-Language': 'en', 'User-agent': 'Plex/HAMA'}
2022-07-03 00:33:10,867 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/series/78962?en'
2022-07-03 00:33:11,157 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/series/78962?en'
2022-07-03 00:33:11,164 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/series/78962/actors'
2022-07-03 00:33:11,308 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/series/78962/actors'
2022-07-03 00:33:11,312 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/series/78962/episodes?page=1'
2022-07-03 00:33:11,476 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/series/78962/episodes?page=1'
2022-07-03 00:33:11,500 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/series/78962/episodes?page=2'
2022-07-03 00:33:11,802 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/series/78962/episodes?page=2'
2022-07-03 00:33:11,815 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/300551'
2022-07-03 00:33:11,982 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/300551'
2022-07-03 00:33:11,987 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/300682'
2022-07-03 00:33:12,135 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/300682'
2022-07-03 00:33:12,141 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/300683'
2022-07-03 00:33:12,276 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/300683'
2022-07-03 00:33:12,280 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/300684'
2022-07-03 00:33:12,506 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/300684'
2022-07-03 00:33:12,513 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/300685'
2022-07-03 00:33:12,651 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/300685'
2022-07-03 00:33:12,655 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/300686'
2022-07-03 00:33:12,790 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/300686'
2022-07-03 00:33:12,796 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/300687'
2022-07-03 00:33:12,953 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/300687'
2022-07-03 00:33:12,957 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/301333'
2022-07-03 00:33:13,174 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/301333'
2022-07-03 00:33:13,180 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/301334'
2022-07-03 00:33:13,338 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/301334'
2022-07-03 00:33:13,344 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/301335'
2022-07-03 00:33:13,486 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/301335'
2022-07-03 00:33:13,490 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/305491'
2022-07-03 00:33:13,631 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/305491'
2022-07-03 00:33:13,637 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/305815'
2022-07-03 00:33:13,779 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/305815'
2022-07-03 00:33:13,785 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/305493'
2022-07-03 00:33:13,926 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/305493'
2022-07-03 00:33:13,930 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/305494'
2022-07-03 00:33:14,092 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/305494'
2022-07-03 00:33:14,096 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/305495'
2022-07-03 00:33:14,236 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/305495'
2022-07-03 00:33:14,242 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/305496'
2022-07-03 00:33:14,374 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/305496'
2022-07-03 00:33:14,378 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/305497'
2022-07-03 00:33:14,519 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/305497'
2022-07-03 00:33:14,525 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/305498'
2022-07-03 00:33:14,668 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/305498'
2022-07-03 00:33:14,674 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/305499'
2022-07-03 00:33:14,822 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/305499'
2022-07-03 00:33:14,828 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/305500'
2022-07-03 00:33:14,973 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/305500'
2022-07-03 00:33:14,979 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/311358'
2022-07-03 00:33:15,127 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/311358'
2022-07-03 00:33:15,132 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/311359'
2022-07-03 00:33:15,266 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/311359'
2022-07-03 00:33:15,272 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/311360'
2022-07-03 00:33:15,411 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/311360'
2022-07-03 00:33:15,417 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/episodes/311361'
2022-07-03 00:33:15,632 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/episodes/311361'
2022-07-03 00:33:15,642 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/series/78962/images'
2022-07-03 00:33:15,773 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/series/78962/images'
2022-07-03 00:33:15,779 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/series/78962/images/query?keyType=fanart'
2022-07-03 00:33:16,069 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/series/78962/images/query?keyType=fanart'
2022-07-03 00:33:16,082 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/series/78962/images/query?keyType=poster'
2022-07-03 00:33:16,263 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/series/78962/images/query?keyType=poster'
2022-07-03 00:33:16,270 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/series/78962/images/query?keyType=series'
2022-07-03 00:33:16,559 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/series/78962/images/query?keyType=series'
2022-07-03 00:33:16,568 (a88c) : DEBUG (networking:143) - Requesting 'https://api.thetvdb.com/series/78962/images/query?keyType=season'
2022-07-03 00:33:16,710 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.thetvdb.com/series/78962/images/query?keyType=season'
2022-07-03 00:33:16,723 (a88c) : DEBUG (sandbox:19) - Throttle: 'AniDB', Duration: 3600, Count: 1 of 100
2022-07-03 00:33:16,726 (a88c) : DEBUG (networking:143) - Requesting 'http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=3408'
2022-07-03 00:33:16,881 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=3408'
2022-07-03 00:33:22,980 (a88c) : DEBUG (networking:143) - Requesting 'https://api.TheMovieDb.org/3/find/78962?api_key=7f4a0bd0bd3315bb832e17feda70b5cd&external_source=tvdb_id&append_to_response=releases,credits,trailers,external_ids&language=en'
2022-07-03 00:33:23,142 (a88c) : DEBUG (sandbox:19) - Downloaded URL 'https://api.TheMovieDb.org/3/find/78962?api_key=7f4a0bd0bd3315bb832e17feda70b5cd&external_source=tvdb_id&append_to_response=releases,credits,trailers,external_ids&language=en'
2022-07-03 00:33:23,148 (a88c) : DEBUG (networking:143) - Requesting 'https://api.tmdb.org/3/configuration?api_key=7f4a0bd0bd3315bb832e17feda70b5cd'
2022-07-03 00:33:25,230 (a88c) : CRITICAL (core:574) - Exception in the update function of agent named 'HamaTV', called with guid 'com.plexapp.agents.hama://anidb-3408?lang=en' (most recent call last):
File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-6b0e31a64\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1093, in _update
agent.update(obj, media, lang, **kwargs)
File "C:\Users\feofa\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\__init__.py", line 166, in update
def update (self, metadata, media, lang, force ): Update (metadata, media, lang, force, False)
File "C:\Users\feofa\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\__init__.py", line 142, in Update
dict_TheMovieDb, TSDbid, TMDbid, IMDbid = TheMovieDb.GetMetadata(media, movie, TVDBid, TMDbid, IMDbid)
File "C:\Users\feofa\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\TheMovieDb.py", line 57, in GetMetadata
elif not TMDbid: TMDbid = str(Dict(json, 'id'))
File "C:\Users\feofa\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\common.py", line 417, in LoadFile
Log.Error("common.LoadFile() - issue loading url: '{}', filename: '{}', Headers: {}, Exception: '{}'".format(url, filename, headers, e)) # issue loading, but not AniDB banned as it returns "<error>Banned</error>"
File "C:\Users\feofa\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\common.py", line 102, in Error
def Error (self, msg, *args, **kwargs): self.Logger().error ("ERROR: {}".format(msg), *args, **kwargs); self.Root("ERROR: {}".format(msg))
File "C:\Users\feofa\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\common.py", line 98, in Root
def Root (self, msg, *args, **kwargs): logging.getLogger('com.plexapp.agents.hama').debug(msg, *args, **kwargs)
File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-6b0e31a64\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 19, in _apply
return apply(f, args, kwargs)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging\__init__.py", line 1162, in debug
self._log(DEBUG, msg, args, **kwargs)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging\__init__.py", line 1293, in _log
self.handle(record)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging\__init__.py", line 1303, in handle
self.callHandlers(record)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging\__init__.py", line 1343, in callHandlers
hdlr.handle(record)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging\__init__.py", line 766, in handle
self.emit(record)
File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-6b0e31a64\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\core.py", line 89, in emit
self._core.sandbox.context.log.append(self.format(record))
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging\__init__.py", line 741, in format
return fmt.format(record)
File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-6b0e31a64\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\core.py", line 77, in format
record.__dict__[key] = uni(record.__dict__[key])
File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-6b0e31a64\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 51, in uni
return unicode(s.decode('utf-8'))
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\encodings\utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xcf in position 276: invalid continuation byte
2022-07-03 00:33:25,233 (a88c) : DEBUG (model:229) - Serializing to C:\Users\feofa\AppData\Local\Plex Media Server\Metadata\TV Shows\8\574b3a9bc1c9a7bf85d736471ea87cd4ef2c383.bundle\Contents\com.plexapp.agents.hama\Info.xml
2022-07-03 00:33:25,233 (a88c) : DEBUG (runtime:88) - Sending packed state data (104 bytes)
2022-07-03 00:33:25,234 (a88c) : DEBUG (runtime:924) - Response: [200] str, 16 bytes
2022-07-03 00:37:29,494 (1904) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgpiYzg1MWRhNzVlYjdmN2Y4czE3Cm9wZW5TdWJ0aXRsZXNIYXNoczMKNTAxczcKZXBpc29kZXM0NwpTaHV1a3lva3UgVG9rdWl0ZW4gLSBLYW5pIEppa2FuIFNoaW5kZW4gU29sb21vbnM0Cm5hbWVzMQoxczgKZXBpc29kaWNzNDcKU2h1dWt5b2t1IFRva3VpdGVuIC0gS2FuaSBKaWthbiBTaGluZGVuIFNvbG9tb25zNApzaG93czEKMHM2CnNlYXNvbm5zNAp5ZWFyczEzMgpFJTNBJTVDJUQwJTkwJUQwJUJEJUQwJUI4JUQwJUJDJUQwJUI1JTVDRmF0ZSUyMEdyYW5kJTIwT3JkZXIlMjAtJTIwU2h1dWt5b2t1JTIwVG9rdWl0ZW4lMjAtJTIwS2FuaSUyMEppa2FuJTIwU2hpbmRlbiUyMFNvbG9tb24lMkVta3ZzOApmaWxlbmFtZXM0MApmNTA2YmNiODFmODBmOGU1MzNmMjFlYjQ3MWNkZWFhMTgyM2JlYmFlczgKcGxleEhhc2hzNwo1NjY0NTExczgKZHVyYXRpb25zMQo1czIKaWRyMAo_
2022-07-03 00:37:29,496 (1904) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2022-07-03 00:37:29,496 (1904) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgpiYzg1MWRhNzVlYjdmN2Y4czE3Cm9wZW5TdWJ0aXRsZXNIYXNoczMKNTAxczcKZXBpc29kZXM0NwpTaHV1a3lva3UgVG9rdWl0ZW4gLSBLYW5pIEppa2FuIFNoaW5kZW4gU29sb21vbnM0Cm5hbWVzMQoxczgKZXBpc29kaWNzNDcKU2h1dWt5b2t1IFRva3VpdGVuIC0gS2FuaSBKaWthbiBTaGluZGVuIFNvbG9tb25zNApzaG93czEKMHM2CnNlYXNvbm5zNAp5ZWFyczEzMgpFJTNBJTVDJUQwJTkwJUQwJUJEJUQwJUI4JUQwJUJDJUQwJUI1JTVDRmF0ZSUyMEdyYW5kJTIwT3JkZXIlMjAtJTIwU2h1dWt5b2t1JTIwVG9rdWl0ZW4lMjAtJTIwS2FuaSUyMEppa2FuJTIwU2hpbmRlbiUyMFNvbG9tb24lMkVta3ZzOApmaWxlbmFtZXM0MApmNTA2YmNiODFmODBmOGU1MzNmMjFlYjQ3MWNkZWFhMTgyM2JlYmFlczgKcGxleEhhc2hzNwo1NjY0NTExczgKZHVyYXRpb25zMQo1czIKaWRyMAo_
2022-07-03 00:37:29,496 (1904) : INFO (agentkit:961) - Searching for matches for {'openSubtitlesHash': 'bc851da75eb7f7f8', 'episode': '501', 'name': 'Shuukyoku Tokuiten - Kani Jikan Shinden Solomon', 'episodic': '1', 'show': 'Shuukyoku Tokuiten - Kani Jikan Shinden Solomon', 'season': '0', 'plexHash': 'f506bcb81f80f8e533f21eb471cdeaa1823bebae', 'filename': 'E%3A%5C%D0%90%D0%BD%D0%B8%D0%BC%D0%B5%5CFate%20Grand%20Order%20-%20Shuukyoku%20Tokuiten%20-%20Kani%20Jikan%20Shinden%20Solomon%2Emkv', 'year': None, 'duration': '5664511', 'id': '5'}
2022-07-03 00:37:29,497 (1904) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/5/tree'
2022-07-03 00:37:29,503 (1904) : INFO (common:135) - ==== common.PlexLog(file="C:\Users\feofa\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\_Logs\Anime\..agent-search.log")
2022-07-03 00:37:30,993 (1904) : DEBUG (networking:138) - Fetching 'https://thetvdb.com/api/GetSeries.php?seriesname=Shuukyoku%20Tokuiten%20-%20Kani%20Jikan%20Shinden%20Solomon' from the HTTP cache
2022-07-03 00:37:31,002 (1904) : DEBUG (runtime:88) - Sending packed state data (104 bytes)
2022-07-03 00:37:31,003 (1904) : DEBUG (runtime:924) - Response: [200] str, 13340 bytes
2022-07-03 00:40:01,644 (7d2c) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzMgoxMXM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczQyCmNvbS5wbGV4YXBwLmFnZW50cy5oYW1hOi8vYW5pZGItNzg%40bGFuZz1lbnM0Cmd1aWRzOAphbmlkYi03OHMyCmlkcjAK
2022-07-03 00:40:01,644 (7d2c) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2022-07-03 00:40:01,644 (7d2c) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzMgoxMXM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczQyCmNvbS5wbGV4YXBwLmFnZW50cy5oYW1hOi8vYW5pZGItNzg@bGFuZz1lbnM0Cmd1aWRzOAphbmlkYi03OHMyCmlkcjAK
2022-07-03 00:40:01,645 (7d2c) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.hama://anidb-78?lang=en
2022-07-03 00:40:01,647 (7d2c) : ERROR (model:205) - Cannot read model from C:\Users\feofa\AppData\Local\Plex Media Server\Metadata\TV Shows\3\580eaba61879b8cd366c95d4eaefcf2b1c60b9b.bundle\Contents\com.plexapp.agents.hama
2022-07-03 00:40:01,647 (7d2c) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/11/tree'
2022-07-03 00:40:01,654 (7d2c) : INFO (common:135) - ==== common.PlexLog(file="C:\Users\feofa\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\_Logs\Anime\..agent-update.log")
2022-07-03 00:40:01,657 (7d2c) : DEBUG (sandbox:19) - Throttle: 'AniDB', Duration: 3600, Count: 2 of 100
Any ideas how could i fix it?
elif not TMDbid: TMDbid = str(Dict(json, 'id'))
The failsafe failed to get proper Jason string and converting to string doesn't help. Would need to change to something else like
elif not TMDbid: TMDbid = None
or log to diag file the string with 'Log(TMDbid)'
elif not TMDbid: TMDbid = str(Dict(json, 'id'))
The failsafe failed to get proper Jason string and converting to string doesn't help. Would need to change to something else likeelif not TMDbid: TMDbid = None
or log to diag file the string with 'Log(TMDbid)'
Thanks for quick reply, ZeroQI!
If it's correct - i've done this change in TheMovieDb.py
Restarted Plex, tried metadata update - still no luck.
Attached new log-file com.plexapp.agents.hama.log
Also in meantime tried to install last version of HAMA/ASS + PlexMediaServer-1.25.5.5492 (rolled back to version that worked in winter 2021-2022) on clean pc (with no plex installed before). Got the same problem with metadata.
I'm having this same issue. Anything new I add gets the episode name from the file name, but no other metadata at all.
EDIT: I got it working again by deleting all the logs in both Plex Media Server/Logs
and
Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/
and then re-installing the latest ASS and HamaTV, including the .xml files from ASS.
EDIT: It's still acting kind of weird. Some shows I have to do the Plex Dance and then manually refresh metadata after adding it to get it to work.
Hi, if putting all latest code and deleting cache, then it could be a plex database corruption, or corrupted cache due to some bad code
@FeofanAseev logs show error to due to weird/special character
2022-07-03 02:02:53,437 (29a4) : DEBUG (networking:143) - Requesting 'https://api.tmdb.org/3/configuration?api_key=7f4a0bd0bd3315bb832e17feda70b5cd'
2022-07-03 02:02:55,503 (29a4) : CRITICAL (core:574) - Exception in the update function of agent named 'HamaTV', called with guid 'com.plexapp.agents.hama://anidb-16172?lang=en' (most recent call last):
File "C:\Users\feofa\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\TheMovieDb.py", line 51, in GetMetadata
if Dict(json, 'genres' ): Log.Info("[ ] genres: {}" .format(SaveDict( sorted([ Dict(genre, 'name') for genre in Dict(json, 'genres', default=[]) ]), TheMovieDb_dict, 'genres' )))
File "C:\Users\feofa\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\common.py", line 98, in Root
def Root (self, msg, *args, **kwargs): logging.getLogger('com.plexapp.agents.hama').debug(msg, *args, **kwargs)
[...]
UnicodeDecodeError: 'utf8' codec can't decode byte 0xcf in position 276: invalid continuation byte
need new logs after plex/hama update, and try to mode cache to see if indeed it works once no longer present