mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 09:04:42 +01:00
fixes #888 - Support m3u8 subtitle playlists
This commit is contained in:
@@ -550,24 +550,28 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
};
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(info.Path))
|
||||
{
|
||||
item.Path = info.Path;
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(info.Url))
|
||||
{
|
||||
item.Path = info.Url;
|
||||
}
|
||||
|
||||
isNew = true;
|
||||
}
|
||||
|
||||
item.RecordingInfo = info;
|
||||
item.ServiceName = serviceName;
|
||||
|
||||
var originalPath = item.Path;
|
||||
|
||||
if (!string.IsNullOrEmpty(info.Path))
|
||||
{
|
||||
item.Path = info.Path;
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(info.Url))
|
||||
{
|
||||
item.Path = info.Url;
|
||||
}
|
||||
|
||||
var pathChanged = !string.Equals(originalPath, item.Path);
|
||||
|
||||
await item.RefreshMetadata(new MetadataRefreshOptions
|
||||
{
|
||||
ForceSave = isNew
|
||||
ForceSave = isNew || pathChanged
|
||||
|
||||
}, cancellationToken);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user