mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 10:43:30 +01:00
update live tv data transfer
This commit is contained in:
@@ -132,7 +132,7 @@ namespace Emby.Server.Implementations.Localization
|
||||
/// Gets the cultures.
|
||||
/// </summary>
|
||||
/// <returns>IEnumerable{CultureDto}.</returns>
|
||||
public List<CultureDto> GetCultures()
|
||||
public CultureDto[] GetCultures()
|
||||
{
|
||||
var type = GetType();
|
||||
var path = type.Namespace + ".iso6392.txt";
|
||||
@@ -169,21 +169,21 @@ namespace Emby.Server.Implementations.Localization
|
||||
return list.Where(i => !string.IsNullOrWhiteSpace(i.Name) &&
|
||||
!string.IsNullOrWhiteSpace(i.DisplayName) &&
|
||||
!string.IsNullOrWhiteSpace(i.ThreeLetterISOLanguageName) &&
|
||||
!string.IsNullOrWhiteSpace(i.TwoLetterISOLanguageName)).ToList();
|
||||
!string.IsNullOrWhiteSpace(i.TwoLetterISOLanguageName)).ToArray();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the countries.
|
||||
/// </summary>
|
||||
/// <returns>IEnumerable{CountryInfo}.</returns>
|
||||
public List<CountryInfo> GetCountries()
|
||||
public CountryInfo[] GetCountries()
|
||||
{
|
||||
var type = GetType();
|
||||
var path = type.Namespace + ".countries.json";
|
||||
|
||||
using (var stream = _assemblyInfo.GetManifestResourceStream(type, path))
|
||||
{
|
||||
return _jsonSerializer.DeserializeFromStream<List<CountryInfo>>(stream);
|
||||
return _jsonSerializer.DeserializeFromStream<CountryInfo[]>(stream);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,9 +191,9 @@ namespace Emby.Server.Implementations.Localization
|
||||
/// Gets the parental ratings.
|
||||
/// </summary>
|
||||
/// <returns>IEnumerable{ParentalRating}.</returns>
|
||||
public IEnumerable<ParentalRating> GetParentalRatings()
|
||||
public ParentalRating[] GetParentalRatings()
|
||||
{
|
||||
return GetParentalRatingsDictionary().Values.ToList();
|
||||
return GetParentalRatingsDictionary().Values.ToArray();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -382,9 +382,9 @@ namespace Emby.Server.Implementations.Localization
|
||||
return culture + ".json";
|
||||
}
|
||||
|
||||
public IEnumerable<LocalizatonOption> GetLocalizationOptions()
|
||||
public LocalizatonOption[] GetLocalizationOptions()
|
||||
{
|
||||
return new List<LocalizatonOption>
|
||||
return new LocalizatonOption[]
|
||||
{
|
||||
new LocalizatonOption{ Name="Arabic", Value="ar"},
|
||||
new LocalizatonOption{ Name="Bulgarian (Bulgaria)", Value="bg-BG"},
|
||||
@@ -421,7 +421,7 @@ namespace Emby.Server.Implementations.Localization
|
||||
new LocalizatonOption{ Name="Ukrainian", Value="uk"},
|
||||
new LocalizatonOption{ Name="Vietnamese", Value="vi"}
|
||||
|
||||
}.OrderBy(i => i.Name);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user