Exemplo n.º 1
0
	def searchDialogClosed(self, what, searchContext = None):
		print "[YTB] searchDialogClosed: ", what
		if what == SEARCH:
			dlg = self.session.openWithCallback(self.youTubeListScreenClosed, YouTubeListScreen)
			dlg.searchFeed(searchContext)
		elif what == CANCEL:
			interface.close()
		elif what == STDFEEDS:
			self.openStandardFeeds()
		else:
			if what == PLAYLISTS:
				callback = self.openPlaylists
			elif what == FAVORITES:
				callback = self.openFavorites
			if not interface.isLoggedIn():
				self.session.openWithCallback(callback, YouTubeUserListScreen, youTubeUserConfig.getDefaultUser())
			else:
				callback(YouTubeUserListScreen.LOGIN_SUCCESS)
Exemplo n.º 2
0
 def addToPlaylist(self):
     if not interface.isLoggedIn():
         self.login(self.addToPlaylistLogin)
     else:
         self.addToPlaylistReal()
Exemplo n.º 3
0
 def removeFromFavorites(self):
     if not interface.isLoggedIn():
         self.login(self.removeFromFavoritesLogin)
     else:
         self.removeFromFavoritesReal()
Exemplo n.º 4
0
 def removeFromPlaylist(self):
     if not interface.isLoggedIn():
         self.login(self.removeFromPlaylistLogin)
     else:
         self.removeFromPlaylistReal()
Exemplo n.º 5
0
 def addToFavorites(self):
     if not interface.isLoggedIn():
         self.login(self.addToFavoritesLogin)
     else:
         self.addToFavoritesReal()
Exemplo n.º 6
0
	def addToPlaylist(self):
		if not interface.isLoggedIn():
			self.login(self.addToPlaylistLogin)
		else:
			self.addToPlaylistReal()
Exemplo n.º 7
0
	def removeFromPlaylist(self):
		if not interface.isLoggedIn():
			self.login(self.removeFromPlaylistLogin)
		else:
			self.removeFromPlaylistReal()
Exemplo n.º 8
0
	def removeFromFavorites(self):
		if not interface.isLoggedIn():
			self.login(self.removeFromFavoritesLogin)
		else:
			self.removeFromFavoritesReal()
Exemplo n.º 9
0
	def addToFavorites(self):
		if not interface.isLoggedIn():
			self.login(self.addToFavoritesLogin)
		else:
			self.addToFavoritesReal()