mirror of
https://github.com/jellyfin/jellyfin-plugin-nextpvr.git
synced 2024-11-23 14:09:44 +00:00
check path
This commit is contained in:
parent
1ba6c662f3
commit
ae609bf5d1
@ -2,8 +2,8 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard1.3;</TargetFrameworks>
|
||||
<AssemblyVersion>3.2.5.0</AssemblyVersion>
|
||||
<FileVersion>3.2.5.0</FileVersion>
|
||||
<AssemblyVersion>3.2.6.0</AssemblyVersion>
|
||||
<FileVersion>3.2.6.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -223,6 +223,8 @@ namespace MediaBrowser.Plugins.NextPvr
|
||||
|
||||
private ChannelItemInfo ConvertToChannelItem(MyRecordingInfo item)
|
||||
{
|
||||
var path = string.IsNullOrEmpty(item.Path) ? item.Url : item.Path;
|
||||
|
||||
var channelItem = new ChannelItemInfo
|
||||
{
|
||||
Name = string.IsNullOrEmpty(item.EpisodeTitle) ? item.Name : item.EpisodeTitle,
|
||||
@ -240,8 +242,8 @@ namespace MediaBrowser.Plugins.NextPvr
|
||||
{
|
||||
new MediaSourceInfo
|
||||
{
|
||||
Path = item.Path,
|
||||
Protocol = item.Path.StartsWith("http", StringComparison.OrdinalIgnoreCase) ? MediaProtocol.Http : MediaProtocol.File,
|
||||
Path = path,
|
||||
Protocol = path.StartsWith("http", StringComparison.OrdinalIgnoreCase) ? MediaProtocol.Http : MediaProtocol.File,
|
||||
Id = item.Id
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user