Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/1fe82d0debd1b3b126387113715944e9c42e866a You should set ROOT_URL correctly, otherwise the web may not work correctly.

Add TranscodingProfile conditions

pull/7198/head
Dmitry Lyzo 3 years ago
parent 588c349eb4
commit 1fe82d0deb

@ -699,6 +699,7 @@ namespace MediaBrowser.Model.Dlna
if (playlistItem.PlayMethod != PlayMethod.DirectPlay)
{
playlistItem.PlayMethod = PlayMethod.Transcode;
ApplyTranscodingConditions(playlistItem, transcodingProfile.Conditions, null, true, true);
}
}
}

@ -1,5 +1,6 @@
#pragma warning disable CS1591
using System;
using System.ComponentModel;
using System.Xml.Serialization;
@ -7,6 +8,11 @@ namespace MediaBrowser.Model.Dlna
{
public class TranscodingProfile
{
public TranscodingProfile()
{
Conditions = Array.Empty<ProfileCondition>();
}
[XmlAttribute("container")]
public string Container { get; set; } = string.Empty;
@ -61,6 +67,8 @@ namespace MediaBrowser.Model.Dlna
[XmlAttribute("breakOnNonKeyFrames")]
public bool BreakOnNonKeyFrames { get; set; }
public ProfileCondition[] Conditions { get; set; }
public string[] GetAudioCodecs()
{
return ContainerProfile.SplitValue(AudioCodec);

Loading…
Cancel
Save