示例#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)
示例#2
0
 def addToPlaylist(self):
     if not interface.isLoggedIn():
         self.login(self.addToPlaylistLogin)
     else:
         self.addToPlaylistReal()
示例#3
0
 def removeFromFavorites(self):
     if not interface.isLoggedIn():
         self.login(self.removeFromFavoritesLogin)
     else:
         self.removeFromFavoritesReal()
示例#4
0
 def removeFromPlaylist(self):
     if not interface.isLoggedIn():
         self.login(self.removeFromPlaylistLogin)
     else:
         self.removeFromPlaylistReal()
示例#5
0
 def addToFavorites(self):
     if not interface.isLoggedIn():
         self.login(self.addToFavoritesLogin)
     else:
         self.addToFavoritesReal()
示例#6
0
	def addToPlaylist(self):
		if not interface.isLoggedIn():
			self.login(self.addToPlaylistLogin)
		else:
			self.addToPlaylistReal()
示例#7
0
	def removeFromPlaylist(self):
		if not interface.isLoggedIn():
			self.login(self.removeFromPlaylistLogin)
		else:
			self.removeFromPlaylistReal()
示例#8
0
	def removeFromFavorites(self):
		if not interface.isLoggedIn():
			self.login(self.removeFromFavoritesLogin)
		else:
			self.removeFromFavoritesReal()
示例#9
0
	def addToFavorites(self):
		if not interface.isLoggedIn():
			self.login(self.addToFavoritesLogin)
		else:
			self.addToFavoritesReal()