What is the best skin for youtube2 script? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +--- Thread: What is the best skin for youtube2 script? (/showthread.php?tid=26546) |
What is the best skin for youtube2 script? - murf43143 - 2007-05-24 When I use this script (the new one from on here), and load it up because everyone at the house loves it, I can only get a few of my favs from my account to list. Also, the searches only show one page of results. I have seen posts on here from other people who have had problems, but I am unsure if it is the same situation. Also, I would I be able to save my user name and password in this area of default.py if I wanted my user to login always. ------------------------------------------------------- def login(self, username=None, password=None): """Get username and password from the user and try to login.""" ret = False if username is None: username = xbmcutils.gui.get_input('Username') if password is None: password = xbmcutils.gui.get_input('Password', hidden=True) try: ret = self.yt.login(username, password) except DownloadAbort, e: # Just fall through as ret defaults to False pass except DownloadError, e: err_dlg = xbmcgui.Dialog() err_dlg.ok('YouTube', 'There was an error.', e.value) return ret ------------------------------------------------------- Thank you for the help! - murf43143 - 2007-05-24 Or actually now that I am looking at it, could I just change this line of code def login(self, username=None, password=None): before it starts the if,then sequence? Thank you so much! murf43143 |