Skip to content

TVDB4 Mapping raises an error & Metadata won't download #599

Description

@vveerar1

Platform

Operating system and version: LinuxServer Docker - UnRaid
Plex version: 1.43.0.10492

Current Behavior

One Piece

One Piece (1999) {tvdb4-81797}

Image
2026-03-09 09:54:35,682 - 1508c3552b38 - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgo2NjM5NjdzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM0NQpjb20ucGxleGFwcC5hZ2VudHMuaGFtYTovL3R2ZGI0LTgxNzk3P2xhbmc9ZW5zNApndWlkczExCnR2ZGI0LTgxNzk3czIKaWRyMAo_
2026-03-09 09:54:35,683 - 1508c3552b38 - Received packed state data (576 bytes)
2026-03-09 09:54:35,684 - 1508c3552b38 - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgo2NjM5NjdzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM0NQpjb20ucGxleGFwcC5hZ2VudHMuaGFtYTovL3R2ZGI0LTgxNzk3P2xhbmc9ZW5zNApndWlkczExCnR2ZGI0LTgxNzk3czIKaWRyMAo_
2026-03-09 09:54:35,685 - 1508c3552b38 - Loading model with GUID com.plexapp.agents.hama://tvdb4-81797?lang=en
2026-03-09 09:54:35,688 - 1508c3552b38 - Deserializing from /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/7/de80d634d086714ab76d52c860b99df55eda062.bundle/Contents/com.plexapp.agents.hama/Info.xml
2026-03-09 09:54:35,696 - 1508c3552b38 - Requesting 'http://127.0.0.1:32400/library/metadata/663967/tree'
2026-03-09 09:54:45,351 - 1508c3552b38 - ==== common.PlexLog(file="/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/Anime/One Piece (1999) {tvdb4-81797}.agent-update.log")
2026-03-09 09:54:45,364 - 1508c3552b38 - Exception in the update function of agent named 'HamaTV', called with guid 'com.plexapp.agents.hama://tvdb4-81797?lang=en' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-121068a07/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "/config/Library/Application Support/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 "/config/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/__init__.py", line 138, in Update
    dict_AnimeLists, AniDBid, TVDBid, TMDbid, IMDbid, mappingList =  AnimeLists.GetMetadata(media, movie, error_log, metadata.id)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/AnimeLists.py", line 182, in GetMetadata
    Log.Info('"anime-list TVDBid missing.htm" log added as tvdb serie id missing in mapping file: "{}"'.format("None" if TVDBid is None else TVDBid))
TypeError: cannot concatenate 'str' and 'NoneType' objects

2026-03-09 09:54:45,373 - 1508c3552b38 - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/7/de80d634d086714ab76d52c860b99df55eda062.bundle/Contents/com.plexapp.agents.hama/Info.xml
2026-03-09 09:54:45,397 - 1508c3552b38 - Sending packed state data (600 bytes)
2026-03-09 09:54:45,398 - 1508c3552b38 - Response: [200] str, 16 bytes

One Piece (1999) {tvdb4-81797}.agent-update

=============================================================================================================================================================
common.PlexLog(file="/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/Anime/One Piece (1999) {tvdb4-81797}.agent-update.log", movie=False)
[!] file:       "/data/Anime/One Piece (1999) {tvdb4-81797}/One Piece (1999) - E883 - One Step Ahead of the Dream - Shirahoshi's Path to the Sun! - [Bluray-1080p][10bit][x265][AAC 2.0][EN+JA]-Anime Time.mkv"
[ ] library:    "Anime"
[ ] root:       "/data/Anime"
[ ] path:       "One Piece (1999) {tvdb4-81797}"
[ ] Plex root:  "/config/Library/Application Support/Plex Media Server"
[ ] Log folder: "Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/Anime"
[ ] Log file:   "One Piece (1999) {tvdb4-81797}.agent-update.log"
[ ] Logger:     "0x1508c3552b38"
[ ] mode:       "w"
=== Update() ================================================================================================================================================
id: tvdb4-81797, title: None, lang: en, force: True, movie: False
start: 2026-03-09 09:54:45,354248
=== AnimeLists.GetMetadata() ================================================================================================================================
tvdb_numbering: True
Local custom mapping file not present: anime-list-custom.xml
--- AniDBTVDBMap --------------------------------------------------------------------------------------------------------------------------------------------
[+] AniDBid:    69, TVDBid:  81797, defaulttvdbseason: (a)1, offset:   0, TMDBid:        , IMDBid:           , name: One Piece
    - season: [ 0],           [ 0], range:       [000-000], offset:   0, text: 1-27;2-3;3-9;4-10;5-14;6-0;7-0;8-0;9-0;10-0;11-0;12-0;13-0;14-0;15-0;16-31;17-23;18-24;19-28;20-29;21-30;22-0;23-32;24-34;25-0;26-36;27-37;28-40;29-41;30-42;31-43;32-44;33-45;34-47;35-48;36-49;37-50;38-51;39-52;40-53;41-54;42-55;43-56;44-57
    - season: [ 1],           [None], range:       [  1- 61], offset:   0, text: 

Naruto- Shippûden

Naruto- Shippûden (2007) {tvdb4-79824}

Image
2026-03-09 10:42:24,499 - 154248d90b38 - ==== common.PlexLog(file="/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/Anime/Naruto- Shippûden (2007) {tvdb4-79824}.agent-update.log")
2026-03-09 10:42:24,535 - 154248d90b38 - Exception in the update function of agent named 'HamaTV', called with guid 'com.plexapp.agents.hama://tvdb4-79824?lang=en' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-121068a07/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "/config/Library/Application Support/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 "/config/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/__init__.py", line 138, in Update
    dict_AnimeLists, AniDBid, TVDBid, TMDbid, IMDbid, mappingList =  AnimeLists.GetMetadata(media, movie, error_log, metadata.id)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/AnimeLists.py", line 182, in GetMetadata
    Log.Info('"anime-list TVDBid missing.htm" log added as tvdb serie id missing in mapping file: "{}"'.format("None" if TVDBid is None else TVDBid))
TypeError: cannot concatenate 'str' and 'NoneType' objects

2026-03-09 10:42:24,543 - 154248d90b38 - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/5/d2cde59110f0c1e83d663af89bb6ce1f69d70a5.bundle/Contents/com.plexapp.agents.hama/Info.xml
2026-03-09 10:42:24,558 - 154248d90b38 - Sending packed state data (104 bytes)
2026-03-09 10:42:24,558 - 154248d90b38 - Response: [200] str, 16 bytes

Naruto- Shippûden (2007) {tvdb4-79824}.agent-update.log

=============================================================================================================================================================
common.PlexLog(file="/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/Anime/Naruto- Shippûden (2007) {tvdb4-79824}.agent-update.log", movie=False)
[!] file:       "/data/Anime/Naruto- Shippûden (2007) {tvdb4-79824}/Naruto Shippuden (2007) - E235 - The Kunoichi Of Nadeshiko Village - [Bluray-1080p][8bit][x264][FLAC 2.0][JA+EN].mkv"
[ ] library:    "Anime"
[ ] root:       "/data/Anime"
[ ] path:       "Naruto- Shippûden (2007) {tvdb4-79824}"
[ ] Plex root:  "/config/Library/Application Support/Plex Media Server"
[ ] Log folder: "Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/Anime"
[ ] Log file:   "Naruto- Shippûden (2007) {tvdb4-79824}.agent-update.log"
[ ] Logger:     "0x154248d90b38"
[ ] mode:       "w"
=== Update() ================================================================================================================================================
id: tvdb4-79824, title: None, lang: en, force: True, movie: False
start: 2026-03-09 10:42:24,502107
=== AnimeLists.GetMetadata() ================================================================================================================================
tvdb_numbering: True
Local custom mapping file not present: anime-list-custom.xml
--- AniDBTVDBMap --------------------------------------------------------------------------------------------------------------------------------------------
[+] AniDBid:  4880, TVDBid:  79824, defaulttvdbseason: (a)1, offset:   0, TMDBid:        , IMDBid:           , name: Naruto Shippuuden
    - season: [ 0],           [ 0], range:       [000-000], offset:   0, text: 1-0
    - season: [ 1],           [None], range:       [197-221], offset: -196, text: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions