• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 187
  •   
YouTube Plug-in Thread
#1
Go to here to create your YouTube API key.

https://github.com/jdf76/plugin.video.yo...l-API-Keys
Reply
#2
Latest stable version: 6.8.3   HOW-TO:Install add-ons from zip files (wiki)
Wiki: Installation#stable-versions
Changelog:
Code:
6.8.3

[fix] playback of some videos
[fix] notifications for some languages |contrib: Mutronics|
[fix] fix rating videos causing and error even though it succeeded
[upd] cache javascript player url for 4 hours, reduces http requests per play by 1
[upd] use new settings format on Kodi 19
[lang] el_gr strings |contrib: twilight0|
[lang] hu_hu strings |contrib: thelacesz|

Latest in-development version: 6.x.x-dev
Wiki: Installation#in-development-versions
Changelog:
Code:
...
...
Reply
#3
YOUTUBE PERSONAL API KEY INSTRUCTIONS by jmh2002

* Information collated from previous posts in both the old and the new YouTube threads. 
* Thank you to everyone who contributed (credits to WHCTHBD, jdf76, activoice, anxdpanic and many others)

* UPDATE

It's finally time to retire the previous Personal API Key Instructions. I'll leave the above credits thanking the users that contributed so much.

PLEASE NOW INSTEAD CLICK THE FOLLOWING LINK TO THE NEW INSTRUCTIONS ON THE YOUTUBE WIKI:

https://github.com/jdf76/plugin.video.yo...l-API-Keys


PLEASE SEE THE FAQ BELOW FOR THE FOLLOWING:
* HOW TO TEST IF YOUR PERSONAL API KEYS ARE WORKING
* HOW TO VIEW YOUR PERSONAL API QUOTA DAILY USAGE HISTORY
If I have helped you or increased your knowledge please click the 'Thumb Up - Like' button to show me your appreciation :)

For YouTube questions see the OFFICIAL THREAD, with the Latest Info in Post 1 & 2, & the Personal API Key Instructions and FAQ in Posts 3 & 4 & more ;)
Reply
#4
FREQUENTLY ASKED QUESTIONS & USEFUL INFORMATION

* PERSONAL API KEYS - EXTRA INFO

* Why do I get "Daily Limit Quota Exceeded" Errors when I try to use the YouTube addon?

The YouTube addon uses the Google API to access YouTube. 
There are "API Keys" for this, but these keys have a fixed daily quota, and these keys are shared between all the users. 
The addon contains some magic to help with this, however the addon is very popular so the quota is still sometimes reached. 

The best solution is to make your own set of Personal API Keys.

* Please use my Instructions in Post #2 above to create your own YouTube Personal API Keys.

This will totally fix any "Daily Limit Quota Exceeded" errors, and it will also reduce the load on the shared keys for other users.

* HOW TO TEST IF YOUR PERSONAL API KEYS ARE WORKING:

- Restart Kodi, go to YouTube > My Subscriptions
- Click HERE - https://console.cloud.google.com/home/dashboard
- You should see a 'spike' on the API Requests graph with the date and time that you retrieved My Subscriptions
NB: sometimes there is a delay and you might need to wait for the Dashboard page to update. But normally it's instant.

Image

* HOW TO VIEW YOUR PERSONAL API QUOTA DAILY USAGE HISTORY:

- Click HERE - https://console.cloud.google.com/apis/api/youtube/usage

Image

Image

* WHY DO I NEED TO ACTIVATE THE YOUTUBE ADDON TWICE?

This is necessary because you are activating different parts of YouTube:
- One is for My Subscriptions
- The Other is for the rest of YouTube

* RECOMMENDATIONS, RECOMMENDED, and RECOMMENDED FOR YOU

Recommendations is not the same as Recommended or Recommended for You, currently Recommendations is the only one working that I know of - anxdpanic (http://forum.kodi.tv/showthread.php?tid=...pid2455455)

* HOW TO USE THE CUSTOM WATCH LATER and CUSTOM HISTORY FEATURE

* The YouTube API no longer supports the full use of Watch Later and History preventing correct syncing and editing.
But the YouTube addon has a work around to enable you to use Playlists that you create instead.
NB:
With this method both Watch Later and History will be totally separate between Kodi and YouTube on the web.
But, both are standard Playlists so you can of course still view these via YouTube on the web (or your mobile device)
To use Watch Later, manually add videos. For History, your videos will be automatically added. Editing works per normal.

* To Use this Feature do the Following:
- Click HERE: https://www.youtube.com > Library > New Playlist (The name does not matter, eg: My Watch Later)
- Copy and Save the Playlist ID. You will need this later.
(the Playlist ID is the alphanumeric code that you will now see in the address bar of your browser after: playlist?list=)

- Repeat the procedure to create another New Playlist  (The name does not matter, eg: My History)
- Copy and Save the Playlist ID. You will need this later.

* After Creating your New Playlists on youtube.com:
- Go to the YouTube Addon > Settings > Folders
- Enter the Playlist IDs where you see Custom Watch Later Playlist ID, and Custom History Playlist ID > Click OK
* OR
- With Kodi shut down, Paste both Playlist IDs into: Kodi / userdata / addon_data / plugin.video.youtube / settings.xml
in the following lines of code:

<setting id="youtube.folder.watch_later.playlist" value="Playlist ID" />
<setting id="youtube.folder.history.playlist" value="Playlist ID" />

* WHY CAN'T I CHOOSE THE VIEW IN THE ADDON SETTINGS ANYMORE?
* WHY DO I ONLY HAVE 'LIST', 'BIG LIST' & 'THUMBNAIL' VIEWS AVAILABLE NOW?
* HOW CAN I SET THE 'MEDIA INFO' VIEW AGAIN?

As part of ongoing improvements and corrections of hacks and work arounds Team Kodi is now enforcing a previously existing policy that Views should be set by Skins, not by Addons. YouTube v5.3.6 onwards was updated to comply with this policy.

^^^ This is why you can't set the view in the addon settings anymore.

NB: To set Views inside your Skin open the 'Side Blade' on the left hand side (stock Kodi Confluence Skin).

Team Kodi is now also enforcing a policy that videos from addons like YouTube are not TV Show type 'Episodes'. 
YouTube and similar addons now need to Set Content Type as "Videos".

^^^ This is why only 'List', 'Big List', and 'Thumbnail' views are available now.

Changes have been pushed to github for the Confluence Skin by Team Kodi member @Hitcher (thanks Hitcher!) to allow the Media Info view to be available (again) to addons such as YouTube that will now need to Set Content Type as "Videos".

This official change should also now be adopted by Skin Developers to complete the policy changes and make everything work like before (except in line with this enforcement, views will be set by skins, and not by addons).

* How can I set the 'Media Info' View again?

Your Skin probably needs updating first. Please inform your Skin Developer about these changes and refer them to this FAQ.

NB: 
As temporary work around users may install the 'Unofficial' YouTube version from Post #1 on Page 1 of this thread. 
This will give you back the possibility to chose the view in the addon settings.

For technical reference (for Skin and Addon Developers) I will also put further links regarding this subject here:

- GitHub Discussion
- Summary Discussion in the YouTube thread
- Thread by @phil65: "Heads-up: How to deal with content types / media types"

* WHY DOESN'T THE MARK AS WATCHED / UNWATCHED 'TICK' WORK ANYMORE?

This is a consequence of the above changes that require the YouTube addon to Set Content Type as "Videos".
Due to a bug the 'Mark as Watched / UnWatched Tick' doesn't seem to be available to Content Type "Videos"
This should be solved when Skins are updated and/or any necessary background changes are made to Kodi.

NB: Some Skin Developers may have taken a 'non-official' approach to a fix, however this may cause unknown behaviour.

For reference, from the 'Summary Discussion in the YouTube thread' mentioned above:
(2016-12-07, 11:03)jmh2002 Wrote: In addition there seems to be further situation in relation to 'Mark as Watched/Hide Watched', detailed here:
(2016-12-05, 19:13)anxdpanic Wrote: I'm going to try to sum up the user side of this to hopefully help with some clarity on this.

Core/skins lack a default view per content type. (override view)
'Mark as Watched/Hide Watched' is not available to videos (wasn't aware of this until users presented it)
and here:
(2016-12-05, 19:53)Martijn Wrote: If there is indeed an issue now with watched/unwatched we'll have to fix that and not hack around the problem.

* HOW TO DELETE THE YOUTUBE ADDON AND DO A CLEAN INSTALL

* Totally deleting YouTube may not be necessary. First try the following:

- Go to the YouTube Addon > Settings > Maintenance > Delete settings.xml > Click Ok (you will lose your settings)
- Execute Setup Wizard > Yes
- Go to Settings > Configure all your Settings > Ok
(don't forget to enter Personal API Keys again if you have them)
- Sign In again (with the normal 2 x web activation)

* If this does not work? The installation may be corrupted. You can do a Clean Install as follows:

- With Kodi shut down, Delete the following 2 folders:
- Kodi / addons / plugin.video.youtube
- Kodi / userdata / addon_data / plugin.video.youtube
- Download the latest version of the YouTube addon from Post #1 on Page 1
- Then > Start Kodi > Go to Kodi Settings > Addons > "Install from Zip File" 
- Browse to the previously downloaded latest version zip file and install it
- Go to the YouTube Addon > Execute Setup Wizard > Yes
- Go to Settings > Configure all your Settings > Ok
(don't forget to enter Personal API Keys again if you have them)
- Sign In again (with the normal 2 x web activation)



More Frequently Asked Questions & Useful Information to follow in the future... (please post suggestions in the forum)
If I have helped you or increased your knowledge please click the 'Thumb Up - Like' button to show me your appreciation :)

For YouTube questions see the OFFICIAL THREAD, with the Latest Info in Post 1 & 2, & the Personal API Key Instructions and FAQ in Posts 3 & 4 & more ;)
Reply
#5
Reserved #3
If I have helped you or increased your knowledge please click the 'Thumb Up - Like' button to show me your appreciation :)

For YouTube questions see the OFFICIAL THREAD, with the Latest Info in Post 1 & 2, & the Personal API Key Instructions and FAQ in Posts 3 & 4 & more ;)
Reply
#6
Reserved #4
If I have helped you or increased your knowledge please click the 'Thumb Up - Like' button to show me your appreciation :)

For YouTube questions see the OFFICIAL THREAD, with the Latest Info in Post 1 & 2, & the Personal API Key Instructions and FAQ in Posts 3 & 4 & more ;)
Reply
#7
Reserved #5
If I have helped you or increased your knowledge please click the 'Thumb Up - Like' button to show me your appreciation :)

For YouTube questions see the OFFICIAL THREAD, with the Latest Info in Post 1 & 2, & the Personal API Key Instructions and FAQ in Posts 3 & 4 & more ;)
Reply
#8
About this previous reply:

https://forum.kodi.tv/showthread.php?tid...pid2681567

About my little issue....... i try tomorrow to upgrade my alpha. It's very strange because i not using a Watch later id or similar, i never put nothigs on this two voices.... it's ok ?
...only on your "little world" can you lay down the law...
Reply
#9
When a video plays post play events are trigged - add to watch history, and remove from watch later -, since your watch later id was unset it was attempting to find it. The issue is fixed, and also changed it so the add-on will not try to find the watch later playlist id unless requested by using the 'Retrieve Watch Later playlist id' setting.
Reply
#10
(2017-12-22, 19:29)anxdpanic Wrote: When a video plays post play events are trigged - add to watch history, and remove from watch later -, since your watch later id was unset it was attempting to find it. The issue is fixed, and also changed it so the add-on will not try to find the watch later playlist id unless requested by using the 'Retrieve Watch Later playlist id' setting.
 aaaaah.... ok.. now it's all clearly how it's works Smile


Ah.. i want to take the change to wish a merry christmas to all member inside this thread and in all past thread now closed... to and all developers also......
...only on your "little world" can you lay down the law...
Reply
#11
Is the daily quota limit for this add on ever going to be fixed?
Reply
#12
(2017-12-25, 05:29)Licentia Wrote: Is the daily quota limit for this add on ever going to be fixed?
Are you ever going to read the FAQ and Personal API instructions for this addon (that are noted in my signature)?

NB: these are still linked to the old thread but will be transferred to this new thread in the coming days when I have time do so.
If I have helped you or increased your knowledge please click the 'Thumb Up - Like' button to show me your appreciation :)

For YouTube questions see the OFFICIAL THREAD, with the Latest Info in Post 1 & 2, & the Personal API Key Instructions and FAQ in Posts 3 & 4 & more ;)
Reply
#13
(2017-12-25, 10:55)jmh2002 Wrote:
(2017-12-25, 05:29)Licentia Wrote: Is the daily quota limit for this add on ever going to be fixed?
Are you ever going to read the FAQ and Personal API instructions for this addon (that are noted in my signature)?

NB: these are still linked to the old thread but will be transferred to this new thread in the coming days when I have time do so. 
I've read those instructions and tried them but they didn't work.  I'm also using Libreelec, not Android, so having to type in the API keys is also pretty difficult.  I wish there was an easier way to resolve this issue.
Reply
#14
That last point would be down to Google, not kodi or jmh2002 (or anyone else supporting this add-on).
|Banned add-ons (wiki) Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

My Blog Posts
Reply
#15
ive been having issues with youtube on a few devices, all report the same. ive reset youtube and removed all addons and my personal api key. Sometimes plying the video a second time it will play, other times it just wont play butva different video will. playing the same video from Chrome using youtube.com has no issues. bewlow log is an example of a random video in the popular section.


Code:
1:06:28.537 T:3867145120 WARNING: CSkinInfo: failed to load skin settings
11:11:24.951 T:4095385600   ERROR: Control 50 in window 10025 has been asked to focus, but it can't
11:11:25.733 T:3867145120 WARNING: CPythonInvoker(16, /storage/.kodi/addons/screensaver.qlock/default.py): the python script "/storage/.kodi/addons/screensaver.qlock/default.py" has left several classes in memory that we couldn't clean up. The classes include: N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE,N14PythonBindings42XBMCAddon_xbmcgui_WindowXMLDialog_DirectorE
11:11:30.703 T:4095385600   ERROR: Control 9002 in window 10000 has been asked to focus, but it can't
11:11:36.247 T:3581932448  NOTICE: [plugin.video.youtube] Running: YouTube (5.4.5) on Krypton (Kodi-17.6) with Python 2.7.13
11:11:51.296 T:4095385600  NOTICE: Previous line repeats 1 times.
11:11:51.296 T:4095385600   ERROR: GetResumeItemOffset - Cannot open VideoDatabase
11:11:52.007 T:3590321056  NOTICE: [plugin.video.youtube] Running: YouTube (5.4.5) on Krypton (Kodi-17.6) with Python 2.7.13
11:11:54.220 T:4095385600  NOTICE: VideoPlayer: Opening: https://r3---sn-gvbxgn-tt1e.googlevideo....2E6B0CB9B3
11:11:54.220 T:4095385600 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
11:12:00.008 T:3607098272   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://i.ytimg.com/vi/VAUHZYf_aKY/mqdefault.jpg
11:12:00.992 T:3598709664   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://yt3.ggpht.com/ZQfXt8jm9ikODQW2Qq...ff-rj-k-no
11:12:01.505 T:3598709664   ERROR: CCurlFile::Open failed with code 404 for https://yt3.ggpht.com/ZQfXt8jm9ikODQW2Qq...f-rj-k-no/
11:12:01.505 T:3598709664   ERROR: GetDirectory - Unable to get http directory (https://yt3.ggpht.com/ZQfXt8jm9ikODQW2Qq...f-rj-k-no/)
11:12:01.505 T:3598709664   ERROR: GetDirectory - Error getting https://yt3.ggpht.com/ZQfXt8jm9ikODQW2Qq...f-rj-k-no/
11:12:04.813 T:4095385600   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://r3---sn-gvbxgn-tt1e.googlevideo....2E6B0CB9B3
11:12:04.815 T:3590321056  NOTICE: Creating InputStream
11:12:18.531 T:3590321056   ERROR: CCurlFile::FillBuffer - Failed: SSL connect error(35)
11:12:18.531 T:3590321056   ERROR: CCurlFile::Open failed with code 0 for https://r3---sn-gvbxgn-tt1e.googlevideo....2E6B0CB9B3
11:12:18.531 T:3590321056   ERROR: Open - failed to open source <https://r3---sn-gvbxgn-tt1e.googlevideo.com/videoplayback?mn=sn-gvbxgn-tt1e&mm=31&itag=22&initcwndbps=971250&mv=m&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&source=youtube&ms=au&pl=19&dur=254.304&ei=SCNBWt2VNtKuDNihnBA&lmt=1514007145025517&requiressl=yes&ip=99.247.176.170&ratebypass=yes&expire=1514239913&mt=1514218188&ipbits=0&key=yt6&mime=video%2Fmp4&id=o-AL-x2wZPzEn2a-FMt9pXUU_QKHQTOmZoowOS26Efa-Gg&signature=1D5BD5023CACDAD943C7ABBB529495CA137F4F5F.5555F6A082BCF984BCDF0B2C3ABF122E6B0CB9B3>
11:12:18.532 T:3590321056   ERROR: CVideoPlayer::OpenInputStream - error opening [https://r3---sn-gvbxgn-tt1e.googlevideo....2E6B0CB9B3]
11:12:18.532 T:3590321056  NOTICE: CVideoPlayer::OnExit()
11:12:18.534 T:4095385600   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/play/?video_id=RQaVzbxZqXY]
11:12:18.536 T:4095385600  NOTICE: CVideoPlayer::CloseFile()
11:12:18.536 T:4095385600  NOTICE: VideoPlayer: waiting for threads to exit
11:12:18.536 T:4095385600  NOTICE: VideoPlayer: finished waiting
11:12:18.536 T:4095385600  NOTICE: CVideoPlayer::CloseFile()
11:12:18.536 T:4095385600  NOTICE: VideoPlayer: waiting for threads to exit
11:12:18.536 T:4095385600  NOTICE: VideoPlayer: finished waiting
11:12:18.780 T:3629626272 WARNING: DoWork - Unable to open video database. Can not save file state!
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 187
  •   



Logout Mark Read Team Forum Stats Members Help
YouTube Plug-in Thread18
This forum uses Lukasz Tkacz MyBB addons.