justin.tv data not found

Requests, suggestions, support, and everything else python / plugin related.
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

justin.tv data not found

Post by NOTTHESAME »

hey coders for xbmc4xbox ,can someone tell me whats wrong when i try to play a video it says Data Not Found im not sure if its only me or everyone else?
could some fix this, iw as watching a show that i cant see anywhere else and now i cant on my xbmc4xbox, thanks and please fix
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: justin.tv data not found

Post by skatulskijean »

NOTTHESAME wrote:hey coders for xbmc4xbox ,can someone tell me whats wrong when i try to play a video it says Data Not Found im not sure if its only me or everyone else?
could some fix this, iw as watching a show that i cant see anywhere else and now i cant on my xbmc4xbox, thanks and please fix
pleace post a debug log
User avatar
Dan Dar3
Posts: 1176
Joined: Sun Jul 08, 2012 4:09 pm
Has thanked: 273 times
Been thanked: 257 times
Contact:

Re: justin.tv data not found

Post by Dan Dar3 »

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

Re: justin.tv data not found

Post by NOTTHESAME »

im so sorry i had forgot to upload it here, it wont happen again i know it can get annoying just a mistake sorry again

heres the pastebin

http://pastebin.com/YsGEFJJU

thank you guys :)
User avatar
Dan Dar3
Posts: 1176
Joined: Sun Jul 08, 2012 4:09 pm
Has thanked: 273 times
Been thanked: 257 times
Contact:

Re: justin.tv data not found

Post by Dan Dar3 »

It's fine, it's quite important though for when plugins fail they usually output debug information or errors in there. Yours is not a debug log, notice there is no DEBUG lines in there, only ERROR, WARNING and NOTICE.

Anyway, you seem to be running XBMC4Xbox 3.3.3, no information on version of Jtv plugin. I just tried similar with Jtv plugin from Addons4Xbox Installer (0.3.6), but I can't figure out what you did to get to the entry where it says unplayable...

Code: Select all

16:25:32 M: 29147136   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://video/Jtv/?url=&mode=2&name=highspothorror433&iconimage=http%3A%2F%2Fstatic-cdn.jtvnw.net%2Fjtv_user_pictures%2Fhighspothorror433-profile_image-BCq8eOQhLUsAKIm-600x600.jpg]
I'll leave it to Jan to take over, he seems to be maintaining it for XBMC4Xbox and definitely knows it better.
http://www.xbmc4xbox.org.uk/addons/
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: justin.tv data not found

Post by NOTTHESAME »

3.6 from addons 4 xbmc ialways use thoses updatesdid i need something else or was it the wrong file if so please let me know
User avatar
Dan Dar3
Posts: 1176
Joined: Sun Jul 08, 2012 4:09 pm
Has thanked: 273 times
Been thanked: 257 times
Contact:

Re: justin.tv data not found

Post by Dan Dar3 »

You mean how to get a Debug log instead of a normal log?

It says it here in the Debug Logs section:
http://www.xbmc4xbox.org.uk/forum/viewt ... p?f=6&t=65

Go to Settings > System > Debugging and enable debugging, then replicate the issue (in your case, run the plugin, navigate where you need to and try to playback what you were playing).
That'll record more information about your actions. Before uploading look into your xbmc.log with a text editor and you should notice the word DEBUG in it.
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: justin.tv data not found

Post by NOTTHESAME »

Okay got it :) here you go ====== > http://pastebin.com/1cTYd7mW
thanks again guys
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: justin.tv data not found

Post by NOTTHESAME »

Did i forgot to add anything else? The plugin was the 1 from addons4xbox installer.
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: justin.tv data not found

Post by skatulskijean »

the 3.6 Version is not working on main xbmc to.
Jtv switched to HLS stream support what is not a problem on xbmc4xbox self .
Actual is Version 0.3.9 what have initial support for hls streams and updated python version for mainxbmc Gotham compatibility.

But ican momently not adapt or update for the xbmc4xbox repo then my inet at home is broken and i can not test a addon or script on the xbox self.
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: justin.tv data not found

Post by NOTTHESAME »

Okay thanks i tired all 2.5 to 3.9 none work i see when u get things going then you can please fix thank you


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

Re: justin.tv data not found

Post by skatulskijean »

on my lmtv.us addon i access the mobile (iphone ) api for the jtv streams and you watch finaly the m3u8 playlist (hls).

what is your favorite channel on jtv?

merry xmas

Jan

Edit1

the access to the playable HLS stream is verry simple with python.

Python Code:

import urllib2
import re
try:
import json
except:
import simplejson as json

#Jtv Channel Url on Webbrowser example Stargate is http://www.justin.tv/gatedsg
#the Channel is the gatedsg

channel='gatedsg'
url='http://api.twitch.tv/api/channels/%s/access_token' % channel
stream = json.loads(urllib2.urlopen(url).read())
token= stream['token']
sig= stream['sig']
m3u8url='http://usher.twitch.tv/api/channel/hls/ ... =%s&sig=%s' % (channel,token,sig)
# this is the m3u8 playable m3u8 Playlist url you can this url paste to vlc and you can watch the stream
print m3u8url


with this is it simple to ceate your own addon for your favorite jtv channel on the stable xbmc4xbox build you want only to install the scriptmodule simplejson on the nighly's python 2.7 is json integrated.

want you a example addon?

Edit2

When you want the archive from a Channel you can this access over json api to.

Example Channel on webbrowser is http://www.justin.tv/lucideviancy1

to access the archive you can simple access on the browser http://api.justin.tv/channel/archives/l ... &limit=100

this give you the archive from this channel wirh the playable url , titel ,picture description and more.
the video_file_url: on this json output give you the playable streamurl .
You can this paste to vlc and its works.
the access for this on python i very simple to.
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: justin.tv data not found

Post by NOTTHESAME »

Thank you very much ill try my best to do this i think i can get it to play :) if i need help please help let me learn please :) thank you buddy :)
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: justin.tv data not found

Post by NOTTHESAME »

I try can you make a playlist 41 univision then upload the files so i can see which files then i see myself so i can make other channels i want, if easier for both of us please
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: justin.tv data not found

Post by NOTTHESAME »

what is token?

i was trying to setup agvn jon tron from justin.tv
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: justin.tv data not found

Post by skatulskijean »

what is th jtv.url for this.
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: justin.tv data not found

Post by NOTTHESAME »

The avgn page but let try to find it
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: justin.tv data not found

Post by skatulskijean »

@NOTTHESAME

ok i have it quick do for you:

what we want for this a search for avgn on justin.tv:
i do that over the justin api with this url= http://api.justin.tv/api/stream/search/avgn.json
when you that url open on your webbrowser you see all information what we want.


on python i do that with this code:
search='avgn'
api='http://api.justin.tv/api/stream/search/%s.json' % search
channels=[]
html=requests.get(api).json()
for channel in html:
channels.append(channel)
for channel in channels:
title=channel['channel']['status'].encode('utf-8')
url=channel['channel']['channel_url']
fanart=channel['channel']['screen_cap_url_large']
thumb=channel['channel']['screen_cap_url_medium']
url=re.sub('http://www.justin.tv/','',url)

the code to access the m3u8 url have i posted before.
And with this we can make a addon what hold all the channels from avgn with title ,thumb,fanart and streamingurl.

i have it do for you and give the download for the addon a litlle bit later.

You can than look on the default.py code to better understand.
we can this addon make better when we read the m3u8.url and access the different streaming quality.
you can put a other channel name under search

anyway the download is here only working on the beta builds with python 2.7:
https://db.tt/kPQQWB5Y

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

Re: justin.tv data not found

Post by NOTTHESAME »

Please can u tell me which version i downloaded xbmc not stable i have 3.5.b2 i try also on xbmc latest version 32???? I forgotbut newest one thank you
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: justin.tv data not found

Post by skatulskijean »

NOTTHESAME wrote:Please can u tell me which version i downloaded xbmc not stable i have 3.5.b2 i try also on xbmc latest version 32???? I forgotbut newest one thank you
Yes i mean as build with python 2.7 the Last 3.5 beta 2.
But i must say to my bad the xbox can not handle the streams (is a bug on the ffmpeg version on 3.5 beta 2)
I have it not tested on the newest builds . when it on this builds not works than i open a ticket on the bugtracker.
on xbmcmain eden is it working without proplems and this solution was for me working on others addons from me what access a justin.tv video on xbmc4xbox to.

Sorry but the only what than on moment can help is buzz with fixing the ffmpeg build.
i have the latest jtv addon from main xbmc adapted to.
But the streams since not working , fffmpeg error on the hls streams m3u8 , what is the apple format and the rtmp files since not working without a rtmplib from kSV!
So momently no go for justin.tv sttreams without fixing the xbmc4xbox Source self.

ON the 3.5 Beta 1 since the streams working without problems
Post Reply