Skip to content
This repository
Browse code

CSmartPlaylistDirectory: fix path for episode smartplaylists

  • Loading branch information...
commit 32a74fa4709aa4914ebf7c9808c423d793aca03e 1 parent ec71659
Sascha Montellese authored
8  xbmc/filesystem/SmartPlaylistDirectory.cpp
@@ -107,6 +107,14 @@ namespace XFILE
107 107
         
108 108
         CDatabase::Filter dbfilter;
109 109
         success = db.GetSortedVideos(mediaType, videoUrl.ToString(), sorting, items, dbfilter, true);
  110
+
  111
+        // if we retrieve a list of episodes and we didn't receive
  112
+        // a pre-defined base path, we need to fix it
  113
+        if (strBaseDir.empty() && mediaType == MediaTypeEpisode)
  114
+        {
  115
+          videoUrl.AppendPath("-1/-1/");
  116
+          items.SetPath(videoUrl.ToString());
  117
+        }
110 118
         db.Close();
111 119
       }
112 120
     }

0 notes on commit 32a74fa

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