Commit d1b5ea7d authored by Bezleputh's avatar Bezleputh

[grooveshark] display users playlists only when spli_tpath length is 0

parent 4b9d48a3
......@@ -118,11 +118,12 @@ class GroovesharkBackend(BaseBackend, ICapAudio, ICapCollection):
def iter_resources(self, objs, split_path):
with self.browser:
if Playlist in objs:
self._restrict_level(split_path)
if self.browser.is_logged():
for item in self.browser.get_all_user_playlists():
yield item
if len(split_path) == 0:
if Playlist in objs:
self._restrict_level(split_path)
if self.browser.is_logged():
for item in self.browser.get_all_user_playlists():
yield item
def validate_collection(self, objs, collection):
if collection.path_level == 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment