Use non nullable property type when possible
This commit is contained in:
parent
a37dc3da96
commit
3f9ee316d5
|
@ -22,7 +22,7 @@ namespace MediaBrowser.Providers.Movies
|
||||||
public ExternalIdMediaType? Type => null;
|
public ExternalIdMediaType? Type => null;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => "https://www.imdb.com/title/{0}";
|
public string UrlFormatString => "https://www.imdb.com/title/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item)
|
public bool Supports(IHasProviderIds item)
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace MediaBrowser.Providers.Movies
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.Person;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.Person;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => "https://www.imdb.com/name/{0}";
|
public string UrlFormatString => "https://www.imdb.com/name/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is Person;
|
public bool Supports(IHasProviderIds item) => item is Person;
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
|
||||||
public ExternalIdMediaType? Type => null;
|
public ExternalIdMediaType? Type => null;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => "https://www.theaudiodb.com/album/{0}";
|
public string UrlFormatString => "https://www.theaudiodb.com/album/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is MusicAlbum;
|
public bool Supports(IHasProviderIds item) => item is MusicAlbum;
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.Artist;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.Artist;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => "https://www.theaudiodb.com/artist/{0}";
|
public string UrlFormatString => "https://www.theaudiodb.com/artist/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is MusicArtist;
|
public bool Supports(IHasProviderIds item) => item is MusicArtist;
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.Album;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.Album;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => "https://www.theaudiodb.com/album/{0}";
|
public string UrlFormatString => "https://www.theaudiodb.com/album/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is Audio;
|
public bool Supports(IHasProviderIds item) => item is Audio;
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.OtherArtist;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.OtherArtist;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => "https://www.theaudiodb.com/artist/{0}";
|
public string UrlFormatString => "https://www.theaudiodb.com/artist/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is Audio || item is MusicAlbum;
|
public bool Supports(IHasProviderIds item) => item is Audio || item is MusicAlbum;
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class MusicBrainzAlbumArtistExternalId : IExternalId
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.AlbumArtist;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.AlbumArtist;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => Plugin.Instance!.Configuration.Server + "/artist/{0}";
|
public string UrlFormatString => Plugin.Instance!.Configuration.Server + "/artist/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is Audio;
|
public bool Supports(IHasProviderIds item) => item is Audio;
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class MusicBrainzAlbumExternalId : IExternalId
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.Album;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.Album;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => Plugin.Instance!.Configuration.Server + "/release/{0}";
|
public string UrlFormatString => Plugin.Instance!.Configuration.Server + "/release/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is Audio || item is MusicAlbum;
|
public bool Supports(IHasProviderIds item) => item is Audio || item is MusicAlbum;
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class MusicBrainzArtistExternalId : IExternalId
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.Artist;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.Artist;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => Plugin.Instance!.Configuration.Server + "/artist/{0}";
|
public string UrlFormatString => Plugin.Instance!.Configuration.Server + "/artist/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is MusicArtist;
|
public bool Supports(IHasProviderIds item) => item is MusicArtist;
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class MusicBrainzOtherArtistExternalId : IExternalId
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.OtherArtist;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.OtherArtist;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => Plugin.Instance!.Configuration.Server + "/artist/{0}";
|
public string UrlFormatString => Plugin.Instance!.Configuration.Server + "/artist/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is Audio or MusicAlbum;
|
public bool Supports(IHasProviderIds item) => item is Audio or MusicAlbum;
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class MusicBrainzReleaseGroupExternalId : IExternalId
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.ReleaseGroup;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.ReleaseGroup;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => Plugin.Instance!.Configuration.Server + "/release-group/{0}";
|
public string UrlFormatString => Plugin.Instance!.Configuration.Server + "/release-group/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is Audio or MusicAlbum;
|
public bool Supports(IHasProviderIds item) => item is Audio or MusicAlbum;
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class MusicBrainzTrackId : IExternalId
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.Track;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.Track;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => Plugin.Instance!.Configuration.Server + "/track/{0}";
|
public string UrlFormatString => Plugin.Instance!.Configuration.Server + "/track/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is Audio;
|
public bool Supports(IHasProviderIds item) => item is Audio;
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.BoxSets
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.BoxSet;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.BoxSet;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => TmdbUtils.BaseTmdbUrl + "collection/{0}";
|
public string UrlFormatString => TmdbUtils.BaseTmdbUrl + "collection/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item)
|
public bool Supports(IHasProviderIds item)
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.Movies
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.Movie;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.Movie;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => TmdbUtils.BaseTmdbUrl + "movie/{0}";
|
public string UrlFormatString => TmdbUtils.BaseTmdbUrl + "movie/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item)
|
public bool Supports(IHasProviderIds item)
|
||||||
|
|
|
@ -20,7 +20,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.People
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.Person;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.Person;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => TmdbUtils.BaseTmdbUrl + "person/{0}";
|
public string UrlFormatString => TmdbUtils.BaseTmdbUrl + "person/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item)
|
public bool Supports(IHasProviderIds item)
|
||||||
|
|
|
@ -20,7 +20,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
|
||||||
public ExternalIdMediaType? Type => ExternalIdMediaType.Series;
|
public ExternalIdMediaType? Type => ExternalIdMediaType.Series;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => TmdbUtils.BaseTmdbUrl + "tv/{0}";
|
public string UrlFormatString => TmdbUtils.BaseTmdbUrl + "tv/{0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item)
|
public bool Supports(IHasProviderIds item)
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace MediaBrowser.Providers.TV
|
||||||
public ExternalIdMediaType? Type => null;
|
public ExternalIdMediaType? Type => null;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? UrlFormatString => "http://tvlistings.zap2it.com/overview.html?programSeriesId={0}";
|
public string UrlFormatString => "http://tvlistings.zap2it.com/overview.html?programSeriesId={0}";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Supports(IHasProviderIds item) => item is Series;
|
public bool Supports(IHasProviderIds item) => item is Series;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user