aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-01 22:44:52 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-01 22:44:52 -0400
commitb11d06f36f31317f072e6cd1a27bd7d06b5f0c17 (patch)
treea8144b47e8a7eb11e0e0b74b386f1e7912f420b1 /MediaBrowser.Controller
parente9cfa6cd267786f8fd97ef2aeb88941c98c8aacf (diff)
more work on streaming remotely
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/Entities/BasePluginFolder.cs13
-rw-r--r--MediaBrowser.Controller/Entities/Video.cs7
-rw-r--r--MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs5
3 files changed, 22 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Entities/BasePluginFolder.cs b/MediaBrowser.Controller/Entities/BasePluginFolder.cs
index ca6cfd246..bf8040a9f 100644
--- a/MediaBrowser.Controller/Entities/BasePluginFolder.cs
+++ b/MediaBrowser.Controller/Entities/BasePluginFolder.cs
@@ -29,8 +29,21 @@ namespace MediaBrowser.Controller.Entities
{
base.Id = value;
}
+ }
+
+ /// <summary>
+ /// Gets or sets the type of the location.
+ /// </summary>
+ /// <value>The type of the location.</value>
+ public override LocationType LocationType
+ {
+ get
+ {
+ return LocationType.Virtual;
+ }
}
+
/// <summary>
/// We don't resolve normally so need to fill this in
/// </summary>
diff --git a/MediaBrowser.Controller/Entities/Video.cs b/MediaBrowser.Controller/Entities/Video.cs
index b3ed21b19..bac29f0f5 100644
--- a/MediaBrowser.Controller/Entities/Video.cs
+++ b/MediaBrowser.Controller/Entities/Video.cs
@@ -11,6 +11,13 @@ namespace MediaBrowser.Controller.Entities
/// </summary>
public class Video : BaseItem, IHasMediaStreams
{
+ public Video()
+ {
+ MediaStreams = new List<MediaStream>();
+ Chapters = new List<ChapterInfo>();
+ PlayableStreamFileNames = new List<string>();
+ }
+
/// <summary>
/// Gets or sets the type of the video.
/// </summary>
diff --git a/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs b/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs
index cb3445dd3..5a9f5890e 100644
--- a/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs
+++ b/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs
@@ -1,14 +1,13 @@
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
-using MediaBrowser.Controller.IO;
using MediaBrowser.Model.Entities;
+using MediaBrowser.Model.Logging;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
-using MediaBrowser.Model.Logging;
namespace MediaBrowser.Controller.Providers
{
@@ -29,7 +28,7 @@ namespace MediaBrowser.Controller.Providers
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
public override bool Supports(BaseItem item)
{
- return item.ResolveArgs.IsDirectory && item.LocationType == LocationType.FileSystem;
+ return item.LocationType == LocationType.FileSystem && item.ResolveArgs.IsDirectory;
}
/// <summary>