•   
  • 1
  • 219
  • 220
  • 221(current)
  • 222
  • 223
  • 258
  •   
  Thread Closed
Release -  YouTube (IMPORTANT - READ FIRST POST)
Yes, you are right. My Subscriptions still doesn't work though... why the heck is that?

I put in my generated keys for:

youtube-tv (line 12 in login_client.py)
youtube-for-kodi-quota (line 19)
youtube-for-kodi-fallback (line 26)
youtube-for-kodi-16 (line 57)

Everything seems to work, except for My Subscriptions, that return a blank list.

Tried activating debug log, there's no warning or error displayed. The plugin simply returns an empty list as if there were no videos for my subscriptions.

This is everything shown from me entering the plugin, selecting My Subscriptions and then exiting:
Code:
12:59:07 T:102592   DEBUG: CInputManager::OnKey: return (0xf00d) pressed, action is Select
12:59:07 T:102592   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.youtube/)
12:59:07 T:102592   DEBUG:   ParentPath = [addons://sources/video]
12:59:07 T:100860   DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin YouTube('plugin://plugin.video.youtube/','1','')
12:59:07 T:100860   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the YouTube (id=1) plugin...
12:59:07 T:101600   DEBUG: Thread LanguageInvoker start, auto delete: false
12:59:07 T:101600    INFO: initializing python engine.
12:59:07 T:101600   DEBUG: CPythonInvoker(1, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): start processing
12:59:07 T:101600   DEBUG: -->Python Interpreter Initialized<--
12:59:07 T:101600   DEBUG: CPythonInvoker(1, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): the source file to load is "C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py"
12:59:07 T:101600   DEBUG: CPythonInvoker(1, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): setting the Python path to C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
12:59:07 T:101600   DEBUG: CPythonInvoker(1, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): entering source directory C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube
12:59:07 T:101600   DEBUG: CPythonInvoker(1, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 2.1.0 of the xbmc.python api
12:59:07 T:101600   DEBUG: [plugin.video.youtube] Starting Kodion framework by bromix...
12:59:07 T:101600  NOTICE: [plugin.video.youtube] Running: YouTube (5.1.16) on Jarvis (16.0) with Python 2.7.8
12:59:07 T:101600   DEBUG: [plugin.video.youtube] Path: "/
12:59:07 T:101600   DEBUG: [plugin.video.youtube] Params: "{}"
12:59:07 T:101600   DEBUG: [plugin.video.youtube] Selecting YouTube config "Jarvis"
12:59:07 T:101600   DEBUG: [plugin.video.youtube] User is logged in
12:59:07 T:101600   DEBUG: POParser: loaded 100 strings from file C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\language\English\strings.po
12:59:07 T:101600   DEBUG: [plugin.video.youtube] No data for channel 'mine' cached
12:59:07 T:100860   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult- plugin returned successfully
12:59:07 T:101600   DEBUG: [plugin.video.youtube] Override view mode to "50"
12:59:07 T:101600   DEBUG: [plugin.video.youtube] Shutdown of Kodion
12:59:07 T:101600    INFO: CPythonInvoker(1, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): script successfully run
12:59:07 T:92680   DEBUG: Thread BackgroundLoader start, auto delete: false
12:59:07 T:101600    INFO: Python script stopped
12:59:07 T:101600   DEBUG: Thread LanguageInvoker 101600 terminating
12:59:07 T:92680   DEBUG: Thread BackgroundLoader 92680 terminating
12:59:08 T:102592   DEBUG: Keyboard: scancode: 0x50, sym: 0x0112, unicode: 0x0000, modifier: 0x0
12:59:08 T:102592   DEBUG: CInputManager::OnKey: down (0xf081) pressed, action is Down
12:59:09 T:102592   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0
12:59:09 T:102592   DEBUG: CInputManager::OnKey: return (0xf00d) pressed, action is Select
12:59:09 T:102592   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.youtube/special/new_uploaded_videos_tv/)
12:59:09 T:102592   DEBUG:   ParentPath = [plugin://plugin.video.youtube/]
12:59:09 T:100860   DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin YouTube('plugin://plugin.video.youtube/special/new_uploaded_videos_tv/','2','')
12:59:09 T:100860   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the YouTube (id=2) plugin...
12:59:09 T:103408   DEBUG: Thread LanguageInvoker start, auto delete: false
12:59:09 T:103408    INFO: initializing python engine.
12:59:09 T:103408   DEBUG: CPythonInvoker(2, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): start processing
12:59:09 T:103408   DEBUG: -->Python Interpreter Initialized<--
12:59:09 T:103408   DEBUG: CPythonInvoker(2, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): the source file to load is "C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py"
12:59:09 T:103408   DEBUG: CPythonInvoker(2, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): setting the Python path to C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
12:59:09 T:103408   DEBUG: CPythonInvoker(2, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): entering source directory C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube
12:59:09 T:103408   DEBUG: CPythonInvoker(2, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 2.1.0 of the xbmc.python api
12:59:09 T:103408   DEBUG: [plugin.video.youtube] Starting Kodion framework by bromix...
12:59:09 T:103408  NOTICE: [plugin.video.youtube] Running: YouTube (5.1.16) on Jarvis (16.0) with Python 2.7.8
12:59:09 T:103408   DEBUG: [plugin.video.youtube] Path: "/special/new_uploaded_videos_tv/
12:59:09 T:103408   DEBUG: [plugin.video.youtube] Params: "{}"
12:59:09 T:103408   DEBUG: [plugin.video.youtube] Selecting YouTube config "Jarvis"
12:59:09 T:103408   DEBUG: [plugin.video.youtube] User is logged in
12:59:09 T:103408   DEBUG: [plugin.video.youtube] Setting content-type: "episodes" for "/special/new_uploaded_videos_tv/"
12:59:09 T:102592   DEBUG: ------ Window Init (DialogBusy.xml) ------
12:59:10 T:100860   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult- plugin returned successfully
12:59:10 T:103408   DEBUG: [plugin.video.youtube] Override view mode to "50"
12:59:10 T:103408   DEBUG: [plugin.video.youtube] Shutdown of Kodion
12:59:10 T:103408    INFO: CPythonInvoker(2, C:\Users\ashlar\AppData\Roaming\Kodi\addons\plugin.video.youtube\default.py): script successfully run
12:59:10 T:103408    INFO: Python script stopped
For troubleshooting and bug reporting please make sure you read this first.
Why did bromix delete the source?!!!
Hmmm... tried starting from scratch. Success.

Basically, I installed parcel's version (5.1.18c), substituted my credentials for relevant Kodi version *and* for youtube-for-kodi-quota. Now all works fine.

What I don't understand is why placing my credentials in the youtube-tv entry makes My Subscriptions stop working.

This is what parcel has from line 16 to line 21 in login_client.py:
Code:
'youtube-tv': {
    'system': 'All',
    'key': 'AIzaSyAd-YEOqZz9nXVzGtn3KWzYLbLaajhqIDA',
    'id': '861556708454-d6dlm3lh05idd8npek18k6be8ba3oc68.apps.googleusercontent.com',
    'secret': 'SboVhoG9s0rNafixCSGGKXAT'
},

If I put key, id, and secret as per my credentials (which I do for youtube-for-kodi-quota and youtube-for-kodi-16), My Subscriptions doesn't work anymore. Parcel, what's the option to select in Google's API manager page to have them working. I don't want to depend on a generic set of keys anymore.

Thank you. Smile
For troubleshooting and bug reporting please make sure you read this first.
I am also having problems with the YouTube addon, where "My Subscriptions" is empty, and I am also not able to log out.

Could anyone compile a zip archive with a version of the addon that works as I'm a complete noob when it comes to this.
Based on the work of finalmakerr and parcel alias rasberryrabbit. This is the final fix for YouTube plugin. Now everything is working.
I have generated new API for every section, expect youtube-tv. In this case, we use the API of YouTube TV.

You can download from here
https://drive.google.com/file/d/0B_QaKV3...sp=sharing

I maintained the original dev name. If the Kodi Team want, i can give the email with password where i have generated the new API.

Thanks anyone for their contribution. I hope this can help anyone that want back YouTube and isn't able to fix.

Remember

Delete the folder on your userdata plugin.video.youtube. You can found the location here Userdata (wiki)
(2016-02-24, 05:26)smpn Wrote: I wish the YouTube plugin was maintained by the core devs, it's very important to many people... I hope it's under consideration

that'd indeed be nice, but i guess, they already have enough subjects to take care off - plus everybody should keep in mind, that this addon might always need a lot of caretaking, as it avoids YT's (aka google's) core business: ads... you all certainly recognized the ongoing discussions on ad blockers, which are contradictory not only to YT's business model but in the end also harm the content creators themselves and thus, us as the audience of all the free content. very complicated and ambigous siuation as also most content creators admit, that they don't like and being annoyed by ads themselves, but never the less existencially depend on this business model...

hence we will always face continous trouble with that kinda adons, as - very understandable from their point of view, but never the less being a major pain in the ass annoyingly ******** - YT & co will try to block out everything that avoids the core goal of their offer... see amazon prime - and that's even a service you definately have to pay for, which i don't have any problems with, even though the offered content mainly sucks to me... the amazon adon worked great - as well in OSMC as in MediaPortal and now? wtf did they close the API for generic client applications, where they even didn't lose money on blocked ads? other story on the lust of controlling everybody and everything... i'd also pay for the subscribed channels, if they are worth it - that might also step up the content's quality as a result of a reasonable (!) competition...

well anyways - i got a little bit off topic... sorry, but these interfering business models simply piss me off.. and i doubt, that this was the final fix as was stated some posts above Big Grin

however: thanks for the work, which again is a free service to all of us...

regards

axel
Obvious, this is only the final fix for this situation. We need a new developer that take care of YT Plugin.
(2016-02-24, 15:49)Kolifanes Wrote: Based on the work of finalmakerr and parcel alias rasberryrabbit. This is the final fix for YouTube plugin. Now everything is working.
I have generated new API for every section, expect youtube-tv. In this case, we use the API of YouTube TV.

You can download from here
https://drive.google.com/file/d/0B_QaKV3...sp=sharing

I maintained the original dev name. If the Kodi Team want, i can give the email with password where i have generated the new API.

Thanks anyone for their contribution. I hope this can help anyone that want back YouTube and isn't able to fix.

Remember

Delete the folder on your userdata plugin.video.youtube. You can found the location here Userdata (wiki)
Hi Kolifanes, I suppose doing what I did (considering I have everything working) should be enough (I described it in my previous post). But I have a question concerning the "API of YouTube TV" thing. Is it possible to generate a key for that from our own account? Considering the number of Kodi users, I'd prefer to only have non-shared credentials to avoid risking quotas, limits, etc.

But I can't find this YouTube TV API anywhere on Google devs website... https://developers.google.com/apis-explo...h/youtube/
For troubleshooting and bug reporting please make sure you read this first.
if i wasn't the old fart that i am and, if i wasn't stuck at the c++ level with my coding knowledge, and if i had any clue of python, and if i had the time - i would...

Confused
(2016-02-24, 16:23)ashlar Wrote: But I can't find this YouTube TV API anywhere on Google devs website... https://developers.google.com/apis-explo...h/youtube/

the main concept you have to understand is, that if you want to use your own application keys with the YT addon, you have to have a google account, register your own development project, then add any application you want to that or a different project you set up, and then obtain the keys and credentials as described in below linked instructions.

to be clear: you have to register a dummy application with google, that then represents your OSMC / KODI installation running the YT addon accessing the YT API - reasonable? Smile

the "youtube tv" application doesn't have its own dedicated API - its an application registered with google using the youtube API V 3.0 as described in this thread. also this video describes everything in depth. finally, here you'll find a list of available google APIs.

generating your own keys for your own applications (as such you would register YOUR personal keys for OSMC/KODI) is been done here and described in detail here.

if you encounter doubtful error messages while trying to fill in the information for the application's consent screen, make sure, your youtbe account is associated with your real name account - this happened to me, as is till have the old account pseudonym and the error messages are just non self explainatory - took me some hours to find the reason.. google at its best...

Sad

does this answer your question?
I have generate the keys for Kodi 12, 13, 14, 15, 16 and 17. And for other parts. The key for YouTube TV, i supposed they have sniffed from an application of Google. I don't know how they got.
So i have fixed also for old release.

Maybe is possible to generate a personal key and is working, i don't know. But better than an official key from Google there isn't.
(2016-02-24, 16:49)Herr R aus B Wrote:
(2016-02-24, 16:23)ashlar Wrote: But I can't find this YouTube TV API anywhere on Google devs website... https://developers.google.com/apis-explo...h/youtube/

the main concept you have to understand is, that if you want to use your own application keys with the YT addon, you have to have a google account, register your own development project, then add any application you want to that or a different project you set up, and then obtain the keys and credentials as described in below linked instructions.

to be clear: you have to register a dummy application with google, that then represents your OSMC / KODI installation running the YT addon accessing the YT API - reasonable? Smile

the "youtube tv" application doesn't have its own dedicated API - its an application registered with google using the youtube API V 3.0 as described in this thread. also this video describes everything in depth. finally, here you'll find a list of available google APIs.

generating your own keys for your own applications (as such you would register YOUR personal keys for OSMC/KODI) is been done here and described in detail here.

if you encounter doubtful error messages while trying to fill in the information for the application's consent screen, make sure, your youtbe account is associated with your real name account - this happened to me, as is till have the old account pseudonym and the error messages are just non self explainatory - took me some hours to find the reason.. google at its best...

Sad

does this answer your question?
Smile No... as I explained, I did all this and generated my keys already. The problem, and Kolifanes got in his last message, is that one of the keys that the plugin uses it's kind of mysterious. If I use the keys I generated from my account, which work just fine for all other purposes, if I use them in the youtube-tv portion of the login_client.py that I pasted here (which shows the generic keys used for all installations of the plugin), the Subscriptions entry gives back an empty list. If I use the generic keys (which will be identical for all users of the plugin, counter to how all other keys work now), Subscriptions work just fine.

It was this I was inquiring about, how Kolifanes got the youtube-tv key. He answered and it basically comes form who know where. Smile
For troubleshooting and bug reporting please make sure you read this first.
(2016-02-24, 15:49)Kolifanes Wrote: Based on the work of finalmakerr and parcel alias rasberryrabbit. This is the final fix for YouTube plugin. Now everything is working.
I have generated new API for every section, expect youtube-tv. In this case, we use the API of YouTube TV.

You can download from here
https://drive.google.com/file/d/0B_QaKV3...sp=sharing

I maintained the original dev name. If the Kodi Team want, i can give the email with password where i have generated the new API.

Thanks anyone for their contribution. I hope this can help anyone that want back YouTube and isn't able to fix.

Remember

Delete the folder on your userdata plugin.video.youtube. You can found the location here Userdata (wiki)

Thanks for your work. However, "Popular Right Now" and "Browse Channels" is not working for me with 5.1.19. I did log out befor reinstalling as well as delete the folder in userdata. Seems to be no different for me compared to 5.1.18b from parcel.
(2016-02-24, 18:35)kasmca Wrote:
(2016-02-24, 15:49)Kolifanes Wrote: Based on the work of finalmakerr and parcel alias rasberryrabbit. This is the final fix for YouTube plugin. Now everything is working.
I have generated new API for every section, expect youtube-tv. In this case, we use the API of YouTube TV.

You can download from here
https://drive.google.com/file/d/0B_QaKV3...sp=sharing

I maintained the original dev name. If the Kodi Team want, i can give the email with password where i have generated the new API.

Thanks anyone for their contribution. I hope this can help anyone that want back YouTube and isn't able to fix.

Remember

Delete the folder on your userdata plugin.video.youtube. You can found the location here Userdata (wiki)

Thanks for your work. However, "Popular Right Now" and "Browse Channels" is not working for me with 5.1.19. I did log out befor reinstalling as well as delete the folder in userdata. Seems to be no different for me compared to 5.1.18b from parcel.

Update: Everything works for me now with 5.1.19. At first I made a mistake and did not install 5.1.19 but just logged out and in. Smile
Doing this: 2256968 (post) I have all functions working perfectly.
For troubleshooting and bug reporting please make sure you read this first.
  •   
  • 1
  • 219
  • 220
  • 221(current)
  • 222
  • 223
  • 258
  •   
  Thread Closed
 
Thread Rating:
  • 20 Vote(s) - 3.9 Average



Logout Mark Read Team Forum Stats Members Help
YouTube (IMPORTANT - READ FIRST POST)3.920