Skip to content
Browse files

CSmartPlaylistDirectory: fix path for episode smartplaylists

  • Loading branch information...
1 parent ec71659 commit 32a74fa4709aa4914ebf7c9808c423d793aca03e @Montellese Montellese committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 xbmc/filesystem/SmartPlaylistDirectory.cpp
View
8 xbmc/filesystem/SmartPlaylistDirectory.cpp
@@ -107,6 +107,14 @@ namespace XFILE
CDatabase::Filter dbfilter;
success = db.GetSortedVideos(mediaType, videoUrl.ToString(), sorting, items, dbfilter, true);
+
+ // if we retrieve a list of episodes and we didn't receive
+ // a pre-defined base path, we need to fix it
+ if (strBaseDir.empty() && mediaType == MediaTypeEpisode)
+ {
+ videoUrl.AppendPath("-1/-1/");
+ items.SetPath(videoUrl.ToString());
+ }
db.Close();
}
}

0 comments on commit 32a74fa

Please sign in to comment.
Something went wrong with that request. Please try again.