check path
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
|
||||||
<AssemblyVersion>3.1.6</AssemblyVersion>
|
<AssemblyVersion>3.1.8</AssemblyVersion>
|
||||||
<FileVersion>3.1.6</FileVersion>
|
<FileVersion>3.1.8</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -223,6 +223,8 @@ namespace MediaBrowser.Plugins.VuPlus
|
|||||||
|
|
||||||
private ChannelItemInfo ConvertToChannelItem(MyRecordingInfo item)
|
private ChannelItemInfo ConvertToChannelItem(MyRecordingInfo item)
|
||||||
{
|
{
|
||||||
|
var path = string.IsNullOrEmpty(item.Path) ? item.Url : item.Path;
|
||||||
|
|
||||||
var channelItem = new ChannelItemInfo
|
var channelItem = new ChannelItemInfo
|
||||||
{
|
{
|
||||||
Name = string.IsNullOrEmpty(item.EpisodeTitle) ? item.Name : item.EpisodeTitle,
|
Name = string.IsNullOrEmpty(item.EpisodeTitle) ? item.Name : item.EpisodeTitle,
|
||||||
@@ -240,8 +242,8 @@ namespace MediaBrowser.Plugins.VuPlus
|
|||||||
{
|
{
|
||||||
new MediaSourceInfo
|
new MediaSourceInfo
|
||||||
{
|
{
|
||||||
Path = item.Path,
|
Path = path,
|
||||||
Protocol = item.Path.StartsWith("http", StringComparison.OrdinalIgnoreCase) ? MediaProtocol.Http : MediaProtocol.File,
|
Protocol = path.StartsWith("http", StringComparison.OrdinalIgnoreCase) ? MediaProtocol.Http : MediaProtocol.File,
|
||||||
Id = item.Id
|
Id = item.Id
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user