Kodi Community Forum
Release YouTube Plug-in Thread - 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)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: Release YouTube Plug-in Thread (/showthread.php?tid=267160)



RE: YouTube Plug-in **New Thread*** - MetalChris - 2016-04-09

(2016-04-09, 12:33)jdf76 Wrote:
(2016-04-08, 22:25)compy Wrote: Why do we have to update the plugin manually ? where is the repo ?
I'm working on it. Unfortunately my health hasn't been the greatest this week, so bare with me. I feel better today so i'm picking up where i left off thursday.

Hopefully i'll have something for you today.

Thanks
jeff

Don't kill yourself to get it done. While a repo is a great thing for stable releases, it can wreak havoc if you push out a version with an error that breaks something. You've taken on a big project here, and are probably feeling just a bit overwhelmed. I'd concentrate on fixing the things you want to fix, and let people update manually until you feel like you have a 'finished' product. Just my two cents.


RE: YouTube Plug-in **New Thread*** - jdf76 - 2016-04-09

I definitely want to get a repo up even if it's something just to push what we got. I think the hard part i'm running into is the repo is still hosting on kolifanes github. The documentation is a little well non descriptive, or i'm just not getting it, but no worries i'll figure it out, just make take me a few to do so.

Thanks for the words of encouragement!
Jeff


RE: YouTube Plug-in **New Thread*** - jdf76 - 2016-04-09

Deleted...


RE: YouTube Plug-in **New Thread*** - jdf76 - 2016-04-09

Just an FYI there have been some modifications for version 6 that have been updated. but no version change.

[upd] Minor clarification and typo fixes -- twilight0
[upd] Store region separately from language -- leonghui
[add] Activate sorting method DateAdded -- h0d3nt3uf3l
[add] Added functions to fill variables -- h0d3nt3uf3l
[upd] Fixed sorting in MySubscriptions and Playlists -- h0d3nt3uf3l

If this applies to you please feel free to grab the new version otherwise if you stay where you are you should be fine.

Jeff


RE: YouTube Plug-in **New Thread*** - beeswax - 2016-04-09

Thank you for taking up the job of maintaining this, I don't use YT that often so have only just noticed that the one on the official Kodi repo is broken. I just installed this from the zip file but I can't get it to start. I just get "YouTube error, check log for details" as soon as I try and load it. I tried uninstalling and deleting the plugin.video.youtube folder from addons and addon_data but still no joy. When I try to run it, my log file looks like this. Any idea what's wrong?


RE: YouTube Plug-in **New Thread*** - jdf76 - 2016-04-09

Thanks for contacting me. Let me take a look at this.

Jeff

(2016-04-09, 21:56)beeswax Wrote: Thank you for taking up the job of maintaining this, I don't use YT that often so have only just noticed that the one on the official Kodi repo is broken. I just installed this from the zip file but I can't get it to start. I just get "YouTube error, check log for details" as soon as I try and load it. I tried uninstalling and deleting the plugin.video.youtube folder from addons and addon_data but still no joy. When I try to run it, my log file looks like this. Any idea what's wrong?



RE: YouTube Plug-in **New Thread*** - jdf76 - 2016-04-09

Thank you for catching this it appears on of the patches had a syntax error in it.

go ahead and delete your old download and install and reinstall from here. This was tested on my machine and works fine. I apologize for the inconvenience this has caused.

Thanks
Jeff

(2016-04-09, 21:56)beeswax Wrote: Thank you for taking up the job of maintaining this, I don't use YT that often so have only just noticed that the one on the official Kodi repo is broken. I just installed this from the zip file but I can't get it to start. I just get "YouTube error, check log for details" as soon as I try and load it. I tried uninstalling and deleting the plugin.video.youtube folder from addons and addon_data but still no joy. When I try to run it, my log file looks like this. Any idea what's wrong?



RE: YouTube Plug-in **New Thread*** - beeswax - 2016-04-10

Thanks so much Jeff, just tried this and it works fine now Big Grin


RE: YouTube Plug-in **New Thread*** - jdf76 - 2016-04-10

Just an FYI there have been some modifications for version 6 that have been updated. but no version change.

[upd] Minor clarification and typo fixes -- twilight0
[upd] Store region separately from language -- leonghui
[add] Activate sorting method DateAdded -- h0d3nt3uf3l
[add] Added functions to fill variables -- h0d3nt3uf3l
[upd] Fixed sorting in MySubscriptions and Playlists -- h0d3nt3uf3l

Update was tested by My at 8 pm US Eastern Time and tested successfully.

If you have the sorting issues please upgrade. Otherwise this will be the last 5.1.20.6 Update. New Changes will begin 5.1.20.7 and will be the final 5.1.20 branch.

Thank you to h0d3nt3uf3l for his help with this fix.

Jeff


RE: YouTube Plug-in **New Thread*** - samsonluk - 2016-04-10

Anyone experienced exceed limit in "Watch Later" and unknown kind in "Subscriptions" / "Browse Channels" today? ... It works after a few retry sometimes...


RE: YouTube Plug-in **New Thread*** - neurosis13 - 2016-04-10

(2016-04-10, 08:32)samsonluk Wrote: Anyone experienced exceed limit in "Watch Later" and unknown kind in "Subscriptions" / "Browse Channels" today? ... It works after a few retry sometimes...

yes, same here


RE: YouTube Plug-in **New Thread*** - WHCTHBD - 2016-04-10

Posting this so the less intelligent like myself don't run in circles around the forum. I have not tested this with signing in, only as a public user, so you may need to vary a bit but it is worth a try. Keywords, Exception ContentProvider Error

Until the API issue is resolved, you will want to generate your own to use. Do this prior to installing the plugin.

Quote:Step 1: Click HERE - https://console.cloud.google.com/project . Create a Project. The name does not matter, but you may wish to adjust the server location based on your preference.

Step 2: Click HERE - https://console.cloud.google.com/apis/credentials/wizard?api=youtube - For simplicity's sake I picked YouTube Data API v3 and Web Browser (javascript), then Public Data.

Step 3: Hit the BLUE button TWICE.

Step 4: Take note of the API key, copy it down somewhere. You'll need this later. DO NOT GIVE THIS OUT

Step 5: Click HERE - https://console.cloud.google.com/apis/credentials/consent - Put any project name, doesn't matter. Hit the BLUE button.

Step 6: Click HERE - https://console.cloud.google.com/apis/credentials/oauthclient - Hit Web APP or OTHER, then CREATE. (Web App worked for me, but Other might be more accurate.)

Step 7. Take note the ID and secret. DO NOT GIVE THIS OUT.

Step 8. Unzip the Downloaded Addon from the OP, open the SETTINGS.XML file in the RESOURCES folder, and replace the keys at the bottom. Be sure to leave them in the " " and do not add any (.apps.googleusercontent.com) to the API ID, only the part before the dot (.)

Step 9. Save. Rezip. Install.
Warning: You -may- want to disable updates to the YouTube addon in the Context Menu on the Addons screen.


As I said I am by means no expert and I only write this out so folks can get started a little faster without searching for an hour. Smile Hope this helps!


RE: YouTube Plug-in **New Thread*** - jmh2002 - 2016-04-10

I get Log In failed when I follow the above steps to create the keys, and then enter them in the API section of the settings via Kodi.

Should be as simple as that?

Is there another step needed in creating the credentials? I will try to look in the old thread but there was a lot of confusing info there.

@jdf76: perhaps you can add the exact correct method for creating personal keys and add it to the first post of this thread?


RE: YouTube Plug-in **New Thread*** - h0d3nt3uf3l - 2016-04-10

@jmh2002 on which step you get login failed? you have to be logged in on google.

If you get login failed on the addon, try to logout first. if this don't work try to delete the folder plugin.video.youtube under userdata/addon_data/


RE: YouTube Plug-in **New Thread*** - jmh2002 - 2016-04-10

Thanks h0d3nt3uf3l but I tried all those type of tricks already before posting here and it didn't change anything.

Now I fixed it. I compared the instructions above with the ones here in the old thread: http://forum.kodi.tv/showthread.php?tid=200735&pid=2213129#pid2213129

The instructions that WHCTHBD posted are much clearer and easier to follow (and took all of 5 minutes to do) but I notice the following in Step 6:
(2016-04-10, 08:56)WHCTHBD Wrote:
Quote:Step 6: Click HERE - https://console.cloud.google.com/apis/credentials/oauthclient - Hit Web APP, then CREATE.
and in the old instructions:
activoice Wrote:Click on Credentials, then New Credentials, then OAuth Client ID, select Other, give it a name and click Create (this creates the ID and SECRET)

Using "Web App" didn't seem to work for me. I made new credentials using "Other" and it worked perfectly first time Nod

I'm still using the stable version 5.1.20.4

NB: I didnt follow Step 8 because version 5.1.20.4 has the ability to enter the api keys directly in Kodi YouTube settings
(although I cheated and copied and pasted them directly into: \Kodi\userdata\addon_data\plugin.video.youtube\settings.xml)