mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Check for Imdb id for series (#9829)
This commit is contained in:
parent
643df48707
commit
2acae258b8
1 changed files with 6 additions and 0 deletions
|
@ -183,6 +183,12 @@ namespace Emby.Server.Implementations.Library.Resolvers.TV
|
|||
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue