PDA

View Full Version : Youtube.com integration


vtetuan
2006-01-31, 12:52
can be possible to integrate youtube.com navigation (like last.fm) in myvideos tab?

they provides rss pages with a lot of categories at: http://youtube.com/rssls

or can be more easy to do a phyton script?

pd: sorry for my english

babanoosh
2006-02-17, 03:43
bump...

i'd be super interested in that as well. you tube is sooo much smoother than google video. is there a way to incorporate this into ooba?

GoatNinja
2006-03-31, 08:06
i would like to add my support to this idea... youtube is the place for videos.... and flash video seems to be taking over the internet... flash support and a youtube browser would be imo the coolest addition to xbmc.

pike
2006-03-31, 10:41
moving to python support forum, since this will never be added to xbmc itself.

it may however be possible by a python script, we recently discovered that we can handle flv videos, but im not sure there are direct media links anywhere on youtube. if you find one, try putting it in a .strm file and see if it plays either by mplayer or (play using.. dvdplayer)

pike
2006-04-01, 04:13
turned out to be real simple:

http://youtube.com/get_video?video_id=ptk9qsskxh8

this part is the magic: http://youtube.com/get_video?video_id= the id is basically everywhere in the html file

put this in a .strm file and play using.. dvdplayer. works fine

flash
2006-04-01, 14:51
i have started playing around with this aswell. using mplayer it would not stream that url "http://youtube.com/get_video?video_id=ptk9qsskxh8" but if you do a little work in python you can get the real flv url and then mplayer will play that no problem at all. i don't know if someone has started developing a script already but if no one has i can keep going with mine and hopefully there will be some sort of youtube browser fairly soon.

donno
2006-04-06, 01:18
to get the real loacation in python you need to code a function that retrevies the link but when it detects the location header it will stop the download and instale pass the location link over to mplayer


for example for the video link flash/pike posted when u got to the link the webserver changes the location (to another file) like below
location: http://youtube-007.vo.llnwd.net/d1/05/00/ptk9qsskxh8.flv

pike
2006-04-08, 23:33
- 08-04-2006 added: pythonscripts can now decide what playcore to use. this allows playback of streams that mplayer does not support
example: xbmc.player(xbmc.player_core_dvplayer).play('..... ');

donno
2006-04-09, 13:13
edit:
finshed the script today

basically how it works is gets the video links/details from rss

have fun.

download here (http://darkdonno.googlepages.com/youtube.zip)

ive submitted it to xbmcscripts.com

lion2
2006-04-12, 20:57
some www.veoh.com integration would be cool also. veoh is just like youtube.

Livin
2006-04-20, 02:02
edit:
finshed the script today

basically how it works is gets the video links/details from rss

have fun.

download here (http://darkdonno.googlepages.com/youtube.zip)

ive submitted it to xbmcscripts.com
works fine so far... but the formatting is a bit off. left side buttons are too high and overlap the youtube logo

gmackenz
2006-04-21, 08:35
great start!

only major problem i've encountered is that if you stop a video manually as it is playing, the youtube script is left in a non-functional state where you can navigate the previous screen before video play/stop but non of the buttons/links selected will do anything (i found this out playing the "missing you" by puff daddy accidentally to my great horror and dismay-yech!).

i am forced to power-cycle the xbox.

now that the ifilmbrowser is totally unusuable as of last week (wife still could watch her beloved viral videos), this project for youtube has saved my marriage ;)

donno
2006-04-21, 09:35
well not sure if that has be fixed but try this

this one has some new features
- tags
- search
- favoruites
- silighty improved gui

edit: updated url to new version (1.5)
http://darkdonno.googlepages.com/youtube-v1-5.zip
post back if you still have issues. if so ill take a look at it.

thanks for the support ;d. this was only meant to be a nice little small script. nothing as advance as quicktimebrowser and the other.

gmackenz
2006-04-23, 08:46
no problems with version 1.2!

thanks!

Rand Al Thor
2006-04-23, 11:04
yeah dude the script looks great! :kickass:

regress
2006-04-23, 22:49
the website seems to be down, and this seems like the perfect script for me (^_^) any mirrors/other links?

thanks so much for you work! :bowdown:

donno
2006-04-24, 04:52
note: this post was changed to remove old 1.3 link info but left the rest of the post
now heres version 1.5
this is the latest link avaible as of now
http://darkdonno.googlepages.com/youtube-v1-5.zip

now it shouldn't crash if the directory does not exist.
sorry regress, last night i decided to clear all the old version from my webspace.

have fun and enjoy
favorites, search, tags, saving, all should now work

AC713
2006-04-28, 19:04
youtube changed their setup today and i can't load youtube videos on my xbox anymore

can anybody confirm this?

also feel free to use this image i made for your plugin if u want
http://img.photobucket.com/albums/v210/iamjosh/youtube.png

AC713
2006-04-28, 19:05
after looking around, i realized that the magic http://youtube.com/get_video?video_id= doesn't work anymore.

regress
2006-04-28, 23:19
also, is it possible to save the file when it's downloaded? i see the save button in the lower left-hand corner, but not sure exactly *what* that saves. and finally, is it difficult to have the video playing in the lower left-hand corner (when there are no buttons there) while browsing other videos?

an finally, i had to manually create the f:\youtube_downloads folder - normal?

great work, by the way!

regards,
regress

blaik2k4
2006-04-30, 07:38
i just got use to using the youtube script any clue on when the next working script will be done?
i realize the site updated now it can search still just not veiw? any clues? :idea:

donno
2006-04-30, 10:47
@regress: yeh orignal you had to manual create it, thou i think in 1.3 i added code to auto make the directory for you.

@blaik2k4:last i heard there was a issue in the dvd player playing flv over the net so ticking save would have fixed it but no worries now.

but acutally ac713 is correct they seem to added an extra string
http://www.youtube.com/get_vid....lok_b2s (http://www.youtube.com/get_video?video_id=3u2qrxb4xcu&t=oegstopdsklh6hx40gsauqc7blok_b2s)

so i may have to add some more code to phrase the extra string. eg go to http://youtube.com/watch?v=ua-hik4_dyk to get the extra string then can use http://youtube.com/get_video?video_id=%id%&t=%str%

if anyone else can find
prolbey be a week till i make the next version, (thou may release a quick little one to fix the current issues, but until dvdplayer in xbmc is solved not really worth it yet)




well you are lucky i didn't have a xbox or nothing else to do :d
try version below:
'edit' changed url to 1.5
http://darkdonno.googlepages.com/youtube-v1-5.zip
notes: i haven't actually tested it on xbox. so if it works gives us a shout

thou if u try to play it and it doesn't work, try 'ticking' save and try again. (just in case dvdplayer http is broken)

AC713
2006-04-30, 21:52
:thumbsup:

it works playing videos fine, but occasionally cuts out when playing.
<s>saving videos works fine also</s> if you save more that one video every download you have shows up as your first download.
http://img.photobucket.com/albums/v210/iamjosh/youtube-error.jpg
using cvs 18 april 2006

apart from that, it's an awesome script

blaik2k4
2006-05-01, 06:28
:cool:

blaik2k4
2006-05-04, 02:31
it barly works most the time it freezes is it my xbmc build? i have the newest

donno
2006-05-04, 10:00
sorry there is nothing i can do at the moment,

as i said, changes to their website caused one problem, and another change in the xbmc source code caused another.

also blaik2k4 next time i just suggest u edit your post (if no one has posted after you).

note: as of 5 of may, youtube.com has changed again, this time you can manually edit it to fix it

the_t_reg = str('var fo = new flashobject\("\/player.swf[?]video_id=.*[&]l=.*[&]t=([^"]*)')
to
the_t_reg = str('var fo = new flashobject\("\/player2.swf[?]video_id=.*[&]l=.*[&]t=([^"]*)')

eg the player2.swf is the bit that has changed

blaik2k4
2006-05-15, 13:27
if anyone can fix the current youtube script so it works again please do so i was watching an anime series and im onley halfway through. thanks :thumbsup:

blaik2k4
2006-05-15, 13:27
:nuts:

Logi
2006-05-16, 17:29
is it working for anyone? i have made the change and nothing.. i do not even get a list of videos.. any suggestions? or is it not working for everyone?

blaik2k4
2006-05-17, 00:15
it stopped working late last week its everyone

julius.hibbert
2006-05-17, 22:01
i have updated to v1.4, too.
and i'am sorry, but this script isn't working no more.
could anybody please help us?
my girlfriend asks for it. :-)

blaik2k4
2006-05-17, 23:45
from what i understand donno is working on it. i hope he has something soon

donno
2006-05-22, 16:59
just found out that they changed there site/html again so script broke

try http://darkdonno.googlepages.com/youtube-v1-5.zip

note i haven't tested it on my xbox but teh only diff is regexp string.

hope it works

blaik2k4
2006-05-22, 17:03
works beautiful works great. you are the master :bowdown:

AC713
2006-05-24, 07:05
thanks a bunch for the script man!

yesterday
2006-05-25, 11:55
the new youtube script (v1.5) works very randomly for me. when i first boot and load the script, i can play a single video. however, when the video finishes (or i cancel it by hitting b) and i am returned to the menu to play another, it will not work. selecting a video will present the appropriate dialogs, but when they close nothing happens. selecting other videos results in the same.

in all fairness, i'm not sure that the youtube script is entirely to blame as i am having vaguely similar problems with googlevideo (freezing), launchbrowser, and qt-trailer scripts.

any advice would be appreciated.

blaik2k4
2006-05-25, 15:56
i think its the xbmc build . im having the same trouble

Logi
2006-05-26, 02:42
works great.. one question. anyway to increase the number of results.. or get more pages of results during searchs or what not? as of now it only shows two pages and i can not seem to find a way to advance the search.. and get more results for the same search..

thanks,

Youbecha
2006-05-27, 02:37
the googlevideo one pretty much works...but the youtube one does not work.

i see a list, but get a lockup when i try to play.

any hints?

blaik2k4
2006-05-27, 10:53
click save first then give it a minute it will eventully play

HarshReality
2006-05-27, 19:41
just curious but as i hear mplayer (the site) supports flv files. has anybody tried to play the direct file in mplayer?

just curious because i have been scalping videos all veek... they got some great oldies on there!


**nevermind i just noticed its a supported extension... back to scalping!

donno
2006-05-28, 04:52
yeh your right harshreality
mplayer 1.0pre7-3.4.2 for windows can play flv, thou i don't think the mplayer in xbmc can, instead the dvdplayer can.
the player still must have issues not much i can really do about it.

brighthammer
2006-05-30, 19:04
fist off let me just say thanks for all the hard work you have done, this script is awesome! i have only one request if it is possible. is there a way to enter my youtube account username and password into the script?