| | 1 | | #pragma warning disable CS1591 |
| | 2 | |
|
| | 3 | | using MediaBrowser.Controller.Entities; |
| | 4 | | using MediaBrowser.Controller.Entities.Movies; |
| | 5 | | using MediaBrowser.Controller.Entities.TV; |
| | 6 | | using MediaBrowser.Controller.LiveTv; |
| | 7 | | using MediaBrowser.Controller.Providers; |
| | 8 | | using MediaBrowser.Model.Entities; |
| | 9 | | using MediaBrowser.Model.Providers; |
| | 10 | |
|
| | 11 | | namespace MediaBrowser.Providers.Movies |
| | 12 | | { |
| | 13 | | public class ImdbExternalId : IExternalId |
| | 14 | | { |
| | 15 | | /// <inheritdoc /> |
| 27 | 16 | | public string ProviderName => "IMDb"; |
| | 17 | |
|
| | 18 | | /// <inheritdoc /> |
| 6 | 19 | | public string Key => MetadataProvider.Imdb.ToString(); |
| | 20 | |
|
| | 21 | | /// <inheritdoc /> |
| 6 | 22 | | public ExternalIdMediaType? Type => null; |
| | 23 | |
|
| | 24 | | /// <inheritdoc /> |
| | 25 | | public bool Supports(IHasProviderIds item) |
| | 26 | | { |
| | 27 | | // Supports images for tv movies |
| 0 | 28 | | if (item is LiveTvProgram tvProgram && tvProgram.IsMovie) |
| | 29 | | { |
| 0 | 30 | | return true; |
| | 31 | | } |
| | 32 | |
|
| 0 | 33 | | return item is Movie || item is MusicVideo || item is Series || item is Episode || item is Trailer; |
| | 34 | | } |
| | 35 | | } |
| | 36 | | } |