aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-03-20 14:43:16 -0400
committerLuke <luke.pulverenti@gmail.com>2016-03-20 14:43:16 -0400
commit7caed86e853e4181750f2058266c83f751a14b47 (patch)
tree2b6ddbb271746092ad8c93a00062f57147fee0f9 /MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
parent3bd850200b82b3c54582589ba002fba2a7a1a0ab (diff)
parent6807b2dd71d8a7ece0c1809449fffa78d4d62d3a (diff)
Merge pull request #1567 from MediaBrowser/dev
update playlist querying
Diffstat (limited to 'MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
index 1eaff1a6a..491f2c116 100644
--- a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
+++ b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
@@ -19,6 +19,7 @@ using System.Runtime.Serialization;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Controller.Channels;
+using MediaBrowser.Controller.Playlists;
using MediaBrowser.Model.LiveTv;
namespace MediaBrowser.Server.Implementations.Persistence
@@ -729,10 +730,12 @@ namespace MediaBrowser.Server.Implementations.Persistence
var topParent = item.GetTopParent();
if (topParent != null)
{
+ //Logger.Debug("Item {0} has top parent {1}", item.Id, topParent.Id);
_saveItemCommand.GetParameter(index++).Value = topParent.Id.ToString("N");
}
else
{
+ //Logger.Debug("Item {0} has null top parent", item.Id);
_saveItemCommand.GetParameter(index++).Value = null;
}
@@ -2199,6 +2202,8 @@ namespace MediaBrowser.Server.Implementations.Persistence
typeof(MusicGenre),
typeof(MusicVideo),
typeof(Movie),
+ typeof(Playlist),
+ typeof(AudioPodcast),
typeof(Trailer),
typeof(BoxSet),
typeof(Episode),