mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-08 02:34:19 -04:00
Check for Imdb id for series (#9829)
This commit is contained in:
parent
643df48707
commit
2acae258b8
@ -184,6 +184,12 @@ namespace Emby.Server.Implementations.Library.Resolvers.TV
|
|||||||
{
|
{
|
||||||
var justName = Path.GetFileName(path.AsSpan());
|
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");
|
var tvdbId = justName.GetAttributeValue("tvdbid");
|
||||||
if (!string.IsNullOrEmpty(tvdbId))
|
if (!string.IsNullOrEmpty(tvdbId))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user