[RELEASE] YouTube

Discussion of plugin / script development for XBMC4Xbox
tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 58 times

[RELEASE] YouTube

Post by tim619 » Sun Jan 01, 2017 8:51 pm

Image

YouTube v1.1.0
(plugin.video.youtube4x)

This plugin implements the YouTube API and supports
- listing of videos by categories and sort keys
- trending videos
- channels
- search
- livestreams

All videos are limited to 360p and a listing shows 25 items. At the moment playing livestreams doesn't work although the implementation is correct and the video quality is limited correctly. I think that is an issue of x4x since on kodi everything works flawless. Also contextmenu items like Go to ChannelTitle dont work at the moment, on kodi it works too.

The code is completely rewritten and not based on the official plugin only the video url methods are ported from bromix's plugin (Thanks!).
Also the ciphering is implemented to cache the files as long as no new call is needed.

The performance of this plugin is much better than the official kodi plugin (which has some big bugs when calling the API) nonetheless sometimes the xbox crashes because it's out of ram.

For the next version I planned to implement settings, languages, locations (for now language and location is hardcoded to en-US), subtitles.

Image

Image

Image

Image

Download
Last edited by tim619 on Sun Apr 08, 2018 1:25 pm, edited 2 times in total.

skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: [RELEASE] YouTube

Post by skatulskijean » Mon Jan 02, 2017 11:35 am

tim619 wrote:Image

YouTube v1.0.0
(plugin.video.youtube4x)

This plugin implements the YouTube API and supports
- listing of videos by categories and sort keys
- trending videos
- channels
- search
- livestreams

All videos are limited to 360p and a listing shows 25 items. At the moment playing livestreams doesn't work although the implementation is correct and the video quality is limited correctly. I think that is an issue of x4x since on kodi everything works flawless. Also contextmenu items like Go to ChannelTitle dont work at the moment, on kodi it works too.

The code is completely rewritten and not based on the official plugin only the video url methods are ported from bromix's plugin (Thanks!).
Also the ciphering is implemented to cache the files as long as no new call is needed.

The performance of this plugin is much better than the official kodi plugin (which has some big bugs when calling the API) nonetheless sometimes the xbox crashes because it's out of ram.

For the next version I planned to implement settings, languages, locations (for now language and location is hardcoded to en-US), subtitles.

Image

Image

Image

Image

Download
Big thanks for this nice work.I have it Not tested momently but i know you make a great work.

Regards Jan

User avatar
BuZz
Site Admin
Posts: 1889
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 62 times
Been thanked: 422 times
Contact:

Re: [RELEASE] YouTube

Post by BuZz » Mon Jan 02, 2017 6:02 pm

Nice one! :)

hawsey
Posts: 504
Joined: Tue Jul 17, 2012 8:25 pm
Has thanked: 47 times
Been thanked: 30 times

Re: [RELEASE] YouTube

Post by hawsey » Mon Jan 02, 2017 6:34 pm

Well Done , looks great :-)

Sent from my Moto G (4) using Tapatalk

User avatar
sixties keith
Posts: 523
Joined: Wed Aug 01, 2012 9:30 am
Has thanked: 24 times
Been thanked: 29 times

Re: [RELEASE] YouTube

Post by sixties keith » Tue Jan 03, 2017 10:40 am

well dont mate this is a greatly addition, youtube was well missed on the xbox so this is a big boost
Image

120gb hdd, vinyl magma skin, front lights, side strip lights, clear jewel mod with lights, ir dongle mod, hdd indicator. X3 with LCD many mods inc custom x3 jewel.

tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 58 times

Re: [RELEASE] YouTube

Post by tim619 » Wed Jan 04, 2017 12:40 am

Thanks guys :)
Btw if you want to try it on kodi you would have to rename the folder from "YouTube" to "plugin.video.youtube4x" and the "default.tbn" to "icon.png"

NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: [RELEASE] YouTube

Post by NOTTHESAME » Fri Jan 06, 2017 12:21 pm

Thanks tim great to see another great plugin for our lovely xbox, thanks and great job :)

r32crazy01
Posts: 92
Joined: Sat May 04, 2013 12:29 pm
Location: New Zealand
Has thanked: 38 times
Been thanked: 35 times

Re: [RELEASE] YouTube

Post by r32crazy01 » Mon Jan 09, 2017 6:33 pm

Awesome, thanks for your efforts :), it's great to have YouTube back on my box.

Looking forward to the next release.

Cheers

User avatar
idokfire
Posts: 5
Joined: Sat Dec 12, 2015 6:27 am
Has thanked: 2 times

Re: [RELEASE] YouTube

Post by idokfire » Sat Jan 21, 2017 9:26 pm

Are there any dependencies to make this work? It looks directory folders but then date script failed. I must be missing something.

tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 58 times

Re: [RELEASE] YouTube

Post by tim619 » Sat Jan 21, 2017 9:53 pm

No, but maybe you need the latest xbmc4xbox version. What's your xbmc version?

User avatar
idokfire
Posts: 5
Joined: Sat Dec 12, 2015 6:27 am
Has thanked: 2 times

Re: [RELEASE] YouTube

Post by idokfire » Sat Jan 21, 2017 10:05 pm

tim619 wrote:No, but maybe you need the latest xbmc4xbox version. What's your xbmc version?
Lol, I just realized that as well. I forgot this one want updated yet. Trying it now, Thanxx for the advice.

User avatar
idokfire
Posts: 5
Joined: Sat Dec 12, 2015 6:27 am
Has thanked: 2 times

Re: [RELEASE] YouTube

Post by idokfire » Sat Jan 21, 2017 10:49 pm

It worked great!

User avatar
xbmc4you
Posts: 35
Joined: Mon Sep 26, 2016 2:08 pm
Has thanked: 38 times
Been thanked: 4 times

Re: [RELEASE] YouTube

Post by xbmc4you » Sun Jan 29, 2017 2:02 am

How do you install this?

tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 58 times

Re: [RELEASE] YouTube

Post by tim619 » Sun Jan 29, 2017 10:17 pm

Extract the "YouTube" folder to the "plugins/video/" folder. You can find additional information here.

User avatar
xbmc4you
Posts: 35
Joined: Mon Sep 26, 2016 2:08 pm
Has thanked: 38 times
Been thanked: 4 times

Re: [RELEASE] YouTube

Post by xbmc4you » Mon Jan 30, 2017 12:56 am

tim619 wrote:Extract the "YouTube" folder to the "plugins/video/" folder. You can find additional information here.
Thank you :!:

tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 58 times

Re: [RELEASE] YouTube

Post by tim619 » Sat Feb 04, 2017 12:32 pm

Update v1.0.1
-Safer js-Url checking, fixes Musicvideos

User avatar
xbmc4you
Posts: 35
Joined: Mon Sep 26, 2016 2:08 pm
Has thanked: 38 times
Been thanked: 4 times

Re: [RELEASE] YouTube

Post by xbmc4you » Sun Feb 05, 2017 10:41 pm

tim619 wrote:Update v1.0.1
-Safer js-Url checking, fixes Musicvideos
Awesome, good job! :D

immune
Posts: 28
Joined: Sun Jul 19, 2015 12:08 pm
Has thanked: 11 times

Re: [RELEASE] YouTube

Post by immune » Sun Mar 26, 2017 6:49 pm

Hi,
i recently installed this plugin.First and foremost thanks to the creator for the good work.
As far as my experience goes some videos work others mostly longer videos (>10Min) wont. In fact my box will freeze. Do i have to do some further setup to make it more stable or should i change the mediaplayers?
Thanks

tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 58 times

Re: [RELEASE] YouTube

Post by tim619 » Sun Mar 26, 2017 9:11 pm

From what you say I assume that you could lower the buffering time, I think that would cache less megabytes.
I cannot imagine other differences between low durated videos and longer ones.

If that doesn't work too, you could limit the video quality from 360p to some lower number by changing in api.py
MAX_HEIGHT = 360
to
MAX_HEIGHT = 200
or something.

For now I don't have a settings menu which could change this :|

immune
Posts: 28
Joined: Sun Jul 19, 2015 12:08 pm
Has thanked: 11 times

Re: [RELEASE] YouTube

Post by immune » Mon Mar 27, 2017 3:12 pm

Thanks for the quick response Tim,

How do i change the Buffering Time. In the Video Settings of XBMC?

Post Reply