I am unable to login to the YouTube plugin. When trying to log-in with 2-factor authentication, I type the password and are prompted for the 2-factor key, which I then enter. Then I get the error: Error - Script Failed: plugin.video.youtube
I've plugged the following from the xbmc.log:
Code:
15:01:00 T:4928 NOTICE: Loading cookies from :'C:\\Users\\USERNAME\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\plugin.video.youtube\\yt-cookiejar.txt'
15:01:00 T:4928 NOTICE: YouTube-4.4.6
15:01:01 T:4928 NOTICE: CommonFunctions-2.5.1
15:01:50 T:4928 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "C:\Users\USERNAME\AppData\Roaming\XBMC\addons\plugin.video.youtube\default.py", line 111, in <module>
login.login()
File "C:\Users\USERNAME\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeLogin.py", line 75, in login
result, status = self.authorize()
File "C:\Users\USERNAME\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeLogin.py", line 85, in authorize
(result, status) = self._httpLogin({"new": "true"})
File "C:\Users\USERNAME\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeLogin.py", line 239, in _httpLogin
fetch_options = {"link": new_part[0].replace("&", "&"), "url_data": url_data, "referer": ret["location"]}
IndexError: list index out of range
-->End of Python script error report<--
15:01:50 T:4064 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.youtube
15:01:50 T:4064 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube) failed
I've already tried the following:
Uninstalled the YouTube plugin, then deleted the
%AppData%\XBMC\userdata\addon_data\plugin.video.youtube folder (which did not contain the t_cookiejar.txt file, only the settings.xml file), then exited XBMC. Then I started XBMC, installed YouTube plugin and tried logging in again, with the same result (failed).
I am using a Google Apps account (basically Gmail with my own domain), to which my YouTube account is connected. I have a long password (16 characters, which includes uppercase, lowercase, numbers and specials). I'm using 2-factor authentication.
Hope someone can help.