Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not grabbing metadata #59

Closed
aleung241 opened this issue Jul 6, 2016 · 21 comments
Closed

Not grabbing metadata #59

aleung241 opened this issue Jul 6, 2016 · 21 comments
Assignees
Labels

Comments

@aleung241
Copy link

Cover and metadata not loading for just one series recently added (Masou Gakuen HxH).
Seems like the anidbid is not found even though it exists in the xml files.

anime-list-master.xml:

<anime anidbid="11638" tvdbid="307112" defaulttvdbseason="1" episodeoffset="" tmdbid="" imdbid="">
    <name>Masou Gakuen HxH</name>
</anime>

anime-titles.xml:

<anime aid="11638">
    <title type="main" xml:lang="x-jat">Masou Gakuen HxH</title>
    <title type="official" xml:lang="ja">魔装学園HxH</title>
</anime>

Hama log:

2016-07-06 14:25:15,759 (7f447f796700) :  INFO (core:349) - Starting framework core - Version: 2.6.3, Build: a17e99e (Fri Jun 24 02:04:33 UTC 2016)
2016-07-06 14:25:15,760 (7f447f796700) :  DEBUG (core:361) - Using the standard policy
2016-07-06 14:25:15,760 (7f447f796700) :  DEBUG (core:450) - Starting runtime component.
2016-07-06 14:25:15,761 (7f447f796700) :  DEBUG (core:450) - Starting caching component.
2016-07-06 14:25:15,761 (7f447f796700) :  DEBUG (core:450) - Starting data component.
2016-07-06 14:25:15,761 (7f447f796700) :  DEBUG (core:450) - Starting networking component.
2016-07-06 14:25:15,828 (7f447f796700) :  DEBUG (networking:282) - Loaded HTTP cookies
2016-07-06 14:25:16,044 (7f447f796700) :  DEBUG (networking:450) - Setting the default network timeout to 20.0
2016-07-06 14:25:16,045 (7f447f796700) :  DEBUG (core:450) - Starting localization component.
2016-07-06 14:25:16,045 (7f447f796700) :  INFO (localization:409) - Setting the default locale to en-us
2016-07-06 14:25:16,045 (7f447f796700) :  DEBUG (core:450) - Starting messaging component.
2016-07-06 14:25:16,046 (7f447f796700) :  DEBUG (core:450) - Starting debugging component.
2016-07-06 14:25:16,046 (7f447f796700) :  DEBUG (core:450) - Starting services component.
2016-07-06 14:25:16,046 (7f4453fff700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.hama'
2016-07-06 14:25:16,046 (7f447f796700) :  DEBUG (core:450) - Starting myplex component.
2016-07-06 14:25:16,047 (7f447f796700) :  DEBUG (core:450) - Starting notifications component.
2016-07-06 14:25:16,123 (7f447f796700) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.hama in namespace 'metadata'
2016-07-06 14:25:16,126 (7f447f796700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2016-07-06 14:25:20,399 (7f4453fff700) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2016-07-06 14:25:20,399 (7f447f796700) :  DEBUG (runtime:1117) - Created a thread named 'load_all_services'
2016-07-06 14:25:20,399 (7f4453fff700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2016-07-06 14:25:20,400 (7f447f796700) :  DEBUG (runtime:1117) - Created a thread named 'get_server_info'
2016-07-06 14:25:20,400 (7f447f796700) :  DEBUG (core:150) - Finished starting framework core
2016-07-06 14:25:20,401 (7f4452ffd700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400'
2016-07-06 14:25:20,401 (7f447f796700) :  DEBUG (core:560) - Loading plug-in code
2016-07-06 14:25:20,849 (7f447f796700) :  DEBUG (core:566) - Finished loading plug-in code
2016-07-06 14:25:25,052 (7f4453fff700) :  DEBUG (services:362) - Loaded services
2016-07-06 14:25:25,055 (7f44537fe700) :  DEBUG (services:438) - No shared code to load
2016-07-06 14:25:25,218 (7f447f796700) :  DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json
2016-07-06 14:25:28,336 (7f447f796700) :  DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.agents.hama
2016-07-06 14:25:28,399 (7f447f796700) :  DEBUG (agentkit:1104) - Creating new agent class called HamaTVAgent
2016-07-06 14:25:28,400 (7f447f796700) :  DEBUG (agentkit:922) - Updating agent information: [{'media_types': ['TV_Show'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': False, 'contributes_to': None, 'languages': ['en'], 'persist_stored_files': True, 'version': 0, 'primary_provider': True, 'prefs': True, 'name': 'HamaTV'}]
2016-07-06 14:25:28,400 (7f447f796700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQo2CmRpY3QKbGlzdApkaWN0Cmxpc3QKbGlzdApsaXN0CjIKczIzCmNvbS5wbGV4YXBwLmFnZW50cy5oYW1hczEwCmlkZW50aWZpZXJyMQpzMTAKYWdlbnRfaW5mbzEKcjIKMTAKcjMKczExCm1lZGlhX3R5cGVzcjQKczEyCmFjY2VwdHNfZnJvbWIwczE0CmZhbGxiYWNrX2FnZW50bnMxNApjb250cmlidXRlc190b3I1CnM5Cmxhbmd1YWdlc2IxczIwCnBlcnNpc3Rfc3RvcmVkX2ZpbGVzaTAKczcKdmVyc2lvbmIxczE2CnByaW1hcnlfcHJvdmlkZXJiMXM1CnByZWZzczYKSGFtYVRWczQKbmFtZTEKczcKVFZfU2hvdzEKczI5CmNvbS5wbGV4YXBwLmFnZW50cy5sb2NhbG1lZGlhMQpzMgplbnIwCg__'
2016-07-06 14:25:29,734 (7f4452ffd700) :  DEBUG (core:538) - Machine identifier is 0c44c4053ff8730a50f74635984b822fd8edbe4f
2016-07-06 14:25:29,734 (7f4452ffd700) :  DEBUG (core:539) - Server version is 1.0.0.2261-a17e99e
2016-07-06 14:25:34,319 (7f447f796700) :  DEBUG (agentkit:1104) - Creating new agent class called HamaMovieAgent
2016-07-06 14:25:34,410 (7f447f796700) :  DEBUG (agentkit:922) - Updating agent information: [{'media_types': ['TV_Show'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': False, 'contributes_to': None, 'languages': ['en'], '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'], 'persist_stored_files': True, 'version': 0, 'primary_provider': True, 'prefs': True, 'name': 'HamaMovies'}]
2016-07-06 14:25:34,411 (7f447f796700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxMApkaWN0Cmxpc3QKZGljdApsaXN0Cmxpc3QKbGlzdApkaWN0Cmxpc3QKbGlzdApsaXN0CjIKczIzCmNvbS5wbGV4YXBwLmFnZW50cy5oYW1hczEwCmlkZW50aWZpZXJyMQpzMTAKYWdlbnRfaW5mbzIKcjIKcjYKMTAKcjMKczExCm1lZGlhX3R5cGVzcjQKczEyCmFjY2VwdHNfZnJvbWIwczE0CmZhbGxiYWNrX2FnZW50bnMxNApjb250cmlidXRlc190b3I1CnM5Cmxhbmd1YWdlc2IxczIwCnBlcnNpc3Rfc3RvcmVkX2ZpbGVzaTAKczcKdmVyc2lvbmIxczE2CnByaW1hcnlfcHJvdmlkZXJiMXM1CnByZWZzczYKSGFtYVRWczQKbmFtZTEKczcKVFZfU2hvdzEKczI5CmNvbS5wbGV4YXBwLmFnZW50cy5sb2NhbG1lZGlhMQpzMgplbjEwCnI3CnMxMQptZWRpYV90eXBlc3I4CnMxMgphY2NlcHRzX2Zyb21iMHMxNApmYWxsYmFja19hZ2VudG5zMTQKY29udHJpYnV0ZXNfdG9yOQpzOQpsYW5ndWFnZXNiMXMyMApwZXJzaXN0X3N0b3JlZF9maWxlc2kwCnM3CnZlcnNpb25iMXMxNgpwcmltYXJ5X3Byb3ZpZGVyYjFzNQpwcmVmc3MxMApIYW1hTW92aWVzczQKbmFtZTEKczUKTW92aWUxCnMyOQpjb20ucGxleGFwcC5hZ2VudHMubG9jYWxtZWRpYTEKczIKZW5yMAo_'
2016-07-06 14:25:41,679 (7f447f796700) :  ERROR (__init__:71) - DefaultPrefs.json invalid
2016-07-06 14:25:41,679 (7f447f796700) :  INFO (core:611) - Started plug-in
2016-07-06 14:25:41,679 (7f447f796700) :  DEBUG (socketinterface:160) - Starting socket server
2016-07-06 14:25:41,680 (7f447f796700) :  DEBUG (runtime:1117) - Created a thread named 'start'
2016-07-06 14:25:41,680 (7f447f796700) :  INFO (socketinterface:184) - Socket server started on port 36706
2016-07-06 14:25:41,680 (7f447f796700) :  INFO (pipeinterface:25) - Entering run loop
2016-07-06 14:25:41,680 (7f447f796700) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2016-07-06 14:25:41,681 (7f447f796700) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2016-07-06 14:25:41,681 (7f447f796700) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 148 bytes
2016-07-06 14:25:42,385 (7f44537fe700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgo0NWEwYjBhOWYwMjVmMDgxczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMTdzNwplcGlzb2RlczI0ClRoZSBFbWJlciBJc2xhbmQgUGxheWVyc3M0Cm5hbWVzMQoxczgKZXBpc29kaWNzMjcKQXZhdGFyIC0gVGhlIExhc3QgQWlyYmVuZGVyczQKc2hvd3MxCjNzNgpzZWFzb25uczQKeWVhcnMyMjAKJTJGc2VydmVyLXN0b3JhZ2UlMkZBbmltZSUyRkF2YXRhciUyMC0lMjBUaGUlMjBMYXN0JTIwQWlyYmVuZGVyJTJGU2Vhc29uJTIwMyUyMC0lMjBCb29rJTIwMyUyMEZpcmUlMkZBdmF0YXIlMjAtJTIwVGhlJTIwTGFzdCUyMEFpcmJlbmRlciUyMC0lMjBCb29rJTIwMyUyMEZpcmUlMjAtJTIwQ2hhcHRlciUyMDE3JTIwLSUyMFRoZSUyMEVtYmVyJTIwSXNsYW5kJTIwUGxheWVycyUyRWF2aXM4CmZpbGVuYW1lczQwCmY4ZDczODcxODRlNTkyOGFkZDAyNGU2MmViMmI0ZmM5ZGYxNzQ2NjdzOApwbGV4SGFzaHM3CjE0NTM5ODdzOApkdXJhdGlvbnM1CjEyOTI4czIKaWRyMAo_
2016-07-06 14:25:42,387 (7f4453fff700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoyMDIzOHM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczQ1CmNvbS5wbGV4YXBwLmFnZW50cy5oYW1hOi8vYW5pZGItMTE2Mzg%40bGFuZz1lbnM0Cmd1aWRzMTEKYW5pZGItMTE2MzhzMgppZHIwCg__
2016-07-06 14:25:42,392 (7f44527fc700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgo5NTYyYWM1MzZmNzQ3YTU3czE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMTNzNwplcGlzb2RlczIyClZlbm9tIG9mIHRoZSBSZWQgTG90dXNzNApuYW1lczEKMXM4CmVwaXNvZGljczI4CkF2YXRhciAtIFRoZSBMZWdlbmQgb2YgS29ycmFzNApzaG93czEKM3M2CnNlYXNvbm5zNAp5ZWFyczIwNAolMkZzZXJ2ZXItc3RvcmFnZSUyRkFuaW1lJTJGQXZhdGFyJTIwLSUyMFRoZSUyMExlZ2VuZCUyMG9mJTIwS29ycmElMkZTZWFzb24lMjAzJTIwLSUyMEJvb2slMjAzJTIwQ2hhbmdlJTJGVGhlJTIwTGVnZW5kJTIwb2YlMjBLb3JyYSUyMFMwM0UxMyUyMFZlbm9tJTIwb2YlMjB0aGUlMjBSZWQlMjBMb3R1cyUyMCgxMjgweDcyMCklMjBbUGhyMHN0WV0lMkVta3ZzOApmaWxlbmFtZXM0MAo2NTg0YjkxNDQ5MjUyMjQ1ODg2NDZmMmE4OGNhNzUwYmQ5ODcyZDVmczgKcGxleEhhc2hzNwoxMzIxOTg5czgKZHVyYXRpb25zNQoxNjA3M3MyCmlkcjAK
2016-07-06 14:25:42,396 (7f44537fe700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgo0NWEwYjBhOWYwMjVmMDgxczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMTdzNwplcGlzb2RlczI0ClRoZSBFbWJlciBJc2xhbmQgUGxheWVyc3M0Cm5hbWVzMQoxczgKZXBpc29kaWNzMjcKQXZhdGFyIC0gVGhlIExhc3QgQWlyYmVuZGVyczQKc2hvd3MxCjNzNgpzZWFzb25uczQKeWVhcnMyMjAKJTJGc2VydmVyLXN0b3JhZ2UlMkZBbmltZSUyRkF2YXRhciUyMC0lMjBUaGUlMjBMYXN0JTIwQWlyYmVuZGVyJTJGU2Vhc29uJTIwMyUyMC0lMjBCb29rJTIwMyUyMEZpcmUlMkZBdmF0YXIlMjAtJTIwVGhlJTIwTGFzdCUyMEFpcmJlbmRlciUyMC0lMjBCb29rJTIwMyUyMEZpcmUlMjAtJTIwQ2hhcHRlciUyMDE3JTIwLSUyMFRoZSUyMEVtYmVyJTIwSXNsYW5kJTIwUGxheWVycyUyRWF2aXM4CmZpbGVuYW1lczQwCmY4ZDczODcxODRlNTkyOGFkZDAyNGU2MmViMmI0ZmM5ZGYxNzQ2NjdzOApwbGV4SGFzaHM3CjE0NTM5ODdzOApkdXJhdGlvbnM1CjEyOTI4czIKaWRyMAo_
2016-07-06 14:25:42,396 (7f4453fff700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoyMDIzOHM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczQ1CmNvbS5wbGV4YXBwLmFnZW50cy5oYW1hOi8vYW5pZGItMTE2Mzg@bGFuZz1lbnM0Cmd1aWRzMTEKYW5pZGItMTE2MzhzMgppZHIwCg__
2016-07-06 14:25:42,396 (7f44527fc700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgo5NTYyYWM1MzZmNzQ3YTU3czE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMTNzNwplcGlzb2RlczIyClZlbm9tIG9mIHRoZSBSZWQgTG90dXNzNApuYW1lczEKMXM4CmVwaXNvZGljczI4CkF2YXRhciAtIFRoZSBMZWdlbmQgb2YgS29ycmFzNApzaG93czEKM3M2CnNlYXNvbm5zNAp5ZWFyczIwNAolMkZzZXJ2ZXItc3RvcmFnZSUyRkFuaW1lJTJGQXZhdGFyJTIwLSUyMFRoZSUyMExlZ2VuZCUyMG9mJTIwS29ycmElMkZTZWFzb24lMjAzJTIwLSUyMEJvb2slMjAzJTIwQ2hhbmdlJTJGVGhlJTIwTGVnZW5kJTIwb2YlMjBLb3JyYSUyMFMwM0UxMyUyMFZlbm9tJTIwb2YlMjB0aGUlMjBSZWQlMjBMb3R1cyUyMCgxMjgweDcyMCklMjBbUGhyMHN0WV0lMkVta3ZzOApmaWxlbmFtZXM0MAo2NTg0YjkxNDQ5MjUyMjQ1ODg2NDZmMmE4OGNhNzUwYmQ5ODcyZDVmczgKcGxleEhhc2hzNwoxMzIxOTg5czgKZHVyYXRpb25zNQoxNjA3M3MyCmlkcjAK
2016-07-06 14:25:42,396 (7f44537fe700) :  INFO (agentkit:946) - Searching for matches for {'openSubtitlesHash': '45a0b0a9f025f081', 'episode': '17', 'name': 'The Ember Island Players', 'episodic': '1', 'show': 'Avatar - The Last Airbender', 'season': '3', 'plexHash': 'f8d7387184e5928add024e62eb2b4fc9df174667', 'filename': '%2Fserver-storage%2FAnime%2FAvatar%20-%20The%20Last%20Airbender%2FSeason%203%20-%20Book%203%20Fire%2FAvatar%20-%20The%20Last%20Airbender%20-%20Book%203%20Fire%20-%20Chapter%2017%20-%20The%20Ember%20Island%20Players%2Eavi', 'year': None, 'duration': '1453987', 'id': '12928'}
2016-07-06 14:25:42,397 (7f4453fff700) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.hama://anidb-11638?lang=en
2016-07-06 14:25:42,397 (7f44527fc700) :  INFO (agentkit:946) - Searching for matches for {'openSubtitlesHash': '9562ac536f747a57', 'episode': '13', 'name': 'Venom of the Red Lotus', 'episodic': '1', 'show': 'Avatar - The Legend of Korra', 'season': '3', 'plexHash': '6584b9144925224588646f2a88ca750bd9872d5f', 'filename': '%2Fserver-storage%2FAnime%2FAvatar%20-%20The%20Legend%20of%20Korra%2FSeason%203%20-%20Book%203%20Change%2FThe%20Legend%20of%20Korra%20S03E13%20Venom%20of%20the%20Red%20Lotus%20(1280x720)%20[Phr0stY]%2Emkv', 'year': None, 'duration': '1321989', 'id': '16073'}
2016-07-06 14:25:42,398 (7f44537fe700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/12928/tree'
2016-07-06 14:25:42,399 (7f44527fc700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/16073/tree'
2016-07-06 14:25:42,400 (7f4453fff700) :  DEBUG (model:234) - Deserializing from /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/8/57eef19e0ce3d32f98b6f27d890067c5853efb8.bundle/Contents/com.plexapp.agents.hama/Info.xml
2016-07-06 14:25:42,402 (7f4453fff700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/20238/tree'
2016-07-06 14:25:53,933 (7f4453fff700) :  DEBUG (__init__:562) - --- Update Begin -------------------------------------------------------------------------------------------
2016-07-06 14:25:53,933 (7f4453fff700) :  DEBUG (__init__:562) - Update - metadata source: 'anidb', id: '11638', Title: 'None',([...], [...], True)
2016-07-06 14:25:53,934 (7f4453fff700) :  DEBUG (__init__:671) - anidbTvdbMapping() - anidbid '11638' not found in file
2016-07-06 14:25:53,934 (7f4453fff700) :  CRITICAL (agentkit:1067) - Exception in the update function of agent named 'HamaTV', called with guid 'com.plexapp.agents.hama://anidb-11638?lang=en' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a17e99e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1065, in _update
    agent.update(obj, media, lang, **kwargs)
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/__init__.py", line 869, in update
    def update(self, metadata, media, lang, force ): self.Update(metadata, media, lang, force,  False )
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/__init__.py", line 562, in Update
    elif season=="0":                                                    tvdb_ep = "s"+season+"e"+epNumVal
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/__init__.py", line 672, in anidbTvdbMapping
    error_log['anime-list anidbid missing'].append("anidbid: %s | Title: '%s'" % (anidb_id, name))
UnboundLocalError: local variable 'name' referenced before assignment

2016-07-06 14:26:04,266 (7f44537fe700) :  DEBUG (__init__:101) - === Search - Begin - ================================================================================================
2016-07-06 14:26:04,267 (7f44537fe700) :  INFO (__init__:164) - search() - Title: 'Avatar - The Last Airbender', name: 'The Ember Island Players', filename: '%2Fserver-storage%2FAnime%2FAvatar%20-%20The%20Last%20Airbender%2FSeason%203%20-%20Book%203%20Fire%2FAvatar%20-%20The%20Last%20Airbender%20-%20Book%203%20Fire%20-%20Chapter%2017%20-%20The%20Ember%20Island%20Players%2Eavi', manual:'False'
2016-07-06 14:26:04,267 (7f44537fe700) :  DEBUG (__init__:164) - search() - Keyword search - Matching 'Avatar - The Last Airbender' with: 'avatar', 'airbender'
2016-07-06 14:26:04,268 (7f44537fe700) :  DEBUG (__init__:166) - 
2016-07-06 14:26:04,268 (7f44537fe700) :  DEBUG (__init__:176) - Search - similarity with 'Avatar - The Last Airbender': 
2016-07-06 14:26:04,268 (7f44537fe700) :  DEBUG (runtime:924) - Response: [200] str, 320 bytes
2016-07-06 14:26:08,549 (7f4453fff700) :  DEBUG (model:229) - Serializing to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/8/57eef19e0ce3d32f98b6f27d890067c5853efb8.bundle/Contents/com.plexapp.agents.hama/Info.xml
2016-07-06 14:26:08,550 (7f4453fff700) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
2016-07-06 14:26:16,490 (7f44527fc700) :  DEBUG (__init__:101) - === Search - Begin - ================================================================================================
2016-07-06 14:26:16,491 (7f44527fc700) :  INFO (__init__:164) - search() - Title: 'Avatar - The Legend of Korra', name: 'Venom of the Red Lotus', filename: '%2Fserver-storage%2FAnime%2FAvatar%20-%20The%20Legend%20of%20Korra%2FSeason%203%20-%20Book%203%20Change%2FThe%20Legend%20of%20Korra%20S03E13%20Venom%20of%20the%20Red%20Lotus%20(1280x720)%20[Phr0stY]%2Emkv', manual:'False'
2016-07-06 14:26:16,491 (7f44527fc700) :  DEBUG (__init__:164) - search() - Keyword search - Matching 'Avatar - The Legend of Korra' with: 'avatar', 'legend', 'korra'
2016-07-06 14:26:16,491 (7f44527fc700) :  DEBUG (__init__:166) - 
2016-07-06 14:26:16,491 (7f44527fc700) :  DEBUG (__init__:176) - Search - similarity with 'Avatar - The Legend of Korra': 
2016-07-06 14:26:16,492 (7f44527fc700) :  DEBUG (runtime:924) - Response: [200] str, 320 bytes
2016-07-06 14:45:06,748 (7f44527fc700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoyMDIzOHM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczQ1CmNvbS5wbGV4YXBwLmFnZW50cy5oYW1hOi8vYW5pZGItMTE2Mzg%40bGFuZz1lbnM0Cmd1aWRzMTEKYW5pZGItMTE2MzhzMgppZHIwCg__
2016-07-06 14:45:06,749 (7f44527fc700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoyMDIzOHM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczQ1CmNvbS5wbGV4YXBwLmFnZW50cy5oYW1hOi8vYW5pZGItMTE2Mzg@bGFuZz1lbnM0Cmd1aWRzMTEKYW5pZGItMTE2MzhzMgppZHIwCg__
2016-07-06 14:45:06,749 (7f44527fc700) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.hama://anidb-11638?lang=en
2016-07-06 14:45:06,750 (7f4453fff700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgo0NWEwYjBhOWYwMjVmMDgxczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMTdzNwplcGlzb2RlczI0ClRoZSBFbWJlciBJc2xhbmQgUGxheWVyc3M0Cm5hbWVzMQoxczgKZXBpc29kaWNzMjcKQXZhdGFyIC0gVGhlIExhc3QgQWlyYmVuZGVyczQKc2hvd3MxCjNzNgpzZWFzb25uczQKeWVhcnMyMjAKJTJGc2VydmVyLXN0b3JhZ2UlMkZBbmltZSUyRkF2YXRhciUyMC0lMjBUaGUlMjBMYXN0JTIwQWlyYmVuZGVyJTJGU2Vhc29uJTIwMyUyMC0lMjBCb29rJTIwMyUyMEZpcmUlMkZBdmF0YXIlMjAtJTIwVGhlJTIwTGFzdCUyMEFpcmJlbmRlciUyMC0lMjBCb29rJTIwMyUyMEZpcmUlMjAtJTIwQ2hhcHRlciUyMDE3JTIwLSUyMFRoZSUyMEVtYmVyJTIwSXNsYW5kJTIwUGxheWVycyUyRWF2aXM4CmZpbGVuYW1lczQwCmY4ZDczODcxODRlNTkyOGFkZDAyNGU2MmViMmI0ZmM5ZGYxNzQ2NjdzOApwbGV4SGFzaHM3CjE0NTM5ODdzOApkdXJhdGlvbnM1CjEyOTI4czIKaWRyMAo_
2016-07-06 14:45:06,750 (7f44527fc700) :  DEBUG (model:234) - Deserializing from /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/8/57eef19e0ce3d32f98b6f27d890067c5853efb8.bundle/Contents/com.plexapp.agents.hama/Info.xml
2016-07-06 14:45:06,750 (7f4453fff700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgo0NWEwYjBhOWYwMjVmMDgxczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMTdzNwplcGlzb2RlczI0ClRoZSBFbWJlciBJc2xhbmQgUGxheWVyc3M0Cm5hbWVzMQoxczgKZXBpc29kaWNzMjcKQXZhdGFyIC0gVGhlIExhc3QgQWlyYmVuZGVyczQKc2hvd3MxCjNzNgpzZWFzb25uczQKeWVhcnMyMjAKJTJGc2VydmVyLXN0b3JhZ2UlMkZBbmltZSUyRkF2YXRhciUyMC0lMjBUaGUlMjBMYXN0JTIwQWlyYmVuZGVyJTJGU2Vhc29uJTIwMyUyMC0lMjBCb29rJTIwMyUyMEZpcmUlMkZBdmF0YXIlMjAtJTIwVGhlJTIwTGFzdCUyMEFpcmJlbmRlciUyMC0lMjBCb29rJTIwMyUyMEZpcmUlMjAtJTIwQ2hhcHRlciUyMDE3JTIwLSUyMFRoZSUyMEVtYmVyJTIwSXNsYW5kJTIwUGxheWVycyUyRWF2aXM4CmZpbGVuYW1lczQwCmY4ZDczODcxODRlNTkyOGFkZDAyNGU2MmViMmI0ZmM5ZGYxNzQ2NjdzOApwbGV4SGFzaHM3CjE0NTM5ODdzOApkdXJhdGlvbnM1CjEyOTI4czIKaWRyMAo_
2016-07-06 14:45:06,751 (7f4453fff700) :  INFO (agentkit:946) - Searching for matches for {'openSubtitlesHash': '45a0b0a9f025f081', 'episode': '17', 'name': 'The Ember Island Players', 'episodic': '1', 'show': 'Avatar - The Last Airbender', 'season': '3', 'plexHash': 'f8d7387184e5928add024e62eb2b4fc9df174667', 'filename': '%2Fserver-storage%2FAnime%2FAvatar%20-%20The%20Last%20Airbender%2FSeason%203%20-%20Book%203%20Fire%2FAvatar%20-%20The%20Last%20Airbender%20-%20Book%203%20Fire%20-%20Chapter%2017%20-%20The%20Ember%20Island%20Players%2Eavi', 'year': None, 'duration': '1453987', 'id': '12928'}
2016-07-06 14:45:06,751 (7f4453fff700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/12928/tree'
2016-07-06 14:45:06,771 (7f4453fff700) :  DEBUG (__init__:101) - === Search - Begin - ================================================================================================
2016-07-06 14:45:06,771 (7f4453fff700) :  INFO (__init__:164) - search() - Title: 'Avatar - The Last Airbender', name: 'The Ember Island Players', filename: '%2Fserver-storage%2FAnime%2FAvatar%20-%20The%20Last%20Airbender%2FSeason%203%20-%20Book%203%20Fire%2FAvatar%20-%20The%20Last%20Airbender%20-%20Book%203%20Fire%20-%20Chapter%2017%20-%20The%20Ember%20Island%20Players%2Eavi', manual:'False'
2016-07-06 14:45:06,772 (7f4453fff700) :  DEBUG (__init__:164) - search() - Keyword search - Matching 'Avatar - The Last Airbender' with: 'avatar', 'airbender'
2016-07-06 14:45:06,772 (7f4453fff700) :  DEBUG (__init__:166) - 
2016-07-06 14:45:06,772 (7f4453fff700) :  DEBUG (__init__:176) - Search - similarity with 'Avatar - The Last Airbender': 
2016-07-06 14:45:06,773 (7f4453fff700) :  DEBUG (runtime:924) - Response: [200] str, 320 bytes
2016-07-06 14:45:06,879 (7f44527fc700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/20238/tree'
2016-07-06 14:45:23,480 (7f44527fc700) :  DEBUG (__init__:562) - --- Update Begin -------------------------------------------------------------------------------------------
2016-07-06 14:45:23,480 (7f44527fc700) :  DEBUG (__init__:562) - Update - metadata source: 'anidb', id: '11638', Title: 'None',([...], [...], True)
2016-07-06 14:45:23,480 (7f44527fc700) :  DEBUG (__init__:671) - anidbTvdbMapping() - anidbid '11638' not found in file
2016-07-06 14:45:23,481 (7f44527fc700) :  CRITICAL (agentkit:1067) - Exception in the update function of agent named 'HamaTV', called with guid 'com.plexapp.agents.hama://anidb-11638?lang=en' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a17e99e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1065, in _update
    agent.update(obj, media, lang, **kwargs)
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/__init__.py", line 869, in update
    def update(self, metadata, media, lang, force ): self.Update(metadata, media, lang, force,  False )
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/__init__.py", line 562, in Update
    elif season=="0":                                                    tvdb_ep = "s"+season+"e"+epNumVal
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/__init__.py", line 672, in anidbTvdbMapping
    error_log['anime-list anidbid missing'].append("anidbid: %s | Title: '%s'" % (anidb_id, name))
UnboundLocalError: local variable 'name' referenced before assignment

2016-07-06 14:45:23,694 (7f4453fff700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgo5NTYyYWM1MzZmNzQ3YTU3czE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMTNzNwplcGlzb2RlczIyClZlbm9tIG9mIHRoZSBSZWQgTG90dXNzNApuYW1lczEKMXM4CmVwaXNvZGljczI4CkF2YXRhciAtIFRoZSBMZWdlbmQgb2YgS29ycmFzNApzaG93czEKM3M2CnNlYXNvbm5zNAp5ZWFyczIwNAolMkZzZXJ2ZXItc3RvcmFnZSUyRkFuaW1lJTJGQXZhdGFyJTIwLSUyMFRoZSUyMExlZ2VuZCUyMG9mJTIwS29ycmElMkZTZWFzb24lMjAzJTIwLSUyMEJvb2slMjAzJTIwQ2hhbmdlJTJGVGhlJTIwTGVnZW5kJTIwb2YlMjBLb3JyYSUyMFMwM0UxMyUyMFZlbm9tJTIwb2YlMjB0aGUlMjBSZWQlMjBMb3R1cyUyMCgxMjgweDcyMCklMjBbUGhyMHN0WV0lMkVta3ZzOApmaWxlbmFtZXM0MAo2NTg0YjkxNDQ5MjUyMjQ1ODg2NDZmMmE4OGNhNzUwYmQ5ODcyZDVmczgKcGxleEhhc2hzNwoxMzIxOTg5czgKZHVyYXRpb25zNQoxNjA3M3MyCmlkcjAK
2016-07-06 14:45:23,695 (7f4453fff700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgo5NTYyYWM1MzZmNzQ3YTU3czE3Cm9wZW5TdWJ0aXRsZXNIYXNoczIKMTNzNwplcGlzb2RlczIyClZlbm9tIG9mIHRoZSBSZWQgTG90dXNzNApuYW1lczEKMXM4CmVwaXNvZGljczI4CkF2YXRhciAtIFRoZSBMZWdlbmQgb2YgS29ycmFzNApzaG93czEKM3M2CnNlYXNvbm5zNAp5ZWFyczIwNAolMkZzZXJ2ZXItc3RvcmFnZSUyRkFuaW1lJTJGQXZhdGFyJTIwLSUyMFRoZSUyMExlZ2VuZCUyMG9mJTIwS29ycmElMkZTZWFzb24lMjAzJTIwLSUyMEJvb2slMjAzJTIwQ2hhbmdlJTJGVGhlJTIwTGVnZW5kJTIwb2YlMjBLb3JyYSUyMFMwM0UxMyUyMFZlbm9tJTIwb2YlMjB0aGUlMjBSZWQlMjBMb3R1cyUyMCgxMjgweDcyMCklMjBbUGhyMHN0WV0lMkVta3ZzOApmaWxlbmFtZXM0MAo2NTg0YjkxNDQ5MjUyMjQ1ODg2NDZmMmE4OGNhNzUwYmQ5ODcyZDVmczgKcGxleEhhc2hzNwoxMzIxOTg5czgKZHVyYXRpb25zNQoxNjA3M3MyCmlkcjAK
2016-07-06 14:45:23,695 (7f4453fff700) :  INFO (agentkit:946) - Searching for matches for {'openSubtitlesHash': '9562ac536f747a57', 'episode': '13', 'name': 'Venom of the Red Lotus', 'episodic': '1', 'show': 'Avatar - The Legend of Korra', 'season': '3', 'plexHash': '6584b9144925224588646f2a88ca750bd9872d5f', 'filename': '%2Fserver-storage%2FAnime%2FAvatar%20-%20The%20Legend%20of%20Korra%2FSeason%203%20-%20Book%203%20Change%2FThe%20Legend%20of%20Korra%20S03E13%20Venom%20of%20the%20Red%20Lotus%20(1280x720)%20[Phr0stY]%2Emkv', 'year': None, 'duration': '1321989', 'id': '16073'}
2016-07-06 14:45:23,695 (7f4453fff700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/16073/tree'
2016-07-06 14:45:23,832 (7f44527fc700) :  DEBUG (model:229) - Serializing to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/8/57eef19e0ce3d32f98b6f27d890067c5853efb8.bundle/Contents/com.plexapp.agents.hama/Info.xml
2016-07-06 14:45:23,833 (7f44527fc700) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
2016-07-06 14:45:58,142 (7f4453fff700) :  DEBUG (__init__:101) - === Search - Begin - ================================================================================================
2016-07-06 14:45:58,157 (7f4453fff700) :  INFO (__init__:164) - search() - Title: 'Avatar - The Legend of Korra', name: 'Venom of the Red Lotus', filename: '%2Fserver-storage%2FAnime%2FAvatar%20-%20The%20Legend%20of%20Korra%2FSeason%203%20-%20Book%203%20Change%2FThe%20Legend%20of%20Korra%20S03E13%20Venom%20of%20the%20Red%20Lotus%20(1280x720)%20[Phr0stY]%2Emkv', manual:'False'
2016-07-06 14:45:58,158 (7f4453fff700) :  DEBUG (__init__:164) - search() - Keyword search - Matching 'Avatar - The Legend of Korra' with: 'avatar', 'legend', 'korra'
2016-07-06 14:45:58,158 (7f4453fff700) :  DEBUG (__init__:166) - 
2016-07-06 14:45:58,158 (7f4453fff700) :  DEBUG (__init__:176) - Search - similarity with 'Avatar - The Legend of Korra': 
2016-07-06 14:45:58,159 (7f4453fff700) :  DEBUG (runtime:924) - Response: [200] str, 320 bytes

Scanner seems to be picking it up though

series.log:

2016-07-06 09:06:29 Scanner call - root: '/server-storage/Anime', path: 'Masou Gakuen HxH', dirs: '0', files: '1'
2016-07-06 09:06:29 =============================================================================================================================================================
2016-07-06 09:06:29 "Masou Gakuen HxH" s0001e001 "[HorribleSubs] Masou Gakuen HxH - 01 [720p].mkv"
2016-07-06 09:06:29 -------------------------------------------------------------------------------------------------------------------------------------------------------------
2016-07-06 09:06:29 
2016-07-06 09:39:13 === Library "Anime - series", Root: "/server-storage/Anime",  Launched: '2016-07-06 09:39:13'================================================================
2016-07-06 09:39:13 keep_zero_size_files: 'True'
2016-07-06 09:39:13 no_timestamp:         'False'
2016-07-06 09:39:13 season_from_folder:   'False'

but none of the other logs have it, with ASS - Filelist.log and the ASS.log completely empty

@EndOfLine369
Copy link
Collaborator

Hi @aleung241,

  1. Looks like your cached scudlee file is not repulled from Github anidbTvdbMapping() - anidbid '11638' not found in file. You will need to wait for the 1day cache of the file to expire for it to get repulled and your agent to get reloaded for it to get repulled.
  2. AniDB API is currently down https://twitter.com/AniDBStatus
  3. Looks like there is a minor issue in variable usage. @ZeroQI please fix this line now or in your reduction pull.
FROM:
error_log['anime-list anidbid missing'].append("anidbid: %s | Title: '%s'" % (anidb_id, name))
TO:
error_log['anime-list anidbid missing'].append("anidbid: %s | Title: 'UNKNOWN'" % (WEB_LINK % (ANIDB_SERIE_URL % anidbid, anidbid)))

@ZeroQI ZeroQI closed this as completed in 3f13153 Jul 6, 2016
@ZeroQI ZeroQI reopened this Jul 6, 2016
@ZeroQI
Copy link
Owner

ZeroQI commented Jul 6, 2016

Fix for variable name not found pushed. You can also check the copy of the mapping file saved in agent data folder to confirm it doesn't have the anidbid.

If you custom search a serie called "clear-cache" it will clear all http cache for you, then you just cancel the item found

@aleung241
Copy link
Author

What is this custom search? I've tried searching for "clear-cache" through plex's normal search bar on top left in web browser, but it returns with no results.

@ZeroQI
Copy link
Owner

ZeroQI commented Jul 6, 2016

It's in the agent code. if you search a serie with that name, it calls the plex python defined function that clear the cache

@EndOfLine369
Copy link
Collaborator

EndOfLine369 commented Jul 7, 2016

Its the search when you do a match/fix match search.

image

image

@EndOfLine369
Copy link
Collaborator

EndOfLine369 commented Jul 7, 2016

@ZeroQI, this would only clear the HTTP cache. It would not trigger a reload of the 'ANIDB_TITLES'/'ANIDB_TITLES'/'ANIDB_TITLES'. Should we add in a search option that does that where it clears the cache then reloads those core files?
Is there a way we can clear the cache of just these files as well and not all cached data? I can see a possibility of AniDB ban people from repeated calls of the same item in <1day.

@YoeJates
Copy link

YoeJates commented Jul 7, 2016

ss 2016-07-07 at 10 20 32
I'm still having this issue, is there any way for me to fix it?
Slightly annoying having to manually go through newly added anime and include the poster, background, etc. myself.

Greatly appreciate your work on this though!

@ZeroQI
Copy link
Owner

ZeroQI commented Jul 7, 2016

While the agent can get the anidbid, with the error "UnboundLocalError: local variable 'name' referenced before assignment" present, it crash. did you replace the agent with the version there https://github.com/ZeroQI/Hama.bundle/blob/3f131531292d4fd1a70eb8bff629205265429856/Contents/Code/__init__.py ?
Please paste the content of the locally saved mapping file
Since ANIDB API[https://twitter.com/AniDBStatus] is down, the code might crash like above.
Please attach the agent log, so if the agent can't handle anidb down, we correct that

@YoeJates
Copy link

YoeJates commented Jul 7, 2016

Yes, I replaced the agent with that version and it doesn't apply any metadata after refreshing the library. I noticed when I edit each series, the metadata has been downloaded, such as posters, backgrounds and others but it isn't applying the metadata to the series. Is this the issue that the update was supposed to fix?

And sorry, I have no idea where the mapping file and agent logs are. Any directions for those?

@ZeroQI
Copy link
Owner

ZeroQI commented Jul 7, 2016

the readme mention all filenames and location
You NEED to copy in the agent data folder the empty folders or metadata will not be loaded as per the readme instructions

@YoeJates
Copy link

YoeJates commented Jul 8, 2016

I have the folders within the data folder in plug-in support, I've been using this for a couple of months without any issue. But the past two days it won't load the metadata properly, it will download it, but not apply it to each series. It seems to not be downloading the AniDB posters etc. and downloading TVDB stuff, but not applying those to the series.

The "com.plexapp.agents.hama" log is huge, and I don't want to paste it in here to spam. What's a better way of showing it?

@ZeroQI
Copy link
Owner

ZeroQI commented Jul 8, 2016

anidb API is down since the 5th of july!!!!!!
Link https://twitter.com/AniDBStatus confirming this has been pasted twice
You could have deleted the file, then matched a single serie and the log would be small...

@EndOfLine369
Copy link
Collaborator

EndOfLine369 commented Jul 8, 2016

Hey @ZeroQI,
I think the complaint at this point is that with AniDB down but TVDB is still up, posters/backgrounds are still being pulled but they are not being applied even if we couldn't get core metadata from AniDB.

image

image

This seems to be that even though posters are added, it is not enough to trigger them to be loaded.
By simply changing:

FROM:
      if anime:
        ### AniDB Title ###

TO:
      if not anime:
        try:
          if not metadata.title and tvdbtitle:  metadata.title = tvdbtitle
        except Exception as e:  
          Log.Error(e)
      else:
        ### AniDB Title ###

It will update the title of the series with the title from TVDB (If known/available).
This triggers the images to be loaded into Plex. And once AniDB is back up, a refresh will fix the title as this initial setting has the test of not metadata.title so even if AniDB goes out again, it will not override the AniDB title.

EX:
image

@EndOfLine369
Copy link
Collaborator

EndOfLine369 commented Jul 8, 2016

@YoeJates / @aleung241
Master has been updated and you should at least be able to now get posters while AniDB is currently down. ea29c41
https://raw.githubusercontent.com/ZeroQI/Hama.bundle/master/Contents/Code/__init__.py

@YoeJates
Copy link

YoeJates commented Jul 8, 2016

Thanks, this is a big help. When AniDB is back up, will it also refresh series synopsis', year of creation etc. as well?

@EndOfLine369
Copy link
Collaborator

Correct. When AniDB is back up. This workaround is for when AniDB is down is to just get the posters loaded from TVDB recognized by Plex.

@sven-7
Copy link
Contributor

sven-7 commented Jul 8, 2016

I have Berserk (2016) mapped with tvdb2, but it's not pulling down metadata correctly it seems.

(This could be scanner related too -- python file does not seem to be compiling - will open another issue (#49))

Also, I believe AniDB is back up now.

@EndOfLine369
Copy link
Collaborator

@sven-7, please open up a separate ticket and attach hama logs.
For this ticket, AniDB is indeed back up, we got the ability to make sure to get posters from TVDB while AniDB is down, and fixed 'anime-list anidbid missing' variable issue.

@EndOfLine369
Copy link
Collaborator

@YoeJates, with AniDB back up, if you refesh your entries now it should work as usual now and you'll get all metadata.

@sven-7
Copy link
Contributor

sven-7 commented Jul 9, 2016

Berserk error self-corrected. Not going to open up a ticket.

@aleung241
Copy link
Author

aleung241 commented Jul 9, 2016

EDIT: issue has fixed itself

I still have issues even after updating init.py with the most current version and plex server restarted.

hama agent log:
http://www.paste.org/flat/81126

As in my first post, mapping is there in anime-list-master.xml and anidb's api anime-title.xml, but it the error logs still show it as not found.

When anidb's api was down, the newly added anime series had title as anime-title[anidb-xxxxx], but around the time when it went back up, newly added series will have the title, but no longer have the [anidb-xxxxx] part appended. However, in both cases, metadata is still not available.

The latest example of no metadata, but no longer having the [anidb-xxxxx] part is Planetarian, but it seems the agent crashes during the first update before it reaches, the UnboundLocalError.

All folders are correct and in the right place.
Permissions have been set to 775 as the installation instructions have said.

In addition, it seems the scanner's python file is not compiling, although that issue, #49, seems to be closed without any resolution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants