TmdbPersonExternalId.cs 871 B

12345678910111213141516171819202122232425262728293031
  1. using MediaBrowser.Controller.Entities;
  2. using MediaBrowser.Controller.Providers;
  3. using MediaBrowser.Model.Entities;
  4. using MediaBrowser.Model.Providers;
  5. namespace MediaBrowser.Providers.Plugins.Tmdb.People
  6. {
  7. /// <summary>
  8. /// External ID for a TMDB person.
  9. /// </summary>
  10. public class TmdbPersonExternalId : IExternalId
  11. {
  12. /// <inheritdoc />
  13. public string ProviderName => TmdbUtils.ProviderName;
  14. /// <inheritdoc />
  15. public string Key => MetadataProvider.Tmdb.ToString();
  16. /// <inheritdoc />
  17. public ExternalIdMediaType? Type => ExternalIdMediaType.Person;
  18. /// <inheritdoc />
  19. public string UrlFormatString => TmdbUtils.BaseTmdbUrl + "person/{0}";
  20. /// <inheritdoc />
  21. public bool Supports(IHasProviderIds item)
  22. {
  23. return item is Person;
  24. }
  25. }
  26. }