TV Metadata Not Matching (11/25/2021) [Everything Was Working Previously]

Server Version#: 1.24.5.5173

Literally every show I’ve tried adding and scanning today (including shows that are properly matched) is just adding the new episode as “Episode 7” or “Episode 8”, etc.

I am also unable to match Panorama (Panorama - TheTVDB.com), even by TVDB ID.

Everything is working prior to today (most recent successful episode match was Hawkeye S01E02). But today, all the episodes or new shows I add are failing to get the metadata.

“Fix Match” on any TV shows is showing no matches found.

Is anyone else having issues with TVDB API? Sonarr still seems to be working, so I don’t think that’s the problem.

If it’s a networking issue, maybe TVDB blocked my server’s IP or something, is there a way I can see that or have results show up in the log?

Refresh Metadata isn’t doing anything, either.

Ahh, in the TVDB Scanner logs (found it in PMS Plugin Logs), I see:

2021-11-25 11:49:07,014 (7f48265b3b38) : INFO (init:364) - Searching for match with: South+Side (lang: en)
2021-11-25 11:49:07,014 (7f48265b3b38) : DEBUG (networking:143) - Requesting ‘http://127.0.0.1:32400/services/thetvdb/login
2021-11-25 11:49:14,862 (7f48264d6b38) : ERROR (networking:196) - Error opening URL ‘http://127.0.0.1:32400/services/thetvdb/login
2021-11-25 11:49:14,862 (7f48264d6b38) : INFO (init:156) - JWT Error: (HTTP Error 500: Internal Server Error) -
2021-11-25 11:49:14,862 (7f48264d6b38) : DEBUG (networking:143) - Requesting ‘https://api4.thetvdb.com/v4/series/390161/episodes/official?page=0
2021-11-25 11:49:21,045 (7f48265b3b38) : ERROR (networking:196) - Error opening URL ‘http://127.0.0.1:32400/services/thetvdb/login
2021-11-25 11:49:21,045 (7f48265b3b38) : INFO (init:156) - JWT Error: (HTTP Error 500: Internal Server Error) -
2021-11-25 11:49:21,045 (7f48265b3b38) : DEBUG (networking:143) - Requesting ‘https://api4.thetvdb.com/v4/search?type=series&q=South+Side
2021-11-25 11:49:43,542 (7f48264d6b38) : INFO (init:193) - Problem with the request:
2021-11-25 11:49:43,543 (7f48264d6b38) : CRITICAL (agentkit:1095) - Exception in the update function of agent named ‘TheTVDB’, called with guid ‘com.plexapp.agents.thetvdb://390161?lang=en’ (most recent call last):
File “/usr/lib/plexmediaserver/Resources/Plug-ins-8dcc73a59/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py”, line 1093, in _update
agent.update(obj, media, lang, **kwargs)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-8dcc73a59/TheTVDBv4.bundle/Contents/Code/init.py”, line 1026, in update
self.processExtras(xml, metadata.seasons[season_num], lang, ivaNormTitle)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-8dcc73a59/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py”, line 96, in ObjectFromString
check_size(string, max_size)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-8dcc73a59/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py”, line 22, in check_size
if len(data) > max_size:
TypeError: object of type ‘NoneType’ has no len()

2021-11-25 11:49:43,546 (7f48264d6b38) : DEBUG (model:229) - Serializing to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/5/f2c2a443371d431fb682f939d3c9e3d03c02423.bundle/Contents/com.plexapp.agents.thetvdb/Info.xml
2021-11-25 11:49:43,547 (7f48264d6b38) : DEBUG (runtime:88) - Sending packed state data (107 bytes)
2021-11-25 11:49:43,547 (7f48264d6b38) : DEBUG (runtime:924) - Response: [200] str, 16 bytes
2021-11-25 11:49:49,686 (7f48265b3b38) : INFO (init:193) - Problem with the request:
2021-11-25 11:49:49,687 (7f48265b3b38) : CRITICAL (agentkit:1018) - Exception in the search function of agent named ‘TheTVDB’, called with keyword arguments {‘openSubtitlesHash’: ‘8eaabe2c82a6392a’, ‘episode’: ‘10’, ‘episodic’: ‘1’, ‘show’: ‘South Side’, ‘season’: ‘2’, ‘filename’: ‘%2Fmnt%2Funion%2FTV%2FSouth%20Side%2FSeason%2002%2FSouth%20Side%20-%20S02E10%20-%20Sarcophacouch%20-%20%5Bsouth%2Eside%2Es02e10%2E720p%2Eweb%2Eh264-glhf%5D%2Emkv’, ‘plexHash’: ‘05e4cc9d5703b82bbceb801647411cedc122010a’, ‘duration’: ‘1991573’, ‘id’: ‘275223’} (most recent call last):
File “/usr/lib/plexmediaserver/Resources/Plug-ins-8dcc73a59/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py”, line 1011, in _search
agent.search(*f_args, **f_kwargs)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-8dcc73a59/TheTVDBv4.bundle/Contents/Code/init.py”, line 459, in search
self.tvdb_match(SVmediaShowYear[‘normal’], media, results, lang)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-8dcc73a59/TheTVDBv4.bundle/Contents/Code/init.py”, line 365, in tvdb_match
series_data = JSON.ObjectFromString(GetResultFromNetwork(TVDB_SEARCH_URL % mediaShowYear, cacheTime=0))[‘data’]
File “/usr/lib/plexmediaserver/Resources/Plug-ins-8dcc73a59/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py”, line 96, in ObjectFromString
check_size(string, max_size)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-8dcc73a59/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py”, line 22, in check_size
if len(data) > max_size:
TypeError: object of type ‘NoneType’ has no len()

2021-11-25 11:49:49,688 (7f48265b3b38) : DEBUG (runtime:88) - Sending packed state data (107 bytes)
2021-11-25 11:49:49,688 (7f48265b3b38) : DEBUG (runtime:924) - Response: [200] str, 16 bytes

Does anyone have any idea how I can fix my TVDB scanner?

Please can you provide the full server logs zip.

Yes of course! Here they are:

Plex Media Server Logs_2021-11-25_12-27-37.zip (5.5 MB)

Happy Thanksgiving :slight_smile:

The new Plex Movie agent has been awesome for me, I didn’t realize I was on the legacy TVDB scanner, so I’ll give upgrading my library a whirl. I’m really curious what’s going on with my TVDB agent, though… I suspect it’ll likely have the same issue.

Besides changing to the Plex agent is there a fix for this? I switched from the TVDB to the MovieDB about 9 months ago, and all has been great, until a few days ago, no TV shows match. New movies match just fine.
Where does the Plex agent get it’s info from? I’m fine switching to it, but I have some stuff like the old Dragonball episodes that were hard to match, so I don’t want to screw up all my existing matches.

it’s this, server logs won’t do anything unfortunately.

No, that’s for the modern agent only. OP is using the legacy agent which doesn’t hit that broken endpoint.

Thanks,

I can see that the authentication request to tvdb is timing out for some reason, I cannot give you a reason why this is happening and I don’t see this issue on my end.

Are you able to reach this endpoint? https://api4.thetvdb.com/v4/status

Upgrading to the new agent should solve your problem, there is however a separate unrelated issue with another part of their api (see The Great (2020) season metadata not pulling through - #11 by drzoidberg33) which is currently causing issues with some seasons.

I’ve been having the same issue for weeks. I tried to “match” my recent movies and tv shows with different agents, and I tried enabling every agent under the advanced settings. Still, no match results at all. I even tried the trick of searching with the imdb title id/tvdb id

EDIT: After losing data for an entire library by upgrading the agent, I decided to restart my synology nas, and this allowed me to match everything. So the problem was solved for me, but I don’t know what caused it or how to prevent it. Try restarting your device and see if that helps the match.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.