mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-26 03:55:01 +01:00
update isavc condition
This commit is contained in:
@@ -1055,6 +1055,22 @@ namespace MediaBrowser.Model.Dlna
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ProfileConditionValue.IsAvc:
|
||||
{
|
||||
bool isAvc;
|
||||
if (bool.TryParse(value, out isAvc))
|
||||
{
|
||||
if (isAvc && condition.Condition == ProfileConditionType.Equals)
|
||||
{
|
||||
item.RequireAvc = true;
|
||||
}
|
||||
else if (!isAvc && condition.Condition == ProfileConditionType.NotEquals)
|
||||
{
|
||||
item.RequireAvc = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ProfileConditionValue.IsAnamorphic:
|
||||
case ProfileConditionValue.AudioProfile:
|
||||
case ProfileConditionValue.Has64BitOffsets:
|
||||
@@ -1135,6 +1151,8 @@ namespace MediaBrowser.Model.Dlna
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
public string VideoCodec { get; set; }
|
||||
public string VideoProfile { get; set; }
|
||||
|
||||
public bool RequireAvc { get; set; }
|
||||
public bool CopyTimestamps { get; set; }
|
||||
public bool EnableSubtitlesInManifest { get; set; }
|
||||
public bool EnableSplittingOnNonKeyFrames { get; set; }
|
||||
@@ -266,6 +267,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
|
||||
list.Add(new NameValuePair("Tag", item.MediaSource.ETag ?? string.Empty));
|
||||
list.Add(new NameValuePair("EnableSplittingOnNonKeyFrames", item.EnableSplittingOnNonKeyFrames.ToString().ToLower()));
|
||||
list.Add(new NameValuePair("RequireAvc", item.RequireAvc.ToString().ToLower()));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user