2014-09-22, 10:47
--------------------------JUST for the records ----------------------------------------------------------------
For those of you having problems with login/selecting the right youtube channel.
-------------------------------------------------------------------------------------------------------------------------
Since YouTube (YT) switched to Google Plus authentication I was no longer able to use my "default" Youtube account.
Instead on YT all my history/favourites/playlists etc. where empty since the XBMC YT Plugin was using the
new default Google Plus account for YT login.
To fix this I tried several suggestions to create the OAuth2 token manually. (e.g. like described here:
(in german) http://somepython.wordpress.com/2014/02/...gle-oauth/
or
http://forum.xbmc.org/showthread.php?tid...pid1613551)
The problem with these kind of suggestions is the need of the token to be renewed after e.g. 1 hour.
After that time the plugin will automatically renew the token and use the wrong account/token again ;-(
The fix is relatively easy. Just login into your YT account:
https://accounts.google.com/ServiceLogin?service=lso
and check which account you want to use for your YT XBMC plugin. All you need is the index of
the account you want to use. Per default the XBMC YT plugin is using the first account (this means: index=0).
If you want to use another of your account (e.g. the second one) - just change the index in the XBMC YT plugin file:
.xbmc/addons/plugin.video.youtube/YouTubeLogin.py
For version 4.4.10 of the plugin it's around line 115: Just change
fetch_options = {"link": acurl[0].replace("&", "&")}
to
fetch_options = {"link": acurl[1].replace("&", "&")}
if you want to use your second account. (or another appropriate index)
After changing the access token information in the settings.xml file (.xbmc/userdata/addon_data/plugin.video.youtube/settings.xml to
<setting id="oauth2_access_token" value="" />
<setting id="oauth2_expires_at" value="" />
<setting id="oauth2_refresh_token" value="" />
the YT XBMC plugin will need to Login again into your YT account and retrieve the correct tokens for the YT account you have selected.
Also the renew of the token will work.
Hope this short memo help others with the same problem. For the developers of the plugin: It should be easy to add a
setting in the settings.xml to define which YT account should be used.
Cheers,
DerIng
For those of you having problems with login/selecting the right youtube channel.
-------------------------------------------------------------------------------------------------------------------------
Since YouTube (YT) switched to Google Plus authentication I was no longer able to use my "default" Youtube account.
Instead on YT all my history/favourites/playlists etc. where empty since the XBMC YT Plugin was using the
new default Google Plus account for YT login.
To fix this I tried several suggestions to create the OAuth2 token manually. (e.g. like described here:
(in german) http://somepython.wordpress.com/2014/02/...gle-oauth/
or
http://forum.xbmc.org/showthread.php?tid...pid1613551)
The problem with these kind of suggestions is the need of the token to be renewed after e.g. 1 hour.
After that time the plugin will automatically renew the token and use the wrong account/token again ;-(
The fix is relatively easy. Just login into your YT account:
https://accounts.google.com/ServiceLogin?service=lso
and check which account you want to use for your YT XBMC plugin. All you need is the index of
the account you want to use. Per default the XBMC YT plugin is using the first account (this means: index=0).
If you want to use another of your account (e.g. the second one) - just change the index in the XBMC YT plugin file:
.xbmc/addons/plugin.video.youtube/YouTubeLogin.py
For version 4.4.10 of the plugin it's around line 115: Just change
fetch_options = {"link": acurl[0].replace("&", "&")}
to
fetch_options = {"link": acurl[1].replace("&", "&")}
if you want to use your second account. (or another appropriate index)
After changing the access token information in the settings.xml file (.xbmc/userdata/addon_data/plugin.video.youtube/settings.xml to
<setting id="oauth2_access_token" value="" />
<setting id="oauth2_expires_at" value="" />
<setting id="oauth2_refresh_token" value="" />
the YT XBMC plugin will need to Login again into your YT account and retrieve the correct tokens for the YT account you have selected.
Also the renew of the token will work.
Hope this short memo help others with the same problem. For the developers of the plugin: It should be easy to add a
setting in the settings.xml to define which YT account should be used.
Cheers,
DerIng