From d1b5ea7d7d547a28c0539a010b5f97001ba25b49 Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Thu, 19 Jun 2014 17:59:23 +0200 Subject: [PATCH] [grooveshark] display users playlists only when spli_tpath length is 0 --- modules/grooveshark/backend.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/grooveshark/backend.py b/modules/grooveshark/backend.py index f5c3f96445..3791c14c2d 100644 --- a/modules/grooveshark/backend.py +++ b/modules/grooveshark/backend.py @@ -118,11 +118,12 @@ def get_playlist(self, _id): 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: -- GitLab