Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/54dbdc695a1c4d3b987f9fd91be55ff109975a43
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
11 additions and
6 deletions
@ -30,6 +30,7 @@
- [Khinenw ](https://github.com/HelloWorld017 )
- [fhriley ](https://github.com/fhriley )
- [nevado ](https://github.com/nevado )
- [mark-monteiro ](https://github.com/mark-monteiro )
# Emby Contributors
@ -35,9 +35,8 @@ namespace MediaBrowser.Providers.TV.TheTVDB
{
var list = new List < RemoteSearchResult > ( ) ;
// The search query must either provide an episode number or date
if ( ! searchInfo . IndexNumber . HasValue
| | ! searchInfo . PremiereDate . HasValue
// Either an episode number or date must be provided; and the dictionary of provider ids must be valid
if ( ( searchInfo . IndexNumber = = null & & searchInfo . PremiereDate = = null )
| | ! TvdbSeriesProvider . IsValidSeries ( searchInfo . SeriesProviderIds ) )
{
return list ;
@ -170,11 +170,16 @@ namespace MediaBrowser.Providers.TV.TheTVDB
return result ? . Data . First ( ) . Id . ToString ( ) ;
}
/// <summary>
/// Check whether a dictionary of provider IDs includes an entry for a valid TV metadata provider.
/// </summary>
/// <param name="seriesProviderIds">The dictionary to check.</param>
/// <returns>True, if the dictionary contains a valid TV provider ID, otherwise false.</returns>
internal static bool IsValidSeries ( Dictionary < string , string > seriesProviderIds )
{
return seriesProviderIds . TryGetValue ( MetadataProviders . Tvdb . ToString ( ) , out _ ) | |
seriesProviderIds . TryGetValue ( MetadataProviders . Imdb . ToString ( ) , out _ ) | |
seriesProviderIds . TryGetValue ( MetadataProviders . Zap2It . ToString ( ) , out _ ) ;
return seriesProviderIds . ContainsKey ( MetadataProviders . Tvdb . ToString ( ) ) | |
seriesProviderIds . ContainsKey ( MetadataProviders . Imdb . ToString ( ) ) | |
seriesProviderIds . ContainsKey ( MetadataProviders . Zap2It . ToString ( ) ) ;
}
/// <summary>