Kodi Community Forum
Release YouTube (IMPORTANT - READ FIRST POST) - 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 (IMPORTANT - READ FIRST POST) (/showthread.php?tid=200735)



RE: YouTube (IMPORTANT - READ FIRST POST) - warheat1990 - 2016-03-06

Hello friends, I just installed 5.1.20.3, but I still unable to watch Live Stream, I saw this post : http://forum.kodi.tv/showthread.php?tid=200735&pid=2261848#pid2261848 a couple pages back but I have no idea what it means (I tried to access the url and change the IP address to my own IP address but no luck), can someone walk me through it? Any help will be appreciated.


RE: YouTube (IMPORTANT - READ FIRST POST) - jdf76 - 2016-03-06

Hi there. Thanks for the vote of confidence.

Try download the newest version from

https://github.com/Kolifanes/plugin.video.youtube/releases/download/5.1.20.4/plugin.video.youtube-5.1.20.4.zip

it's a direct link. The link i put in the post didn't point to the file just to his releases repo. If this doesn't work, i would suggest waiting for the official Kodi Repository to update.

I hope this helps you, if it doesn't then you will need access to a computer.

Thank you,
Jeff

(2016-03-06, 11:19)Chill72 Wrote:
(2016-03-05, 22:32)blueribb Wrote:
(2016-03-05, 19:59)Chill72 Wrote: What's up Jeff,

I see these instructions all over the place but I'm still having problems getting you tube to work. I have a fire stick with Kodi loaded on it and plugged to tv. When I'm in it I'm able to remove old software (at least I think) and when I go to add source and type in that github address I can't unzip it later since it leads to nothing. Can you provide me step by step instruction on how to do this from fire stick? I don't know anything about computers and my wife is harassing me to get this to work. Your help is greatly appreciated.

Download the file on another computer and access it through your network. Use "Install from ZIP file" in Kodi.
What? I need a computer for this. My wife has iMac pro book. How do I do all this? Set up a network? What does that mean? Can you write me a step by step instruction starting with turning on the computer. I know nothing about computers but I can follow instruction. Last working you tube I got was from the stick alone (bro mix repo) and I didn't need another computer.



RE: YouTube (IMPORTANT - READ FIRST POST) - jdf76 - 2016-03-06

You will need to supply a little more information. I suggest you start with supplying a log file to determine what is happening.

http://kodi.wiki/view/Log_file

Jeff

(2016-03-06, 12:08)warheat1990 Wrote: Hello friends, I just installed 5.1.20.3, but I still unable to watch Live Stream, I saw this post : http://forum.kodi.tv/showthread.php?tid=200735&pid=2261848#pid2261848 a couple pages back but I have no idea what it means (I tried to access the url and change the IP address to my own IP address but no luck), can someone walk me through it? Any help will be appreciated.



RE: YouTube (IMPORTANT - READ FIRST POST) - warheat1990 - 2016-03-06

(2016-03-06, 12:22)jdf76 Wrote: You will need to supply a little more information. I suggest you start with supplying a log file to determine what is happening.

http://kodi.wiki/view/Log_file

Jeff

(2016-03-06, 12:08)warheat1990 Wrote: Hello friends, I just installed 5.1.20.3, but I still unable to watch Live Stream, I saw this post : http://forum.kodi.tv/showthread.php?tid=200735&pid=2261848#pid2261848 a couple pages back but I have no idea what it means (I tried to access the url and change the IP address to my own IP address but no luck), can someone walk me through it? Any help will be appreciated.

Here's my log : http://xbmclogs.com/ptawrpxd6


RE: YouTube (IMPORTANT - READ FIRST POST) - DjDiabolik - 2016-03-06

mmmmmmmmmmmmm.. string.po....... in italian string there's some line whitout traduction........ i thinks i can help Smile


- Always ask for the video quality -> Chiedi sempre qualità del video

- Show channel name in description -> Mostra nome canale in desrizione

- rtmpe streams are not supported -> Streaming RTMP/RTMPE non supportati

- More Links from the description -> Trova link nella descrizione

- No further links found. -> Nessun link trovato.

- Please log in twice! -> Per favore fare 2 volte il Log In!

- No videos streams found -> Nessun Stream Video trovato



The API keys in add-on it's very good feature......... but using keyboard or the remote for a put this very long keys it's easy to make some errors......... it's possible to add a feature to import this keys from a XML files or similar (i thinks we can create this xml manually and import that from a USB Drive or SMB sharing folder for example )Huh


RE: YouTube (IMPORTANT - READ FIRST POST) - blueribb - 2016-03-06

(2016-03-06, 11:19)Chill72 Wrote:
(2016-03-05, 22:32)blueribb Wrote:
(2016-03-05, 19:59)Chill72 Wrote: What's up Jeff,

I see these instructions all over the place but I'm still having problems getting you tube to work. I have a fire stick with Kodi loaded on it and plugged to tv. When I'm in it I'm able to remove old software (at least I think) and when I go to add source and type in that github address I can't unzip it later since it leads to nothing. Can you provide me step by step instruction on how to do this from fire stick? I don't know anything about computers and my wife is harassing me to get this to work. Your help is greatly appreciated.

Download the file on another computer and access it through your network. Use "Install from ZIP file" in Kodi.
What? I need a computer for this. My wife has iMac pro book. How do I do all this? Set up a network? What does that mean? Can you write me a step by step instruction starting with turning on the computer. I know nothing about computers but I can follow instruction. Last working you tube I got was from the stick alone (bro mix repo) and I didn't need another computer.

I would suggest you wait until an update is added to the repository so you won't have to do a thing. In the meantime, you could download the ZIP file to a flash drive and connect that to your fire stick. I'm afraid I can't give you a step-by-step for that.


RE: YouTube (IMPORTANT - READ FIRST POST) - misty01 - 2016-03-06

(2016-03-06, 11:41)Kolifanes Wrote: @misty01
https://github.com/Kolifanes/plugin.video.youtube/releases/tag/5.1.20.4
Done

We have only one key is from Google. YouTube TV. But appreciate your solution.

Thanks! If there is a future need for separate key access in add-on settings for kodi-fallback, kodi-quota or kodi-xx version, then it can easily be coded since the ground work is now in place.


RE: YouTube (IMPORTANT - READ FIRST POST) - Fludizz - 2016-03-06

For those that don't have a convenient method to input it on their mediacenter, you can also add them via SSH:

Edit this file: .kodi/userdata/addon_data/plugin.video.youtube/settings.xml

Find these lines:
Code:
<setting id="youtube.api.id" value="YOUR-ID" />
<setting id="youtube.api.key" value="YOUR-KEY" />
<setting id="youtube.api.secret" value="YOUR-SECRET" />

Replace the value fields with your own Key/ID/Secret.

Do make sure your youtube plugin is not running, otherwise it will not like the updated values Wink I'd suggest stopping kodi completely prior to changing the API keys if you don't do it through the GUI.

Unfortunately, the plugin doesn't work with my own API keys (haven't had time to check why) so I've defaulted it to the provided keys for now.


YouTube (IMPORTANT - READ FIRST POST) - sarlan19 - 2016-03-06

Tnx @DarrenHill.


RE: YouTube (IMPORTANT - READ FIRST POST) - Fludizz - 2016-03-06

Obviously missed the updates to 5.1.20.4 - no need for your own API keys, that's optional and can be left alone. The plugin works perfectly fine since these updates.

I also would like to thank the guys that picked up on Bromix his work and kept the plugin alive!
Now let's hope the new versions will also find their way into the official repo's.


RE: YouTube (IMPORTANT - READ FIRST POST) - DarrenHill - 2016-03-06

(2016-03-06, 23:10)sarlan19 Wrote: Tnx @DarrenHill.

No problem - he was way beyond the limit.


RE: YouTube (IMPORTANT - READ FIRST POST) - DjDiabolik - 2016-03-06

(2016-03-06, 19:00)Fludizz Wrote: For those that don't have a convenient method to input it on their mediacenter, you can also add them via SSH:

Edit this file: .kodi/userdata/addon_data/plugin.video.youtube/settings.xml

Find these lines:
Code:
<setting id="youtube.api.id" value="YOUR-ID" />
<setting id="youtube.api.key" value="YOUR-KEY" />
<setting id="youtube.api.secret" value="YOUR-SECRET" />

Replace the value fields with your own Key/ID/Secret.

Do make sure your youtube plugin is not running, otherwise it will not like the updated values Wink I'd suggest stopping kodi completely prior to changing the API keys if you don't do it through the GUI.

Unfortunately, the plugin doesn't work with my own API keys (haven't had time to check why) so I've defaulted it to the provided keys for now.
When you use a PIx like me whit OSMC it's no possibly to exit from KODI............ or if possibly i don't know how i can do Wink

I have suggest for example to add a feature for import the key from a file like .xml or .ini or other file (like a txt using some tag for example )can be created for example from a pc whit notepad or similar.........


RE: YouTube (IMPORTANT - READ FIRST POST) - clarjon1 - 2016-03-06

(2016-03-06, 22:58)therearefourlights Wrote: This plugin sucks.

If you think it's ok to ask users to create API keys and edit scripts then you are a shit developer.
Oh boohoo then don't use my plugin... ok I won't since it doesn't fucking work anyway.

What about people on Android devices who can't just go about editing files ?

Why is it so damn hard to get it to work, before the new guy took over the plugin worked just fine, now it's a steaming pile of shit.

Happily NOT using kodi for youtube any more.

Rant over. Sue me for my opinions.

It actually was having issues before bromix left the plugin. It was getting more and more popular, so the API key was starting to get rate limited. At first, it was only a couple minutes near the top of the hour. As Kodi became more and more popular ( In part thanks to all those Android TV boxes ), the situation worsened over the next few months.

Then, post-christmas 2015 happened.

Android TV set box sales exploded during the holiday season. Ones with Kodi installed, specifically, as cord-cutters bought them as gifts for their families. And of course, what do most kids and people want to do? Look up cat videos on youtube.

The poor API keys could not handle it, with thousands and thousands and thousands of hits per hour happening all of a sudden, and the original dev no longer working on the addon due to personal reasons.

The problem is, this addon is too popular for the default API key structure. The people trying to revive this project are testing out different ways to try and work around the issue. It is starting to look like we need to generate a TON of keys, and introduce them to the code, so as to keep up with demand. I myself modify my version of the youtube addon and implemented my own personal key, because of this issue.

Also, i figured out why youtube streaming has stopped. It appears that youtube is using a different format tag for the livestreams. I was getting errors with the message "unknown yt_format for itag 91" in logs, so I looked to see if i could fix it myself.

I found in /resources/lib/youtube/helper/video_info.py the list of video formats youtube will use, and copied the block starting on line 137
Code:
'92': {'container': 'ts',
               'Live': True,
               'title': 'Live@240p',
               'sort': [240, 0],
               'video': {'height': 240, 'encoding': 'h.264'},
               'audio': {'bitrate': 48, 'encoding': 'aac'}},
and pasted it right after, changing the starting ID number to what the log files were complaining about, so
Code:
'91': {'container': 'ts',
               'Live': True,
               'title': 'Live@240p',
               'sort': [240, 0],
               'video': {'height': 240, 'encoding': 'h.264'},
               'audio': {'bitrate': 48, 'encoding': 'aac'}},

Saved, zipped, slapped onto kodi, and youtube streaming is functional again.

If this can get passed on to whoever is working on picking up the plugin, I'm sure this will make a lot of people happy. Not the cleanest fix i'm sure, but it's been working well for me for the past 6 streams i've tested, and the past half hour or so of stream watching.


RE: YouTube (IMPORTANT - READ FIRST POST) - Fludizz - 2016-03-06

(2016-03-06, 23:22)DjDiabolik Wrote:
(2016-03-06, 19:00)Fludizz Wrote: [...]
When you use a PIx like me whit OSMC it's no possibly to exit from KODI............ or if possibly i don't know how i can do Wink

I have suggest for example to add a feature for import the key from a file like .xml or .ini or other file (like a txt using some tag for example )can be created for example from a pc whit notepad or similar.........

If you log in via SSH, you can stop Kodi with the command 'systemctl stop kodi'; when you are done, use 'systemctl start kodi' Smile
-Edit- : Sorry, noticed you use OSMC. Not sure if that one works the same as OpenElec, either way - worth a shot!

I do agree, seen the lenght and perceived randomness of the inputs, an import mechanism would be better. Perhaps for a future itteration, for now I'm happy with the new addition Smile


RE: YouTube (IMPORTANT - READ FIRST POST) - Kolifanes - 2016-03-07

New release https://github.com/Kolifanes/plugin.video.youtube/releases/tag/5.1.20.5
With the fix by clarjon1