2007-05-24, 03:01
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!
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!