[Grooveshark] declare user_id as an instance variable

This commit is contained in:
Bezleputh 2013-10-16 23:20:52 +02:00 committed by Florent Fourcot
commit 13ec5aca4f
2 changed files with 4 additions and 6 deletions

View file

@ -68,7 +68,7 @@ class GroovesharkBackend(BaseBackend, ICapVideo, ICapCollection):
collection = self.get_collection(objs, split_path)
if collection.path_level == 0:
yield Collection([u'albums'], u'Search for Albums')
if self.browser.is_logged:
if self.browser.is_logged():
yield Collection([u'playlists'], u'Grooveshark Playlists')
if collection.path_level == 1:
if collection.split_path[0] == u'playlists':