[grooveshark] display users playlists only when spli_tpath length is 0
This commit is contained in:
parent
4b9d48a391
commit
d1b5ea7d7d
1 changed files with 6 additions and 5 deletions
|
|
@ -118,11 +118,12 @@ class GroovesharkBackend(BaseBackend, ICapAudio, ICapCollection):
|
||||||
|
|
||||||
def iter_resources(self, objs, split_path):
|
def iter_resources(self, objs, split_path):
|
||||||
with self.browser:
|
with self.browser:
|
||||||
if Playlist in objs:
|
if len(split_path) == 0:
|
||||||
self._restrict_level(split_path)
|
if Playlist in objs:
|
||||||
if self.browser.is_logged():
|
self._restrict_level(split_path)
|
||||||
for item in self.browser.get_all_user_playlists():
|
if self.browser.is_logged():
|
||||||
yield item
|
for item in self.browser.get_all_user_playlists():
|
||||||
|
yield item
|
||||||
|
|
||||||
def validate_collection(self, objs, collection):
|
def validate_collection(self, objs, collection):
|
||||||
if collection.path_level == 0:
|
if collection.path_level == 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue