mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
add series trakt link
This commit is contained in:
parent
640ce66f68
commit
3d866534b8
1 changed files with 18 additions and 0 deletions
|
@ -9,6 +9,7 @@ using System.Linq;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using MediaBrowser.Model.Providers;
|
||||||
using MoreLinq;
|
using MoreLinq;
|
||||||
|
|
||||||
namespace MediaBrowser.Controller.Entities.TV
|
namespace MediaBrowser.Controller.Entities.TV
|
||||||
|
@ -516,5 +517,22 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||||
|
|
||||||
return hasChanges;
|
return hasChanges;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override List<ExternalUrl> GetRelatedUrls()
|
||||||
|
{
|
||||||
|
var list = base.GetRelatedUrls();
|
||||||
|
|
||||||
|
var imdbId = this.GetProviderId(MetadataProviders.Imdb);
|
||||||
|
if (!string.IsNullOrWhiteSpace(imdbId))
|
||||||
|
{
|
||||||
|
list.Add(new ExternalUrl
|
||||||
|
{
|
||||||
|
Name = "Trakt",
|
||||||
|
Url = string.Format("https://trakt.tv/shows/{0}", imdbId)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return list;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue