ZeroQI / Hama.bundle

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

"No Results" for all titles #307

Closed Paradox52525 closed 5 years ago

Paradox52525 commented 5 years ago

I've had this scanner working for quite a long time, but today I noticed it is not able find matches for anything. I am seeing an error in the HAMA logs, but I'm not entirely sure what it means. I have already tried re-deploying the HAMA files and restarting Plex.

Entries from _root.agent.log: 2019-05-04 16:01:16,385 - 16d0 - Sending packed state data (104 bytes) 2019-05-04 16:01:16,387 - 16d0 - Response: [200] str, 16 bytes 2019-05-04 16:01:34,585 - 104c - Handling request GET /:/plugins/com.plexapp.agents.hama/prefs 2019-05-04 16:01:34,585 - 104c - Found route matching /:/plugins/com.plexapp.agents.hama/prefs 2019-05-04 16:01:34,605 - 104c - Sending packed state data (104 bytes) 2019-05-04 16:01:34,605 - 104c - Response: [200] MediaContainer, 6076 bytes 2019-05-04 16:03:38,107 - 12a4 - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTEwCnMxNgphNjg2ODZmMTI5NWIxZjRlczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMThzNwplcGlzb2RlczM1Ck92ZXJkcml2ZSwgVGhlIEtpbmcgb2YgRGlzdG9ydGlvbiA1czQKbmFtZXMxCjFzOAplcGlzb2RpY3MyMgpCb29naWVwb3Agd2EgV2FyYXdhbmFpczQKc2hvd3MxCjFzNgpzZWFzb25zMTY3CkUlM0ElNUNBbmltZSU1Q0Jvb2dpZXBvcCUyMHdhJTIwV2FyYXdhbmFpJTVDQm9vZ2llcG9wJTIwd2ElMjBXYXJhd2FuYWklMjAtJTIwUzAxRTE4JTIwLSUyME92ZXJkcml2ZSUyQyUyMFRoZSUyMEtpbmclMjBvZiUyMERpc3RvcnRpb24lMjA1JTIwJTIwW01DUl0lMjBbRjhGQzhENEZdJTJFbWt2czgKZmlsZW5hbWVzNDAKNDNlZjRhZjAzOTdlMTdjYjQzYWNiYjBmYzFkODRjZmVmYmJkOGJiMXM4CnBsZXhIYXNoczcKMTQyMDE3N3M4CmR1cmF0aW9uczUKNzE4NTdzMgppZHIwCg 2019-05-04 16:03:38,108 - 12a4 - Received packed state data (80 bytes) 2019-05-04 16:03:38,109 - 12a4 - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTEwCnMxNgphNjg2ODZmMTI5NWIxZjRlczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMThzNwplcGlzb2RlczM1Ck92ZXJkcml2ZSwgVGhlIEtpbmcgb2YgRGlzdG9ydGlvbiA1czQKbmFtZXMxCjFzOAplcGlzb2RpY3MyMgpCb29naWVwb3Agd2EgV2FyYXdhbmFpczQKc2hvd3MxCjFzNgpzZWFzb25zMTY3CkUlM0ElNUNBbmltZSU1Q0Jvb2dpZXBvcCUyMHdhJTIwV2FyYXdhbmFpJTVDQm9vZ2llcG9wJTIwd2ElMjBXYXJhd2FuYWklMjAtJTIwUzAxRTE4JTIwLSUyME92ZXJkcml2ZSUyQyUyMFRoZSUyMEtpbmclMjBvZiUyMERpc3RvcnRpb24lMjA1JTIwJTIwW01DUl0lMjBbRjhGQzhENEZdJTJFbWt2czgKZmlsZW5hbWVzNDAKNDNlZjRhZjAzOTdlMTdjYjQzYWNiYjBmYzFkODRjZmVmYmJkOGJiMXM4CnBsZXhIYXNoczcKMTQyMDE3N3M4CmR1cmF0aW9uczUKNzE4NTdzMgppZHIwCg 2019-05-04 16:03:38,109 - 12a4 - Searching for matches for {'openSubtitlesHash': 'a68686f1295b1f4e', 'episode': '18', 'name': 'Overdrive, The King of Distortion 5', 'episodic': '1', 'show': 'Boogiepop wa Warawanai', 'season': '1', 'filename': 'E%3A%5CAnime%5CBoogiepop%20wa%20Warawanai%5CBoogiepop%20wa%20Warawanai%20-%20S01E18%20-%20Overdrive%2C%20The%20King%20of%20Distortion%205%20%20[MCR]%20[F8FC8D4F]%2Emkv', 'plexHash': '43ef4af0397e17cb43acbb0fc1d84cfefbbd8bb1', 'duration': '1420177', 'id': '71857'} 2019-05-04 16:03:38,111 - 12a4 - Requesting 'http://127.0.0.1:32400/library/metadata/71857/tree' 2019-05-04 16:03:38,142 - 12a4 - ==== common.PlexLog(file="C:\Users\FS\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs\Anime\Boogiepop wa Warawanai.agent-search.log") 2019-05-04 16:03:38,145 - 12a4 - Exception in the search function of agent named 'HamaTV', called with keyword arguments {'openSubtitlesHash': 'a68686f1295b1f4e', 'episode': '18', 'name': 'Overdrive, The King of Distortion 5', 'episodic': '1', 'show': 'Boogiepop wa Warawanai', 'season': '1', 'filename': 'E%3A%5CAnime%5CBoogiepop%20wa%20Warawanai%5CBoogiepop%20wa%20Warawanai%20-%20S01E18%20-%20Overdrive%2C%20The%20King%20of%20Distortion%205%20%20[MCR]%20[F8FC8D4F]%2Emkv', 'plexHash': '43ef4af0397e17cb43acbb0fc1d84cfefbbd8bb1', 'duration': '1420177', 'id': '71857'} (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-bb4a2cb6c\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1007, in _search agent.search(*f_args, **f_kwargs) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code__init.py", line 151, in search def search (self, results, media, lang, manual): Search (results, media, lang, manual, False) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\init__.py", line 100, in Search if movie or max(map(int, media.seasons.keys()))<=1: maxi, n = AniDB.Search(results, media, lang, manual, movie) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\AniDB.py", line 44, in Search Log.Info('len AniDBTitlesDB: {}'.format(len(AniDBTitlesDB))) TypeError: object of type 'NoneType' has no len()

ZeroQI commented 5 years ago

Delete anidb title XML db in agent data folders and latest version

lekoOwO commented 5 years ago

Sorry, where is the "agent data folder" ? If it's Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\AniDB, It's empty there...

Edit: After putting anime-titles.xml inside com.plexapp.agents.hama\DataItems\AniDB, the search has successed. Is the part of downloading anime-titles.xml corrupted?

arabcoders commented 5 years ago

Hello @ZeroQI ,

I followed what you said and deleted the xml from the Cache, however the problem still present i got zero matches, i updated both hama and ASS and checked folder structure in Plugins Support and they matches. log is as follow

2019-05-05 14:01:34,845 (343c) :  DEBUG (runtime:88) - Sending packed state data (104 bytes)
2019-05-05 14:01:34,845 (343c) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
2019-05-05 14:01:42,868 (3954) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IxczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTMKbnM0CnllYXJzNQo2OTQ0NXMyCmlkczMxCkJva3V0YWNoaSB3YSBCZW5reW91IGdhIERla2luYWlzNApzaG93cjAK
2019-05-05 14:01:42,868 (3954) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2019-05-05 14:01:42,868 (3954) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IxczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTMKbnM0CnllYXJzNQo2OTQ0NXMyCmlkczMxCkJva3V0YWNoaSB3YSBCZW5reW91IGdhIERla2luYWlzNApzaG93cjAK
2019-05-05 14:01:42,869 (3954) :  INFO (agentkit:957) - Searching for matches for {'show': 'Bokutachi wa Benkyou ga Dekinai', 'id': '69445', 'year': None}
2019-05-05 14:01:42,869 (3954) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/69445/tree'
2019-05-05 14:01:42,875 (3954) :  INFO (sandbox:19) - [!] Library access denied
2019-05-05 14:01:42,875 (3954) :  INFO (sandbox:19) - [!] ASS root scanner file present: "G:\zPlexData\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\_Logs\_root_.scanner.log"
2019-05-05 14:01:42,875 (3954) :  INFO (sandbox:19) - [!] root not found: "E:\Bokutachi wa Benkyou ga Dekinai"
2019-05-05 14:01:42,877 (3954) :  INFO (common:151) - ==== common.PlexLog(file="G:\zPlexData\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\_Logs\_unknown_folder.agent-search.log")
2019-05-05 14:01:42,878 (3954) :  CRITICAL (core:574) - Exception in the search function of agent named 'HamaTV', called with keyword arguments {'show': 'Bokutachi wa Benkyou ga Dekinai', 'id': '69445', 'year': None} (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-bb4a2cb6c\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1007, in _search
    agent.search(*f_args, **f_kwargs)
  File "G:\zPlexData\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\__init__.py", line 151, in search
    def search (self, results,  media, lang, manual):  Search (results,  media, lang, manual, False)
  File "G:\zPlexData\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\__init__.py", line 100, in Search
    if movie or max(map(int, media.seasons.keys()))<=1:  maxi, n =         AniDB.Search(results, media, lang, manual, movie)
  File "G:\zPlexData\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\AniDB.py", line 45, in Search
    for element in AniDBTitlesDB.xpath(u"/animetitles/anime/title[text()[contains(lower-case(.), '%s')]]" % orig_title.lower().replace("'", " ")):
AttributeError: 'str' object has no attribute 'xpath'

sorry disregard what i said, i missed anime-titles.xml inside AniDB folder thought you meant the master list.

It's working now.

Paradox52525 commented 5 years ago

Hi, sorry but I am not clear on how to fix this.

I deleted the "anime-titles.xml" file from the "DataItems" folder, but I do not see a new version of this file in any of the GitHub zip files: Hama.bundle-master Absolute-Series-Scanner-master Plug-in Support

I have removed and reinstalled all three of the components above per the install instructions to make sure I am on the latest version of everything, but am still having the same issue. Where do I get a new version of anime-titles.xml?

FYI I am still seeing the same log error as before: 2019-05-05 11:36:14,203 - da8 - Exception in the search function of agent named 'HamaTV', called with keyword arguments {'openSubtitlesHash': 'a68686f1295b1f4e', 'episode': '18', 'name': 'Overdrive, The King of Distortion 5', 'episodic': '1', 'show': 'Boogiepop wa Warawanai', 'season': '1', 'filename': 'E%3A%5CAnime%5CBoogiepop%20wa%20Warawanai%5CBoogiepop%20wa%20Warawanai%20-%20S01E18%20-%20Overdrive%2C%20The%20King%20of%20Distortion%205%20%20[MCR]%20[F8FC8D4F]%2Emkv', 'plexHash': '43ef4af0397e17cb43acbb0fc1d84cfefbbd8bb1', 'duration': '1420177', 'id': '71857'} (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-bb4a2cb6c\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1007, in _search agent.search(*f_args, **f_kwargs) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code__init.py", line 151, in search def search (self, results, media, lang, manual): Search (results, media, lang, manual, False) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\init__.py", line 100, in Search if movie or max(map(int, media.seasons.keys()))<=1: maxi, n = AniDB.Search(results, media, lang, manual, movie) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\AniDB.py", line 44, in Search Log.Info('len AniDBTitlesDB: {}'.format(len(AniDBTitlesDB))) TypeError: object of type 'NoneType' has no len()

lekoOwO commented 5 years ago

The link is written in README.

ZeroQI commented 5 years ago

Make sure you have latest hama version and restart plex, it is downloaded automatically from AniDB. You can get it from here:

Paradox52525 commented 5 years ago

I have the latest version of HAMA and ASS. I have restarted Plex a few times. It does not appear to be downloading or creating this file.

I tried manually downloading https://raw.githubusercontent.com/ScudLee/anime-lists/master/animetitles.xml and have tried placing it in both "DataItems" and "DataItems\AniDB". This did not correct the issue.

I cannot download http://anidb.net/api/anime-titles.xml.gz as I get a connection timeout trying to browse to this URL.

ZeroQI commented 5 years ago

I need Hama full logs, including the part that loads the title database once for all calls. All i know is the title database is empty.

Paradox52525 commented 5 years ago

Ok, here are the entire contents of the com.plexapp.agents.hama.log since my last Plex restart:

2019-05-05 11:57:58,217 (7a0) : INFO (core:349) - Starting framework core - Version: 2.6.3, Build: bb4a2cb (Mon Apr 22 09:46:59 UTC 2019) 2019-05-05 11:57:58,217 (7a0) : DEBUG (core:361) - Using the elevated policy 2019-05-05 11:57:58,217 (7a0) : DEBUG (core:450) - Starting runtime component. 2019-05-05 11:57:58,219 (7a0) : DEBUG (core:450) - Starting caching component. 2019-05-05 11:57:58,221 (7a0) : DEBUG (core:450) - Starting data component. 2019-05-05 11:57:58,221 (7a0) : DEBUG (core:450) - Starting networking component. 2019-05-05 11:57:58,221 (7a0) : DEBUG (networking:284) - Loaded HTTP cookies 2019-05-05 11:57:58,243 (7a0) : DEBUG (networking:452) - Setting the default network timeout to 20.0 2019-05-05 11:57:58,246 (7a0) : DEBUG (core:450) - Starting localization component. 2019-05-05 11:57:58,246 (7a0) : INFO (localization:409) - Setting the default locale to en-us 2019-05-05 11:57:58,246 (7a0) : DEBUG (core:450) - Starting messaging component. 2019-05-05 11:57:58,246 (7a0) : DEBUG (core:450) - Starting debugging component. 2019-05-05 11:57:58,249 (7a0) : DEBUG (core:450) - Starting services component. 2019-05-05 11:57:58,249 (15f0) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.hama' 2019-05-05 11:57:58,249 (7a0) : DEBUG (core:450) - Starting myplex component. 2019-05-05 11:57:58,252 (7a0) : DEBUG (core:450) - Starting notifications component. 2019-05-05 11:57:58,418 (7a0) : DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.hama in namespace 'metadata' 2019-05-05 11:57:58,427 (7a0) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes' 2019-05-05 11:57:58,453 (16e0) : DEBUG (services:265) - Plug-in is not daemonized - loading services from system 2019-05-05 11:57:58,453 (7a0) : DEBUG (runtime:1117) - Created a thread named 'load_allservices' 2019-05-05 11:57:58,457 (16e0) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMApyMAo' 2019-05-05 11:57:58,457 (7a0) : DEBUG (runtime:1117) - Created a thread named 'get_server_info' 2019-05-05 11:57:58,459 (1578) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400' 2019-05-05 11:57:58,461 (7a0) : DEBUG (core:150) - Finished starting framework core 2019-05-05 11:57:58,463 (7a0) : DEBUG (core:560) - Loading plug-in code 2019-05-05 11:57:58,473 (1578) : DEBUG (core:538) - Machine identifier is eac8949f1c4d0f2662f3700728c8d754d1814f6b 2019-05-05 11:57:58,473 (1578) : DEBUG (core:539) - Server version is 1.15.4.993-bb4a2cb6c 2019-05-05 11:57:58,684 (7a0) : DEBUG (core:566) - Finished loading plug-in code 2019-05-05 11:57:58,841 (16e0) : DEBUG (services:362) - Loaded services 2019-05-05 11:57:58,861 (420) : DEBUG (services:438) - No shared code to load 2019-05-05 11:57:59,493 (7a0) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/sections/' 2019-05-05 11:57:59,500 (7a0) : INFO (logkit:16) - Libraries: 2019-05-05 11:57:59,500 (7a0) : INFO (logkit:16) - [ ] id: 5, type: show, library: Anime , path: E:\Anime 2019-05-05 11:57:59,500 (7a0) : INFO (logkit:16) - [ ] id: 13, type: artist, library: English Music , path: E:\Music\English 2019-05-05 11:57:59,500 (7a0) : INFO (logkit:16) - [ ] id: 12, type: artist, library: Japanese Music , path: E:\Music\Japanese 2019-05-05 11:57:59,500 (7a0) : INFO (logkit:16) - [ ] id: 1, type: movie, library: Movies , path: E:\Movies 2019-05-05 11:57:59,500 (7a0) : INFO (logkit:16) - [ ] id: 2, type: show, library: Television , path: E:\Television 2019-05-05 11:58:00,582 (7a0) : DEBUG (agentkit:1115) - Creating new agent class called HamaTVAgent 2019-05-05 11:58:00,582 (7a0) : DEBUG (agentkit:933) - Updating agent information: [{'media_types': ['TV_Show'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': False, 'contributes_to': None, 'languages': ['en', 'fr', 'zh', 'sv', 'no', 'da', 'fi', 'nl', 'de', 'it', 'es', 'pl', 'hu', 'el', 'tr', 'ru', 'he', 'ja', 'pt', 'cs', 'ko', 'sl', 'hr'], 'persist_stored_files': True, 'version': 0, 'primaryprovider': True, 'prefs': True, 'name': 'HamaTV'}] 2019-05-05 11:58:00,585 (7a0) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQo2CmRpY3QKbGlzdApkaWN0Cmxpc3QKbGlzdApsaXN0CjIKczIzCmNvbS5wbGV4YXBwLmFnZW50cy5oYW1hczEwCmlkZW50aWZpZXJyMQpzMTAKYWdlbnRfaW5mbzEKcjIKMTAKcjMKczExCm1lZGlhX3R5cGVzcjQKczEyCmFjY2VwdHNfZnJvbWIwczE0CmZhbGxiYWNrX2FnZW50bnMxNApjb250cmlidXRlc190b3I1CnM5Cmxhbmd1YWdlc2IxczIwCnBlcnNpc3Rfc3RvcmVkX2ZpbGVzaTAKczcKdmVyc2lvbmIxczE2CnByaW1hcnlfcHJvdmlkZXJiMXM1CnByZWZzczYKSGFtYVRWczQKbmFtZTEKczcKVFZfU2hvdzEKczI5CmNvbS5wbGV4YXBwLmFnZW50cy5sb2NhbG1lZGlhMjMKczIKZW5zMgpmcnMyCnpoczIKc3ZzMgpub3MyCmRhczIKZmlzMgpubHMyCmRlczIKaXRzMgplc3MyCnBsczIKaHVzMgplbHMyCnRyczIKcnVzMgpoZXMyCmphczIKcHRzMgpjc3MyCmtvczIKc2xzMgpocnIwCg' 2019-05-05 11:58:00,608 (7a0) : DEBUG (agentkit:1115) - Creating new agent class called HamaMovieAgent 2019-05-05 11:58:00,611 (7a0) : DEBUG (agentkit:933) - Updating agent information: [{'media_types': ['TV_Show'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': False, 'contributes_to': None, 'languages': ['en', 'fr', 'zh', 'sv', 'no', 'da', 'fi', 'nl', 'de', 'it', 'es', 'pl', 'hu', 'el', 'tr', 'ru', 'he', 'ja', 'pt', 'cs', 'ko', 'sl', 'hr'], 'persist_stored_files': True, 'version': 0, 'primary_provider': True, 'prefs': True, 'name': 'HamaTV'}, {'media_types': ['Movie'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': False, 'contributes_to': None, 'languages': ['en', 'fr', 'zh', 'sv', 'no', 'da', 'fi', 'nl', 'de', 'it', 'es', 'pl', 'hu', 'el', 'tr', 'ru', 'he', 'ja', 'pt', 'cs', 'ko', 'sl', 'hr'], 'persist_stored_files': True, 'version': 0, 'primaryprovider': True, 'prefs': True, 'name': 'HamaMovies'}] 2019-05-05 11:58:00,611 (7a0) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxMApkaWN0Cmxpc3QKZGljdApsaXN0Cmxpc3QKbGlzdApkaWN0Cmxpc3QKbGlzdApsaXN0CjIKczIzCmNvbS5wbGV4YXBwLmFnZW50cy5oYW1hczEwCmlkZW50aWZpZXJyMQpzMTAKYWdlbnRfaW5mbzIKcjIKcjYKMTAKcjMKczExCm1lZGlhX3R5cGVzcjQKczEyCmFjY2VwdHNfZnJvbWIwczE0CmZhbGxiYWNrX2FnZW50bnMxNApjb250cmlidXRlc190b3I1CnM5Cmxhbmd1YWdlc2IxczIwCnBlcnNpc3Rfc3RvcmVkX2ZpbGVzaTAKczcKdmVyc2lvbmIxczE2CnByaW1hcnlfcHJvdmlkZXJiMXM1CnByZWZzczYKSGFtYVRWczQKbmFtZTEKczcKVFZfU2hvdzEKczI5CmNvbS5wbGV4YXBwLmFnZW50cy5sb2NhbG1lZGlhMjMKczIKZW5zMgpmcnMyCnpoczIKc3ZzMgpub3MyCmRhczIKZmlzMgpubHMyCmRlczIKaXRzMgplc3MyCnBsczIKaHVzMgplbHMyCnRyczIKcnVzMgpoZXMyCmphczIKcHRzMgpjc3MyCmtvczIKc2xzMgpocjEwCnI3CnMxMQptZWRpYV90eXBlc3I4CnMxMgphY2NlcHRzX2Zyb21iMHMxNApmYWxsYmFja19hZ2VudG5zMTQKY29udHJpYnV0ZXNfdG9yOQpzOQpsYW5ndWFnZXNiMXMyMApwZXJzaXN0X3N0b3JlZF9maWxlc2kwCnM3CnZlcnNpb25iMXMxNgpwcmltYXJ5X3Byb3ZpZGVyYjFzNQpwcmVmc3MxMApIYW1hTW92aWVzczQKbmFtZTEKczUKTW92aWUxCnMyOQpjb20ucGxleGFwcC5hZ2VudHMubG9jYWxtZWRpYTIzCnMyCmVuczIKZnJzMgp6aHMyCnN2czIKbm9zMgpkYXMyCmZpczIKbmxzMgpkZXMyCml0czIKZXNzMgpwbHMyCmh1czIKZWxzMgp0cnMyCnJ1czIKaGVzMgpqYXMyCnB0czIKY3NzMgprb3MyCnNsczIKaHJyMAo_' 2019-05-05 11:58:00,625 (7a0) : INFO (logkit:16) - ============================================================================================================================================================= 2019-05-05 11:58:00,625 (7a0) : INFO (logkit:16) - HTTP Anidb Metadata Agent by ZeroQI (Forked from Atomicstrawberry's v0.4, AnimeLists XMLs by SdudLee) - CPU: i386, OS: Windows 2019-05-05 11:58:00,625 (7a0) : INFO (logkit:16) - ============================================================================================================================================================= 2019-05-05 11:58:00,625 (7a0) : INFO (logkit:16) - ValidatePrefs(), PlexRoot: C:\Users\FS\AppData\Local\Plex Media Server 2019-05-05 11:58:00,631 (7a0) : INFO (logkit:16) - Loaded: C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\DefaultPrefs.json 2019-05-05 11:58:00,632 (7a0) : DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json 2019-05-05 11:58:00,645 (7a0) : DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.agents.hama 2019-05-05 11:58:00,647 (7a0) : INFO (logkit:16) - Prefs[rating ] = AniDB, TheTVDB, MyAnimeList, TheMovieDb, OMDb | TheTVDB, AniDB (still default value) 2019-05-05 11:58:00,648 (7a0) : INFO (logkit:16) - Prefs[content_rating ] = AniDB,TheTVDB (still default value) 2019-05-05 11:58:00,650 (7a0) : INFO (logkit:16) - Prefs[art ] = TheTVDB, TheMovieDb, FanartTV (still default value) 2019-05-05 11:58:00,651 (7a0) : INFO (logkit:16) - Prefs[EpisodeLanguagePriority] = x-jat, en, ja (still default value) 2019-05-05 11:58:00,651 (7a0) : INFO (logkit:16) - Prefs[SerieLanguagePriority ] = x-jat, en, ja (still default value) 2019-05-05 11:58:00,654 (7a0) : INFO (logkit:16) - Prefs[themes ] = TVTunes, Plex (still default value) 2019-05-05 11:58:00,654 (7a0) : INFO (logkit:16) - Prefs[quotes ] = None (still default value) 2019-05-05 11:58:00,657 (7a0) : INFO (logkit:16) - Prefs[thumbs ] = TheTVDB (still default value) 2019-05-05 11:58:00,657 (7a0) : INFO (logkit:16) - Prefs[year ] = AniDB (still default value) 2019-05-05 11:58:00,658 (7a0) : INFO (logkit:16) - Prefs[duration ] = TheTVDB, AniDB, MyAnimeList, TheMovieDb, OMDb (still default value) 2019-05-05 11:58:00,660 (7a0) : INFO (logkit:16) - Prefs[rating_count ] = None (still default value) 2019-05-05 11:58:00,663 (7a0) : INFO (logkit:16) - Prefs[genres ] = TheTVDB, AniDB, MyAnimeList, TheMovieDb, OMDb (still default value) 2019-05-05 11:58:00,663 (7a0) : INFO (logkit:16) - Prefs[title ] = AniDB, TheTVDB | TheTVDB, AniDB (still default value) 2019-05-05 11:58:00,663 (7a0) : INFO (logkit:16) - Prefs[MinimumWeight ] = None (Default: 400) 2019-05-05 11:58:00,664 (7a0) : INFO (logkit:16) - Prefs[content_rating_age ] = None (still default value) 2019-05-05 11:58:00,667 (7a0) : INFO (logkit:16) - Prefs[writers ] = AniDB,TheTVDB (still default value) 2019-05-05 11:58:00,667 (7a0) : INFO (logkit:16) - Prefs[collections ] = Local, AniDB, TheMovieDb, TheTVDB (still default value) 2019-05-05 11:58:00,670 (7a0) : INFO (logkit:16) - Prefs[absolute_index ] = TheTVDB (still default value) 2019-05-05 11:58:00,670 (7a0) : INFO (logkit:16) - Prefs[trivia ] = None (still default value) 2019-05-05 11:58:00,673 (7a0) : INFO (logkit:16) - Prefs[tags ] = MyAnimeList (still default value) 2019-05-05 11:58:00,673 (7a0) : INFO (logkit:16) - Prefs[audience_rating_image ] = None (still default value) 2019-05-05 11:58:00,674 (7a0) : INFO (logkit:16) - Prefs[rating_image ] = None (still default value) 2019-05-05 11:58:00,674 (7a0) : INFO (logkit:16) - Prefs[producers ] = AniDB,TheTVDB (still default value) 2019-05-05 11:58:00,677 (7a0) : INFO (logkit:16) - Prefs[audience_rating ] = None (still default value) 2019-05-05 11:58:00,677 (7a0) : INFO (logkit:16) - Prefs[studio ] = AnimeLists, AniDB, TheTVDB, TheMovieDb (still default value) 2019-05-05 11:58:00,680 (7a0) : INFO (logkit:16) - Prefs[adult ] = 0 (Default: false) 2019-05-05 11:58:00,680 (7a0) : INFO (logkit:16) - Prefs[posters ] = tvdb4, TheTVDB, TheMovieDb, FanartTV, AniDB (still default value) 2019-05-05 11:58:00,683 (7a0) : INFO (logkit:16) - Prefs[originally_available_at] = AniDB,TheTVDB (still default value) 2019-05-05 11:58:00,684 (7a0) : INFO (logkit:16) - Prefs[roles ] = AniDB, TheTVDB (still default value) 2019-05-05 11:58:00,684 (7a0) : INFO (logkit:16) - Prefs[countries ] = TheMovieDb (still default value) 2019-05-05 11:58:00,687 (7a0) : INFO (logkit:16) - Prefs[title_sort ] = AniDB,TheTVDB (still default value) 2019-05-05 11:58:00,687 (7a0) : INFO (logkit:16) - Prefs[original_title ] = AniDB,TheTVDB (still default value) 2019-05-05 11:58:00,690 (7a0) : INFO (logkit:16) - Prefs[OMDbApiKey ] = None (still default value) 2019-05-05 11:58:00,690 (7a0) : INFO (logkit:16) - Prefs[summary ] = TheTVDB, AniDB (still default value) 2019-05-05 11:58:00,693 (7a0) : INFO (logkit:16) - Prefs[reviews ] = None (still default value) 2019-05-05 11:58:00,693 (7a0) : INFO (logkit:16) - Prefs[guest_stars ] = None (still default value) 2019-05-05 11:58:00,694 (7a0) : INFO (logkit:16) - Prefs[directors ] = AniDB,TheTVDB (still default value) 2019-05-05 11:58:00,694 (7a0) : INFO (logkit:16) - Prefs[extras ] = None (still default value) 2019-05-05 11:58:00,697 (7a0) : INFO (logkit:16) - Prefs[tagline ] = TheMovieDb (still default value) 2019-05-05 11:58:00,697 (7a0) : INFO (logkit:16) - Prefs[banners ] = TheTVDB (still default value) 2019-05-05 11:58:00,700 (7a0) : INFO (logkit:16) - Next entry not in PrefsFieldList, so will not be updated by the engine 2019-05-05 11:58:00,700 (7a0) : INFO (logkit:16) - Prefs[similar ] = None (still default value) 2019-05-05 11:58:00,700 (7a0) : INFO (logkit:16) - Prefs[PosterLanguagePriority ] = en (still default value) 2019-05-05 11:58:00,700 (7a0) : INFO (logkit:16) - ============================================================================================================================================================= 2019-05-05 11:58:00,704 (7a0) : DEBUG (sandbox:19) - common.LoadFile() - file cached - CacheTime: 'Sun May 5 11:28:35 2019', Limit: 'Sat May 11 11:58:00 2019', url: 'https://raw.githubusercontent.com/ScudLee/anime-lists/master/anime-list-master.xml', Filename: 'AnimeLists\anime-list-master.xml' file_valid: 'True' 2019-05-05 11:58:00,782 (7a0) : DEBUG (sandbox:19) - common.LoadFile() - file cached - CacheTime: 'Sun May 5 11:28:35 2019', Limit: 'Sat May 11 11:58:00 2019', url: 'https://raw.githubusercontent.com/ZeroQI/Absolute-Series-Scanner/master/anime-list-corrections.xml', Filename: 'AnimeLists\anime-list-corrections.xml' file_valid: 'True' 2019-05-05 11:58:00,838 (7a0) : INFO (sandbox:19) - MergeMaps() - AniDBids concerned: [] 2019-05-05 11:58:00,855 (7a0) : DEBUG (sandbox:19) - common.LoadFile() - file cached - CacheTime: 'Sun May 5 11:28:35 2019', Limit: 'Sun Jun 2 11:58:00 2019', url: 'https://raw.githubusercontent.com/ScudLee/anime-lists/master/anime-movieset-list.xml', Filename: 'AnimeLists\anime-movieset-list.xml' file_valid: 'True' 2019-05-05 11:58:00,888 (7a0) : DEBUG (networking:166) - Requesting 'http://anidb.net/api/anime-titles.xml.gz' 2019-05-05 11:58:21,888 (7a0) : WARNING (sandbox:19) - common.LoadFile() - issue loading url: 'http://anidb.net/api/anime-titles.xml.gz', filename: 'anime-titles.xml', Headers: {'Content-type': 'application/json', 'User-agent': 'Plex/Nine'}, Exception: '<urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>' 2019-05-05 11:58:21,888 (7a0) : DEBUG (sandbox:19) - Completed 'http://anidb.net/api/anime-titles.xml.gz' 2019-05-05 11:58:21,888 (7a0) : INFO (sandbox:19) - LoadFile() - not xml nor json: None
2019-05-05 11:58:21,891 (7a0) : CRITICAL (core:574) - Exception when calling function 'Start' (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-bb4a2cb6c\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 294, in call_named_function result = f(*args, **kwargs) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\
init__.py", line 70, in Start AniDB.GetAniDBTitlesDB() File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\AniDB.py", line 368, in GetAniDBTitlesDB if not AniDBTitlesDB: raise Exception("Failed to load core file '{url}'".format(url=os.path.splitext(os.path.basename(ANIDB_TITLES))[0])) Exception: Failed to load core file 'anime-titles.xml'

2019-05-05 11:58:21,891 (7a0) : INFO (core:611) - Started plug-in 2019-05-05 11:58:21,891 (7a0) : DEBUG (socketinterface:160) - Starting socket server 2019-05-05 11:58:21,892 (7a0) : DEBUG (runtime:1117) - Created a thread named 'start' 2019-05-05 11:58:21,892 (7a0) : INFO (socketinterface:184) - Socket server started on port 5012 2019-05-05 11:58:21,892 (7a0) : INFO (pipeinterface:25) - Entering run loop 2019-05-05 11:58:21,892 (7a0) : DEBUG (runtime:717) - Handling request GET /:/prefixes 2019-05-05 11:58:21,895 (7a0) : DEBUG (runtime:814) - Found route matching /:/prefixes 2019-05-05 11:58:21,895 (7a0) : DEBUG (runtime:924) - Response: [200] MediaContainer, 147 bytes 2019-05-05 11:58:21,903 (394) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IxczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTEwCnMxNgphNjg2ODZmMTI5NWIxZjRlczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMThzNwplcGlzb2RlczM1Ck92ZXJkcml2ZSwgVGhlIEtpbmcgb2YgRGlzdG9ydGlvbiA1czQKbmFtZXMxCjFzOAplcGlzb2RpY3MyMgpCb29naWVwb3Agd2EgV2FyYXdhbmFpczQKc2hvd3MxCjFzNgpzZWFzb25zMTY3CkUlM0ElNUNBbmltZSU1Q0Jvb2dpZXBvcCUyMHdhJTIwV2FyYXdhbmFpJTVDQm9vZ2llcG9wJTIwd2ElMjBXYXJhd2FuYWklMjAtJTIwUzAxRTE4JTIwLSUyME92ZXJkcml2ZSUyQyUyMFRoZSUyMEtpbmclMjBvZiUyMERpc3RvcnRpb24lMjA1JTIwJTIwW01DUl0lMjBbRjhGQzhENEZdJTJFbWt2czgKZmlsZW5hbWVzNDAKNDNlZjRhZjAzOTdlMTdjYjQzYWNiYjBmYzFkODRjZmVmYmJkOGJiMXM4CnBsZXhIYXNoczcKMTQyMDE3N3M4CmR1cmF0aW9uczUKNzE4NTdzMgppZHIwCg 2019-05-05 11:58:21,905 (1718) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IxczYKbWFudWFsYjFzNwpwcmltYXJ5aT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R1cmF0aW9uczUKNzE4NTdzMgppZHIwCg 2019-05-05 11:58:21,933 (c6c) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTEwCnMxNgphNjg2ODZmMTI5NWIxZjRlczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMThzNwplcGlzb2RlczM1Ck92ZXJkcml2ZSwgVGhlIEtpbmcgb2YgRGlzdG9ydGlvbiA1czQKbmFtZXMxCjFzOAplcGlzb2RpY3MyMgpCb29naWVwb3Agd2EgV2FyYXdhbmFpczQKc2hvd3MxCjFzNgpzZWFzb25zMTY3CkUlM0ElNUNBbmltZSU1Q0Jvb2dpZXBvcCUyMHdhJTIwV2FyYXdhbmFpJTVDQm9vZ2llcG9wJTIwd2ElMjBXYXJhd2FuYWklMjAtJTIwUzAxRTE4JTIwLSUyME92ZXJkcml2ZSUyQyUyMFRoZSUyMEtpbmclMjBvZiUyMERpc3RvcnRpb24lMjA1JTIwJTIwW01DUl0lMjBbRjhGQzhENEZdJTJFbWt2czgKZmlsZW5hbWVzNDAKNDNlZjRhZjAzOTdlMTdjYjQzYWNiYjBmYzFkODRjZmVmYmJkOGJiMXM4CnBsZXhIYXNoczcKMTQyMDE3N3M4CmR1cmF0aW9uczUKNzE4NTdzMgppZHIwCg 2019-05-05 11:58:21,936 (394) : INFO (agentkit:957) - Searching for matches for {'openSubtitlesHash': 'a68686f1295b1f4e', 'episode': '18', 'name': 'Overdrive, The King of Distortion 5', 'episodic': '1', 'show': 'Boogiepop wa Warawanai', 'season': '1', 'filename': 'E%3A%5CAnime%5CBoogiepop%20wa%20Warawanai%5CBoogiepop%20wa%20Warawanai%20-%20S01E18%20-%20Overdrive%2C%20The%20King%20of%20Distortion%205%20%20[MCR]%20[F8FC8D4F]%2Emkv', 'plexHash': '43ef4af0397e17cb43acbb0fc1d84cfefbbd8bb1', 'duration': '1420177', 'id': '71857'} 2019-05-05 11:58:21,936 (1718) : INFO (agentkit:957) - Searching for matches for {'openSubtitlesHash': 'a68686f1295b1f4e', 'episode': '18', 'name': 'Overdrive, The King of Distortion 5', 'episodic': '1', 'show': 'Boogiepop wa Warawanai', 'season': '1', 'filename': 'E%3A%5CAnime%5CBoogiepop%20wa%20Warawanai%5CBoogiepop%20wa%20Warawanai%20-%20S01E18%20-%20Overdrive%2C%20The%20King%20of%20Distortion%205%20%20[MCR]%20[F8FC8D4F]%2Emkv', 'plexHash': '43ef4af0397e17cb43acbb0fc1d84cfefbbd8bb1', 'duration': '1420177', 'id': '71857'} 2019-05-05 11:58:21,937 (c6c) : INFO (agentkit:957) - Searching for matches for {'openSubtitlesHash': 'a68686f1295b1f4e', 'episode': '18', 'name': 'Overdrive, The King of Distortion 5', 'episodic': '1', 'show': 'Boogiepop wa Warawanai', 'season': '1', 'filename': 'E%3A%5CAnime%5CBoogiepop%20wa%20Warawanai%5CBoogiepop%20wa%20Warawanai%20-%20S01E18%20-%20Overdrive%2C%20The%20King%20of%20Distortion%205%20%20[MCR]%20[F8FC8D4F]%2Emkv', 'plexHash': '43ef4af0397e17cb43acbb0fc1d84cfefbbd8bb1', 'duration': '1420177', 'id': '71857'} 2019-05-05 11:58:21,940 (394) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/71857/tree' 2019-05-05 11:58:21,940 (1718) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/71857/tree' 2019-05-05 11:58:21,946 (c6c) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/71857/tree' 2019-05-05 11:58:21,987 (1718) : INFO (common:151) - ==== common.PlexLog(file="C:\Users\FS\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs\Anime\Boogiepop wa Warawanai.agent-search.log") 2019-05-05 11:58:21,992 (1718) : CRITICAL (core:574) - Exception in the search function of agent named 'HamaTV', called with keyword arguments {'openSubtitlesHash': 'a68686f1295b1f4e', 'episode': '18', 'name': 'Overdrive, The King of Distortion 5', 'episodic': '1', 'show': 'Boogiepop wa Warawanai', 'season': '1', 'filename': 'E%3A%5CAnime%5CBoogiepop%20wa%20Warawanai%5CBoogiepop%20wa%20Warawanai%20-%20S01E18%20-%20Overdrive%2C%20The%20King%20of%20Distortion%205%20%20[MCR]%20[F8FC8D4F]%2Emkv', 'plexHash': '43ef4af0397e17cb43acbb0fc1d84cfefbbd8bb1', 'duration': '1420177', 'id': '71857'} (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-bb4a2cb6c\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1007, in _search agent.search(*f_args, **f_kwargs) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code__init.py", line 151, in search def search (self, results, media, lang, manual): Search (results, media, lang, manual, False) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\init__.py", line 100, in Search if movie or max(map(int, media.seasons.keys()))<=1: maxi, n = AniDB.Search(results, media, lang, manual, movie) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\AniDB.py", line 44, in Search Log.Info('len AniDBTitlesDB: {}'.format(len(AniDBTitlesDB))) TypeError: object of type 'NoneType' has no len()

2019-05-05 11:58:21,993 (1718) : DEBUG (runtime:88) - Sending packed state data (104 bytes) 2019-05-05 11:58:21,993 (1718) : DEBUG (runtime:924) - Response: [200] str, 16 bytes 2019-05-05 11:58:22,013 (c6c) : INFO (common:151) - ==== common.PlexLog(file="C:\Users\FS\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs\Anime\Boogiepop wa Warawanai.agent-search.log") 2019-05-05 11:58:22,019 (c6c) : CRITICAL (core:574) - Exception in the search function of agent named 'HamaTV', called with keyword arguments {'openSubtitlesHash': 'a68686f1295b1f4e', 'episode': '18', 'name': 'Overdrive, The King of Distortion 5', 'episodic': '1', 'show': 'Boogiepop wa Warawanai', 'season': '1', 'filename': 'E%3A%5CAnime%5CBoogiepop%20wa%20Warawanai%5CBoogiepop%20wa%20Warawanai%20-%20S01E18%20-%20Overdrive%2C%20The%20King%20of%20Distortion%205%20%20[MCR]%20[F8FC8D4F]%2Emkv', 'plexHash': '43ef4af0397e17cb43acbb0fc1d84cfefbbd8bb1', 'duration': '1420177', 'id': '71857'} (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-bb4a2cb6c\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1007, in _search agent.search(*f_args, **f_kwargs) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code__init.py", line 151, in search def search (self, results, media, lang, manual): Search (results, media, lang, manual, False) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\init__.py", line 100, in Search if movie or max(map(int, media.seasons.keys()))<=1: maxi, n = AniDB.Search(results, media, lang, manual, movie) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\AniDB.py", line 44, in Search Log.Info('len AniDBTitlesDB: {}'.format(len(AniDBTitlesDB))) TypeError: object of type 'NoneType' has no len()

2019-05-05 11:58:22,023 (c6c) : DEBUG (runtime:88) - Sending packed state data (104 bytes) 2019-05-05 11:58:22,023 (c6c) : DEBUG (runtime:924) - Response: [200] str, 16 bytes 2019-05-05 11:58:22,017 (394) : INFO (common:151) - ==== common.PlexLog(file="C:\Users\FS\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs\Anime\Boogiepop wa Warawanai.agent-search.log") 2019-05-05 11:58:22,032 (394) : CRITICAL (core:574) - Exception in the search function of agent named 'HamaTV', called with keyword arguments {'openSubtitlesHash': 'a68686f1295b1f4e', 'episode': '18', 'name': 'Overdrive, The King of Distortion 5', 'episodic': '1', 'show': 'Boogiepop wa Warawanai', 'season': '1', 'filename': 'E%3A%5CAnime%5CBoogiepop%20wa%20Warawanai%5CBoogiepop%20wa%20Warawanai%20-%20S01E18%20-%20Overdrive%2C%20The%20King%20of%20Distortion%205%20%20[MCR]%20[F8FC8D4F]%2Emkv', 'plexHash': '43ef4af0397e17cb43acbb0fc1d84cfefbbd8bb1', 'duration': '1420177', 'id': '71857'} (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-bb4a2cb6c\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1007, in _search agent.search(*f_args, **f_kwargs) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code__init.py", line 151, in search def search (self, results, media, lang, manual): Search (results, media, lang, manual, False) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\init__.py", line 100, in Search if movie or max(map(int, media.seasons.keys()))<=1: maxi, n = AniDB.Search(results, media, lang, manual, movie) File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\AniDB.py", line 44, in Search Log.Info('len AniDBTitlesDB: {}'.format(len(AniDBTitlesDB))) TypeError: object of type 'NoneType' has no len()

2019-05-05 11:58:22,035 (394) : DEBUG (runtime:88) - Sending packed state data (104 bytes) 2019-05-05 11:58:22,035 (394) : DEBUG (runtime:924) - Response: [200] str, 16 bytes

Paradox52525 commented 5 years ago

Seems like this might be the issue here? My PC cannot connect to "http://anidb.net/api/anime-titles.xml.gz", which also doesn't work if I try to go there in a browser:

2019-05-05 11:58:21,888 (7a0) : WARNING (sandbox:19) - common.LoadFile() - issue loading url: 'http://anidb.net/api/anime-titles.xml.gz', filename: 'anime-titles.xml', Headers: {'Content-type': 'application/json', 'User-agent': 'Plex/Nine'}, Exception: '<urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>'

ZeroQI commented 5 years ago
2019-05-05 11:58:00,888 (7a0) : DEBUG (networking:166) - Requesting 'http://anidb.net/api/anime-titles.xml.gz'
2019-05-05 11:58:21,888 (7a0) : WARNING (sandbox:19) - common.LoadFile() - issue loading url: 'http://anidb.net/api/anime-titles.xml.gz', filename: 'anime-titles.xml', Headers: {'Content-type': 'application/json', 'User-agent': 'Plex/Nine'}, Exception: '<urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>'
2019-05-05 11:58:21,888 (7a0) : DEBUG (sandbox:19) - Completed 'http://anidb.net/api/anime-titles.xml.gz'
2019-05-05 11:58:21,888 (7a0) : INFO (sandbox:19) - LoadFile() - not xml nor json: None
2019-05-05 11:58:21,891 (7a0) : CRITICAL (core:574) - Exception when calling function 'Start' (most recent call last):
File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-bb4a2cb6c\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 294, in call_named_function
result = f(*args, **kwargs)
File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code_init_.py", line 70, in Start
AniDB.GetAniDBTitlesDB()
File "C:\Users\FS\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\AniDB.py", line 368, in GetAniDBTitlesDB
if not AniDBTitlesDB: raise Exception("Failed to load core file '{url}'".format(url=os.path.splitext(os.path.basename(ANIDB_TITLES))[0]))
Exception: Failed to load core file 'anime-titles.xml'

Pretty sure AniDB prevents you downloading the file (once a day limit) they double compressed and plex act different on >1mb xml files apparently You have to rename it anime-titles.xml, you are missing the hyphen..

Paradox52525 commented 5 years ago

That seems to do the trick. If I take the copy from https://raw.githubusercontent.com/ScudLee/anime-lists/master/animetitles.xml, rename the file to add a hyphen ("anime-titles.xml") and place in DataItems\AniDB it start working.

Thanks for the help!

ZeroQI commented 5 years ago

i tried the link and it did download, you might me temp banned

On Sun, May 5, 2019 at 5:09 PM Paradox52525 notifications@github.com wrote:

That seems to do the trick. If I take the copy from https://raw.githubusercontent.com/ScudLee/anime-lists/master/animetitles.xml, rename the file to add a hyphen ("anime-titles.xml") and place in DataItems\AniDB it start working.

Thanks for the help!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ZeroQI/Hama.bundle/issues/307#issuecomment-489440003, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHMWZN7YKJ3WFS47PVUDUDPT4BCFANCNFSM4HKZVALA .

purposelycryptic commented 5 years ago

Sorry, where is the "agent data folder" ? If it's Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\AniDB, It's empty there...

Edit: After putting anime-titles.xml inside com.plexapp.agents.hama\DataItems\AniDB, the search has successed. Is the part of downloading anime-titles.xml corrupted?

It seems like it is something on AniDB's end - I have no exact evidence of this, except that I have been running the same slightly customized version of HAMA for many months now, without issue, then encountered this, where the anime-titles.xml was 1/3 the size it should be, and heavily garbled. Since nothing changed in HAMA, by process of elimination, it would seem like the issue was with AniDB.

Either way, manually grabbing the anime-titles.xml, and replacing the corrupted one, did the trick. I'm attaching the corrupted one just for reference - eventually I'm going to have to update HAMA, but the version I'm using now just works so well, and I don't even entirely remember what I changed, aside from pulling the Average Rating vs. the Weighted Rating...

EDIT: Interesting - while it worked for a second, the new, uncorrupted anime-titles.xml was then overwritten with the same corrupted content that was in the corrupted version... EDIT2: So the corrupted version simply kept being copied from the HTTP cache on scan - for some reason it was encoded in ANSI? But that wouldn't be enough to account for the corruption seen. Replaced contents of file with that of uncorrupted anime-titles.xml, and saved encoded in UTF-8, hopefully didn't break anything new. EDIT3: Aaand that solved it :)