check path

This commit is contained in:
Luke Pulverenti 2018-02-23 10:38:08 -05:00
parent 1ba6c662f3
commit ae609bf5d1
2 changed files with 6 additions and 4 deletions

View File

@ -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>

View File

@ -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
}
},