jellyfin / jellyfin-plugin-tvdb

GNU General Public License v3.0
56 stars 34 forks source link

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

Open tadly opened 3 years ago

tadly commented 3 years ago

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):

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:

Expected behavior

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

tadly commented 3 years ago

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)