mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-29 20:24:47 +03:00
update main projects
This commit is contained in:
@@ -282,12 +282,10 @@ namespace MediaBrowser.Controller.Entities
|
||||
|
||||
public IEnumerable<Video> GetLinkedAlternateVersions()
|
||||
{
|
||||
var linkedVersions = LinkedAlternateVersions
|
||||
return LinkedAlternateVersions
|
||||
.Select(GetLinkedChild)
|
||||
.Where(i => i != null)
|
||||
.OfType<Video>();
|
||||
|
||||
return linkedVersions
|
||||
.OfType<Video>()
|
||||
.OrderBy(i => i.SortName);
|
||||
}
|
||||
|
||||
@@ -630,21 +628,24 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
info.Path = media.ShortcutPath;
|
||||
|
||||
if (info.Path.StartsWith("Http", StringComparison.OrdinalIgnoreCase))
|
||||
if (!string.IsNullOrWhiteSpace(info.Path))
|
||||
{
|
||||
info.Protocol = MediaProtocol.Http;
|
||||
}
|
||||
else if (info.Path.StartsWith("Rtmp", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
info.Protocol = MediaProtocol.Rtmp;
|
||||
}
|
||||
else if (info.Path.StartsWith("Rtsp", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
info.Protocol = MediaProtocol.Rtsp;
|
||||
}
|
||||
else
|
||||
{
|
||||
info.Protocol = MediaProtocol.File;
|
||||
if (info.Path.StartsWith("Http", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
info.Protocol = MediaProtocol.Http;
|
||||
}
|
||||
else if (info.Path.StartsWith("Rtmp", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
info.Protocol = MediaProtocol.Rtmp;
|
||||
}
|
||||
else if (info.Path.StartsWith("Rtsp", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
info.Protocol = MediaProtocol.Rtsp;
|
||||
}
|
||||
else
|
||||
{
|
||||
info.Protocol = MediaProtocol.File;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user