jellyfin/jellyfin-plugin-tvdb

The given series ID does not exist; No results for your query: map[DVD_episodenumber:14 DVD_season:2]

tadly opened this issue · 1 comments

tadly commented

Describe the bug
Specifically trying to scan "The Melancholy of Haruhi Suzumiya" (tvdbid 79414) in DVD order does not work and produces the mentioned error.

System (please complete the following information):

  • OS: Ubuntu
  • Virtualization: Docker
  • Clients: Browser
  • Browser: Chrome 87
  • Jellyfin Version: 10.6.4
  • Installed Plugins: Anime, Trakt

To Reproduce
Not sure if empty files work with jellyfin but these commands would replicated the correct folder/file structure on
a linux system

mkdir -p "The Melancholy of Haruhi Suzumiya (2006)/Season 1"
mkdir -p "The Melancholy of Haruhi Suzumiya (2006)/Season 2"

touch "The Melancholy of Haruhi Suzumiya (2006)/Season 1/The Melancholy of Haruhi Suzumiya (2006) S01E"{01..14}".mkv"
touch "The Melancholy of Haruhi Suzumiya (2006)/Season 2/The Melancholy of Haruhi Suzumiya (2006) S02E"{02..14}".mkv"

After that, simply scan it to the library.
At this point Aired Order is what is used and therefore "Season 2" is not properly scanned.
On the Series itself:

  • Edit Metadata
  • Change "Display order" to "DvD"
  • Refresh Metadata
    • Replace all metadata
    • Replace existing images
  • The error below occurs

Expected behavior

Logs
Attached because to big for pastebin :)
jellyfin.log

tadly commented

I kept on trying to somehow get it to match, without success.

Season 1 is matched correctly while Season 2 isn't
My last attempt was to manually set the tvdbid for each episode where it was missing and then refresh.

This results in the following error where 669401 is the TVDB Episode ID.

[2020-12-17 12:55:52.171 +01:00] [ERR] [103] MediaBrowser.Providers.Plugins.TheTvdb.TvdbEpisodeProvider: Failed to retrieve episode with id null, series id "669401"
TvDbSharper.TvDbServerException: The given series ID does not exist; No results for your query: map[DVD_episodenumber:1 DVD_season:2]
   at TvDbSharper.Infrastructure.Parser.Parse[T](ApiResponse response, IReadOnlyDictionary`2 errorMap)
   at TvDbSharper.Clients.SeriesClient.GetEpisodesAsync(Int32 seriesId, Int32 page, EpisodeQuery query, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Plugins.TheTvdb.TvdbClientManager.TryGetValue[T](String key, String language, Func`1 resultFactory)
   at MediaBrowser.Providers.Plugins.TheTvdb.TvdbClientManager.GetEpisodeTvdbId(Int32 seriesTvdbId, EpisodeQuery episodeQuery, String language, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Plugins.TheTvdb.TvdbEpisodeProvider.GetEpisode(EpisodeInfo searchInfo, CancellationToken cancellationToken)