Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CSmartPlaylistDirectory: fix path for episode smartplaylists

  • Loading branch information...
commit 32a74fa4709aa4914ebf7c9808c423d793aca03e 1 parent ec71659
@Montellese Montellese authored
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();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.