Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/src/commit/3212338802621c205003bb602b40982093aa9130/MediaBrowser.Server.Implementations/Sync/SyncHelper.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
jellyfin/MediaBrowser.Server.Impleme.../Sync/SyncHelper.cs

25 lines
770 B

using System;
namespace MediaBrowser.Server.Implementations.Sync
{
public class SyncHelper
{
public static int? AdjustBitrate(int? profileBitrate, string quality)
{
if (profileBitrate.HasValue)
{
if (string.Equals(quality, "medium", StringComparison.OrdinalIgnoreCase))
{
profileBitrate = Math.Min(Convert.ToInt32(profileBitrate.Value * .7), 4000000);
}
else if (string.Equals(quality, "low", StringComparison.OrdinalIgnoreCase))
{
profileBitrate = Math.Min(Convert.ToInt32(profileBitrate.Value * .5), 1500000);
}
}
return profileBitrate;
}
}
}