Help URL Extraction
#1
Hello Everyone,

I need help extracting this URL so I can play this stream in XBMC

http://www.youtube.com/watch?v=rB_mgFuLSdk

anyone care to help me here?

thanks in advance
Reply
#2
maxtus Wrote:Hello Everyone,

I need help extracting this URL so I can play this stream in XBMC

http://www.youtube.com/watch?v=rB_mgFuLSdk

anyone care to help me here?

thanks in advance

Why not just use the existing youtube plugin to play the video?

Just send your playback call to
PHP Code:
plugin://plugin.video.youtube/?path=root/video&action=play_video&videoid=ID 
Reply
#3
TobiasTheCommie Wrote:Why not just use the existing youtube plugin to play the video?

Just send your playback call to
PHP Code:
plugin://plugin.video.youtube/?path=root/video&action=play_video&videoid=ID 

Thanks for a quick response Tobias but It doesnt work, i tried that before, it doesnt even do anything when i do the code, any idea why not? this is no doubt the easiest way possible

Code:
,
    "plugin://plugin.video.youtube/?path=root/video&action=play_video&videoid=rB_mgFuLSdk": {
        "thumb": "otv.png",
        "channel": "OTV",
        "category": "All"
    }
Reply
#4
I don't know, you haven't given enough code or log.

But i suspect it is a problem of you how make your listitem.

It isn't set to being playable, or isn't set to being a video. Or something like that.
Reply
#5
TobiasTheCommie Wrote:I don't know, you haven't given enough code or log.

But i suspect it is a problem of you how make your listitem.

It isn't set to being playable, or isn't set to being a video. Or something like that.

Tobi,

here is the log file, can you make something of this? i suspect my plugin isn't initializing as the URL itself works flawless in windows

Code:
18:07:58 T:6256 M:1057251328  NOTICE: YouTube-2.1.3 getVideoUrlMap Searching for fmt_url_map 2: [u'url=http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=909515,912300,915002&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=3CF685D5CA8DD670ED29E6ED9E3F6D65E352864A.811C04E8C4AB202374E5294489E2BAC1BB33596F&source=youtube&expire=1325662658&key=yt1&ip=173.0.0.0&cp=U0hRSlZRUF9KUkNOMV9OS1RHOkI0WmpoRDBIdS1D&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com&type=video/x-flv&itag=34']
18:07:58 T:6256 M:1057251328   ERROR:  XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.
18:07:58 T:5868 M:1057251328  NOTICE: YouTube-2.1.3 getVideoUrlMap Searching for fmt_url_map 2: [u'url=http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=903104,919101,907202,913102,901604&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=974A43A01F3D2AC75A5DC443843C0F06A1D420B0.95EA645BD8C574FA60E58675D435EE512F8EDDD1&source=youtube&expire=1325662658&key=yt1&ip=173.0.0.0&cp=U0hRSlZRUF9KUkNOMV9OS1RHOkgzWmpmREFaMVlr&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com&type=video/x-flv&itag=34']
18:07:58 T:5868 M:1057251328   ERROR:  XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.
18:08:00 T:288 M:1057386496  NOTICE: YouTube-2.1.3 getVideoUrlMap Searching for fmt_url_map 2: [u'url=http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=912209,912301,913404,910210&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=0DF00A253F0EFBCF34F89B6444ED49CFBAA56289.6C44D82ED8FBBDC46299EDCAE36A7E426C7B4ADF&source=youtube&expire=1325662658&key=yt1&ip=173.0.0.0&cp=U0hRSlZRUF9KUkNOMV9OS1RHOlRHaGZHUTJudFVz&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com&type=video/x-flv&itag=34']
18:08:00 T:288 M:1057386496   ERROR:  XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.
18:08:00 T:3172 M:1058381824  NOTICE: YouTube-2.1.3 getVideoUrlMap Searching for fmt_url_map 2: [u'url=http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=906012&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=2A9243404AB3D5821F0836B6A84DD2498D0D74D8.5BA92B03E0A80517CF519C4A132386E0628FB662&source=youtube&expire=1325662658&key=yt1&ip=173.0.0.0&cp=U0hRSlZRUF9KUkNOMV9OS1RHOlltdHUxcTFXbE5N&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com&type=video/x-flv&itag=34']
18:08:00 T:3172 M:1058381824   ERROR:  XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.
18:08:00 T:6872 M:1058373632  NOTICE: YouTube-2.1.3 getVideoUrlMap Searching for fmt_url_map 2: [u'url=http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=909337&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=73625BD2900826947B9BCBF0EF9BE57DBF19C43A.011C53852B7A162B80C335797831A0944BCBCFCE&source=youtube&expire=1325662658&key=yt1&ip=173.0.0.0&cp=U0hRSlZRUF9KUkNOMV9OS1RHOmlvUHMtTjY2UE00&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com&type=video/x-flv&itag=34']
18:08:01 T:6872 M:1058390016   ERROR:  XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.
18:08:01 T:6480 M:1059061760  NOTICE: YouTube-2.1.3 getVideoUrlMap Searching for fmt_url_map 2: [u'url=http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=907611,910100,916201&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=17DF40A63E4763292C9C79104C38762A3B9C5934.54989187D1F2ABE99FCED63E9F7D86809F035203&source=youtube&expire=1325662658&key=yt1&ip=173.0.0.0&cp=U0hRSlZRUF9KUkNOMV9OS1RHOkVpcFU2dGptbE53&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com&type=video/x-flv&itag=34']
18:08:01 T:6480 M:1059061760   ERROR:  XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.
18:12:41 T:6080 M:1066663936  NOTICE: -->Python Interpreter Initialized<--
18:12:42 T:6080 M:1065496576  NOTICE: METADATA FILE LOADED
18:12:50 T:6428 M:1061584896   ERROR: Unable to find plugin plugin.some.plugin
Reply
#6
TobiasTheCommie Wrote:I don't know, you haven't given enough code or log.

But i suspect it is a problem of you how make your listitem.

It isn't set to being playable, or isn't set to being a video. Or something like that.

I also tried to play the ID in Youtube plugin itself in xbmc and that works fine so there is got to be something to fix this issue
Reply
#7
18:08:01 T:6480 M:1059061760 ERROR: XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.

That suggest to me that it is either an error in your code(if you use the handle), or an error in your version of XBMC. It should be fixed in the Eden Beta.

ETA: If not, enabling debugging in the youtube plugin might give more info.
Reply
#8
TobiasTheCommie Wrote:18:08:01 T:6480 M:1059061760 ERROR: XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.

That suggest to me that it is either an error in your code(if you use the handle), or an error in your version of XBMC. It should be fixed in the Eden Beta.

ETA: If not, enabling debugging in the youtube plugin might give more info.

okay i'll update to Eden but where is the youtube debug file? Like i said, it works fine in the Youtube Addon, I am not using a handle in the code, and since it works fine, I think Eden wouldn't even do it but I am upgrading it now, such small thing could cause so much grief, its crazy...
Reply
#9
The youtube plugin needs to have debug enabled. And the output will be in the normal xbmc.log file.
Reply
#10
TobiasTheCommie Wrote:The youtube plugin needs to have debug enabled. And the output will be in the normal xbmc.log file.
here you go bro,

please help me fix this, thanks

Code:
19:02:09 T:5148  NOTICE: -->Python Interpreter Initialized<--
19:02:10 T:5148  NOTICE: YouTube-2.1.3 ARGV: ['plugin://plugin.video.youtube/', '-1', '?path=root/video&action=play_video&videoid=rB_mgFuLSdk']
19:02:10 T:5148  NOTICE: YouTube-2.1.3 fetching page : http://gdata.youtube.com/feeds/api/videos/rB_mgFuLSdk
19:02:10 T:5148  NOTICE: YouTube-2.1.3 _getvideoinfo: 7693
19:02:10 T:5148  NOTICE: YouTube-2.1.3 _getvideoinfo done : 1
19:02:10 T:5148  NOTICE: YouTube-2.1.3 _getVideoLinks trying website
19:02:10 T:5148  NOTICE: YouTube-2.1.3 fetching page : http://www.youtube.com/watch?v=rB_mgFuLSdk&safeSearch=none
19:02:11 T:5776  NOTICE: -->Python Interpreter Initialized<--
19:02:11 T:5776  NOTICE: YouTube-2.1.3 ARGV: ['plugin://plugin.video.youtube/', '-1', '?path=root/video&action=play_video&videoid=rB_mgFuLSdk']
19:02:11 T:5776  NOTICE: YouTube-2.1.3 fetching page : http://gdata.youtube.com/feeds/api/videos/rB_mgFuLSdk
19:02:11 T:5776  NOTICE: YouTube-2.1.3 _getvideoinfo: 7693
19:02:11 T:5776  NOTICE: YouTube-2.1.3 _getvideoinfo done : 1
19:02:11 T:5776  NOTICE: YouTube-2.1.3 _getVideoLinks trying website
19:02:11 T:5776  NOTICE: YouTube-2.1.3 fetching page : http://www.youtube.com/watch?v=rB_mgFuLSdk&safeSearch=none
19:02:12 T:5148  NOTICE: YouTube-2.1.3 getVideoUrlMap:
19:02:12 T:5148  NOTICE: YouTube-2.1.3 getVideoUrlMap Searching for fmt_url_map 2: [u'url=http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=904550,901050,913105,914102&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=92390EDB1E51ACE302B7625607C2E31C739A0E1E.63AD3A32288146D169369AAAA43B4F3D84ABE4D4&source=youtube&expire=1325666258&key=yt1&ip=173.0.0.0&cp=U0hRSlZRVF9KUkNOMV9OS1hDOmU5emNnWURNMHRz&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com&type=video/x-flv&itag=34']
19:02:12 T:5148  NOTICE: YouTube-2.1.3 getVideoUrlMap done {34: u'http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=904550,901050,913105,914102&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=92390EDB1E51ACE302B7625607C2E31C739A0E1E.63AD3A32288146D169369AAAA43B4F3D84ABE4D4&source=youtube&expire=1325666258&key=yt1&ip=173.0.0.0&cp=U0hRSlZRVF9KUkNOMV9OS1hDOmU5emNnWURNMHRz&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com'}
19:02:12 T:5148  NOTICE: YouTube-2.1.3 selectVideoQuality :
19:02:12 T:5148  NOTICE: YouTube-2.1.3 selectVideoQuality done
19:02:12 T:5148  NOTICE: YouTube-2.1.3 makeAscii hit except on : 'ONtv Livestreaming - \xd8\xa7\xd9\x84\xd8\xa8\xd8\xab \xd8\xa7\xd9\x84\xd8\xad\xd9\x8a'
19:02:12 T:5148  NOTICE: YouTube-2.1.3 - Playing video: ONtv Livestreaming -   - rB_mgFuLSdk - http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=904550,901050,913105,914102&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=92390EDB1E51ACE302B7625607C2E31C739A0E1E.63AD3A32288146D169369AAAA43B4F3D84ABE4D4&source=youtube&expire=1325666258&key=yt1&ip=173.0.0.0&cp=U0hRSlZRVF9KUkNOMV9OS1hDOmU5emNnWURNMHRz&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
19:02:12 T:5148   ERROR:  XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.
19:02:12 T:6272  NOTICE: -->Python Interpreter Initialized<--
19:02:12 T:6272  NOTICE: YouTube-2.1.3 ARGV: ['plugin://plugin.video.youtube/', '-1', '?path=root/video&action=play_video&videoid=rB_mgFuLSdk']
19:02:12 T:6272  NOTICE: YouTube-2.1.3 fetching page : http://gdata.youtube.com/feeds/api/videos/rB_mgFuLSdk
19:02:12 T:6272  NOTICE: YouTube-2.1.3 _getvideoinfo: 7693
19:02:12 T:6272  NOTICE: YouTube-2.1.3 _getvideoinfo done : 1
19:02:12 T:6272  NOTICE: YouTube-2.1.3 _getVideoLinks trying website
19:02:12 T:6272  NOTICE: YouTube-2.1.3 fetching page : http://www.youtube.com/watch?v=rB_mgFuLSdk&safeSearch=none
19:02:13 T:5776  NOTICE: YouTube-2.1.3 getVideoUrlMap:
19:02:13 T:5776  NOTICE: YouTube-2.1.3 getVideoUrlMap Searching for fmt_url_map 2: [u'url=http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&cp=U0hRSlZRVF9KUkNOMV9OS1hDOjN2TWJ4Zi1PS3E2&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=05A56FC8F081CD5CEC99103BCE390CB38E4ACA4E.2C951BDC5B569FAD6CB97172EC11BE55779C6602&source=youtube&expire=1325666258&key=yt1&ip=173.0.0.0&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com&type=video/x-flv&itag=34']
19:02:13 T:5776  NOTICE: YouTube-2.1.3 getVideoUrlMap done {34: u'http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&cp=U0hRSlZRVF9KUkNOMV9OS1hDOjN2TWJ4Zi1PS3E2&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=05A56FC8F081CD5CEC99103BCE390CB38E4ACA4E.2C951BDC5B569FAD6CB97172EC11BE55779C6602&source=youtube&expire=1325666258&key=yt1&ip=173.0.0.0&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com'}
19:02:13 T:5776  NOTICE: YouTube-2.1.3 selectVideoQuality :
19:02:13 T:5776  NOTICE: YouTube-2.1.3 selectVideoQuality done
19:02:13 T:5776  NOTICE: YouTube-2.1.3 makeAscii hit except on : 'ONtv Livestreaming - \xd8\xa7\xd9\x84\xd8\xa8\xd8\xab \xd8\xa7\xd9\x84\xd8\xad\xd9\x8a'
19:02:13 T:5776  NOTICE: YouTube-2.1.3 - Playing video: ONtv Livestreaming -   - rB_mgFuLSdk - http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&cp=U0hRSlZRVF9KUkNOMV9OS1hDOjN2TWJ4Zi1PS3E2&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=05A56FC8F081CD5CEC99103BCE390CB38E4ACA4E.2C951BDC5B569FAD6CB97172EC11BE55779C6602&source=youtube&expire=1325666258&key=yt1&ip=173.0.0.0&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
19:02:13 T:5776   ERROR:  XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.
19:02:13 T:5736  NOTICE: -->Python Interpreter Initialized<--
19:02:13 T:5736  NOTICE: YouTube-2.1.3 ARGV: ['plugin://plugin.video.youtube/', '-1', '?path=root/video&action=play_video&videoid=rB_mgFuLSdk']
19:02:13 T:5736  NOTICE: YouTube-2.1.3 fetching page : http://gdata.youtube.com/feeds/api/videos/rB_mgFuLSdk
19:02:14 T:6272  NOTICE: YouTube-2.1.3 getVideoUrlMap:
19:02:14 T:6272  NOTICE: YouTube-2.1.3 getVideoUrlMap Searching for fmt_url_map 2: [u'url=http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=906017,916800&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=1A50A15F95A51AED86A0CF6F05D854D4B92F2A99.8C272F483BE466B0FE60D75170B9B526E7FE730E&source=youtube&expire=1325666258&key=yt1&ip=173.0.0.0&cp=U0hRSlZRVF9KUkNOMV9OS1hDOnFVNjFXV3dqUTNJ&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com&type=video/x-flv&itag=34']
19:02:14 T:6272  NOTICE: YouTube-2.1.3 getVideoUrlMap done {34: u'http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=906017,916800&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=1A50A15F95A51AED86A0CF6F05D854D4B92F2A99.8C272F483BE466B0FE60D75170B9B526E7FE730E&source=youtube&expire=1325666258&key=yt1&ip=173.0.0.0&cp=U0hRSlZRVF9KUkNOMV9OS1hDOnFVNjFXV3dqUTNJ&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com'}
19:02:14 T:6272  NOTICE: YouTube-2.1.3 selectVideoQuality :
19:02:14 T:6272  NOTICE: YouTube-2.1.3 selectVideoQuality done
19:02:14 T:6272  NOTICE: YouTube-2.1.3 makeAscii hit except on : 'ONtv Livestreaming - \xd8\xa7\xd9\x84\xd8\xa8\xd8\xab \xd8\xa7\xd9\x84\xd8\xad\xd9\x8a'
19:02:14 T:6272  NOTICE: YouTube-2.1.3 - Playing video: ONtv Livestreaming -   - rB_mgFuLSdk - http://o-o.preferred.iad09s10.v7.lscache6.c.youtube.com/liveplay?sparams=id,expire,ip,ipbits,itag,source,ns,algorithm,burst,factor,cp&fexp=906017,916800&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&signature=1A50A15F95A51AED86A0CF6F05D854D4B92F2A99.8C272F483BE466B0FE60D75170B9B526E7FE730E&source=youtube&expire=1325666258&key=yt1&ip=173.0.0.0&cp=U0hRSlZRVF9KUkNOMV9OS1hDOnFVNjFXV3dqUTNJ&factor=1.25&ns=yt-live&id=rB_mgFuLSdk&quality=medium&fallback_host=tc.v12.cache8.c.youtube.com | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
19:02:14 T:6272   ERROR:  XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.
19:02:14 T:5736  NOTICE: YouTube-2.1.3 _getvideoinfo: 7693
19:02:14 T:5736  NOTICE: YouTube-2.1.3 _getvideoinfo done : 1
19:02:14 T:5736  NOTICE: YouTube-2.1.3 _getVideoLinks trying website
19:02:14 T:5736  NOTICE: YouTube-2.1.3 fetching page : http://www.youtube.com/watch?v=rB_mgFuLSdk&safeSearch=none
Reply

Logout Mark Read Team Forum Stats Members Help
Help URL Extraction0