check path

This commit is contained in:
Luke Pulverenti
2018-02-23 10:55:20 -05:00
parent 3ea34509aa
commit a7014dd1b8
2 changed files with 6 additions and 4 deletions
@@ -2,8 +2,8 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<AssemblyVersion>3.1.6</AssemblyVersion>
<FileVersion>3.1.6</FileVersion>
<AssemblyVersion>3.1.8</AssemblyVersion>
<FileVersion>3.1.8</FileVersion>
</PropertyGroup>
<ItemGroup>
@@ -223,6 +223,8 @@ namespace MediaBrowser.Plugins.VuPlus
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.VuPlus
{
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
}
},