ZeroQI / Hama.bundle

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

No Matches found suddenly #344

Closed vadimPoliansky closed 5 years ago

vadimPoliansky commented 5 years ago

Hi There,

I've been using HAMA for years but suddenly it supposed finding matches. For example, here is a show where it correctly matched the episodes: 2019-09-12 10_35_04-

However it cannot match the 3 new episoded: image

Even if I switch the name to match: image

I am not seeing any issues in the log file:

com.plexapp.agents.hama.log

2019-09-12 10:58:09,009 - com.plexapp.agents.hama (26c8) : DEBUG (runtime/handle_request:717) - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IxczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTMKbnM0CnllYXJzNQo1MzYwNXMyCmlkczMzCk5ha2Egbm8gSGl0byBHZW5vbWUgW0ppa2t5b3VjaHV1XXM0CnNob3dyMAo_ 2019-09-12 10:58:09,010 - com.plexapp.agents.hama (26c8) : DEBUG (runtime/parse_state_data:49) - Received packed state data (80 bytes) 2019-09-12 10:58:09,010 - com.plexapp.agents.hama (26c8) : DEBUG (runtime/handle_request:814) - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IxczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTMKbnM0CnllYXJzNQo1MzYwNXMyCmlkczMzCk5ha2Egbm8gSGl0byBHZW5vbWUgW0ppa2t5b3VjaHV1XXM0CnNob3dyMAo_ 2019-09-12 10:58:09,012 - com.plexapp.agents.hama (26c8) : INFO (agentkit/_search:957) - Searching for matches for {'show': 'Naka no Hito Genome [Jikkyouchuu]', 'id': '53605', 'year': None} 2019-09-12 10:58:09,012 - com.plexapp.agents.hama (26c8) : DEBUG (networking/load:166) - Requesting 'http://127.0.0.1:32400/library/metadata/53605/tree' 2019-09-12 10:58:09,020 - com.plexapp.agents.hama (26c8) : INFO (logkit/Info:16) - === Search - Begin - ================================================================================================ 2019-09-12 10:58:09,020 - com.plexapp.agents.hama (26c8) : INFO (logkit/Info:16) - Title: 'Naka no Hito Genome [Jikkyouchuu]', name: 'None', filename: 'None', manual: 'True', year: 'None' 2019-09-12 10:58:09,022 - com.plexapp.agents.hama (26c8) : INFO (logkit/Info:16) - Naka no Hito Genome [Jikkyouchuu] 2019-09-12 10:58:09,022 - com.plexapp.agents.hama (26c8) : INFO (logkit/Info:16) - Keyword search - Matching 'Naka no Hito Genome [Jikkyouchuu]' with: 'naka', 'hito', 'genome', '[jikkyouchuu]' 2019-09-12 10:58:09,022 - com.plexapp.agents.hama (26c8) : INFO (logkit/Info:16) - 2019-09-12 10:58:09,022 - com.plexapp.agents.hama (26c8) : INFO (logkit/Info:16) - similarity with 'Naka no Hito Genome [Jikkyouchuu]': 2019-09-12 10:58:09,023 - com.plexapp.agents.hama (26c8) : DEBUG (runtime/return_state_data:88) - Sending packed state data (104 bytes) 2019-09-12 10:58:09,023 - com.plexapp.agents.hama (26c8) : DEBUG (runtime/handle_request:924) - Response: [200] str, 320 bytes

And the anime-titles.xml looks fine as well (I've changed the ext to log so it uploads) anime-list-master.log anime-titles.log

I can find the anime on the Anie-Titles.log as well

ZeroQI commented 5 years ago

anime title is encrypted not using latest hama code seemingly

vadimPoliansky commented 5 years ago

Thanks, I'll try updating first

ZeroQI commented 5 years ago

anime title is encrypted (.xml.gz) not using latest hama code seemingly

    <anime aid="14100">
        <title xml:lang="x-jat" type="main">Naka no Hito Genome [Jikkyouchuu]</title>
        <title xml:lang="en" type="official">The Ones Within</title>
        <title xml:lang="ja" type="official">ナカノヒトゲノム [実況中]</title>
    </anime>

You need to name it "Naka no Hito Genome [Jikkyouchuu]" as well...

vadimPoliansky commented 5 years ago

I updated it but now I get the following:

2019-09-12 13:21:50,687 (22c) : CRITICAL (core:574) - Exception starting plug-in (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1e5ff713d\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\core.py", line 608, in start self.sandbox.execute(self.init_code) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1e5ff713d\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 256, in execute exec(code) in self.environment File "C:\Users\CCRH\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\__init__.py", line 8, in <module> import common # Functions: Logging, SaveFile, LoadFile, metadata_download, WriteLogs, cleanse_title, GetMetadata, UpdateMeta, UpdateMetaField File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1e5ff713d\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 345, in __import__ raise e ImportError: No module named common

vadimPoliansky commented 5 years ago

I guess the issue is I broke my python installation?

ZeroQI commented 5 years ago

Cannot find Hama.bundle/Contents/Code/common.py seemingly

vadimPoliansky commented 5 years ago

Sorry! Messed up the update, it's working now. Sorry about that, should have tried updating first, but it was working for a while now.

ZeroQI commented 5 years ago

it's because anydb started double compressing the title file, needing an update to fix Well, if you really feel bad, there's a donation link in the readme :p