mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-26 20:16:33 +00:00
fixes #859 - Support adaptive bitrate streaming
This commit is contained in:
@@ -77,9 +77,11 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(_config.Configuration.ChannelOptions.DownloadPath))
|
||||
var options = _config.GetChannelsConfiguration();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(options.DownloadPath))
|
||||
{
|
||||
return _config.Configuration.ChannelOptions.DownloadPath;
|
||||
return options.DownloadPath;
|
||||
}
|
||||
|
||||
return Path.Combine(_config.ApplicationPaths.ProgramDataPath, "channels");
|
||||
@@ -374,7 +376,9 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||
{
|
||||
var list = channelMediaSources.ToList();
|
||||
|
||||
var width = _config.Configuration.ChannelOptions.PreferredStreamingWidth;
|
||||
var options = _config.GetChannelsConfiguration();
|
||||
|
||||
var width = options.PreferredStreamingWidth;
|
||||
|
||||
if (width.HasValue)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user