Skip to content

Commit

Permalink
Merge pull request jellyfin#9803 from Bond-009/seriesimdb
Browse files Browse the repository at this point in the history
Check for Imdb id for series
  • Loading branch information
cvium authored May 25, 2023
2 parents b4b902d + b44c9eb commit 9cee32d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ private static void SetProviderIdFromPath(Series item, string path)
{
var justName = Path.GetFileName(path.AsSpan());

var imdbId = justName.GetAttributeValue("imdbid");
if (!string.IsNullOrEmpty(imdbId))
{
item.SetProviderId(MetadataProvider.Imdb, imdbId);
}

var tvdbId = justName.GetAttributeValue("tvdbid");
if (!string.IsNullOrEmpty(tvdbId))
{
Expand Down

0 comments on commit 9cee32d

Please sign in to comment.