Kozz wrote:Hey Jan,
I just added the TouTV one yesterday, there might be a bug or not compatible with our ffmpeg, the log is attached to the bugtracker ticked I posted if you care to look., going to keep it in trunk till we know why its freezing xbmc.
Hey Kozz !
First you have not adapted the code for the current stable xbmc4xbox release.
i have for import json added :
try:
import json
except:
import simplejson as json
then the addon can work on python 2.4 and the newer Version what have a integrated json what is from the Version 2.7 faster as the old somplejson import.
since the stream geolocked , i mean only accessable on one Country?
-the developer from this addon read not the url complete over json (i think that where the better option to access the streaming url or the error code)
simple i say that addon can not work than on the json result is not a streaming url what since accessable.
its give following back:
example :
{
url: null,
message: "Le contenu sélectionné n'est pas disponible dans votre pays",
errorCode: 1,
params: null,
bitrates: null
}
the json[message] say that is not accessable in my country and that is the same with all clips what i have tested.
works that in your country on main xbmc?
can you give me the json ouput (contents) from you country the example url '
http://api.radio-canada.ca/validationMe ... pokej5uYoq'
best result for this you have on googlechrome or Firefox the extension JSONView installed!
i mean add simple a print 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'+url to the default py on line 304.
the dev locks than:
def playVideo(url, name, thumb, plot):
url_data = readUrl(url, None)
p = re.compile('"idMedia":"(.+?)"')
pid = p.findall(url_data) # Fetch the video id
url = TOUTV_API_URL + pid[0]
url_data = readUrl(url, None) # Get video url
print 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'+url
jdata = json.loads(url_data)
rtsp_url = jdata['url']
print rtsp_url
rtsp_url = re.compile('(.+?)\\?').findall(rtsp_url)[0] # Find the mp4 rtsp link
rtsp_url = rtsp_url.replace('_800.', '_1200.'); # We want the best quality...
item = xbmcgui.ListItem(label=name,iconImage="DefaultVideo.png",thumbnailImage=thumb)
item.setInfo( type="Video", infoLabels={ "Title": name, "Plot": plot } )
xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(rtsp_url, item)
and than start the addon on main xbmc withe debug on and put the ffffffffffffffffffffffffffffffffffffffurl to your browser and post the result.
then we can look on the url result and i hope its give a other solution as stream over rtsp.
Regards Jan
Edit: the addon its not working and than it's go for the moment to the not working Branch.
EDIT2
Hey can you look on the iphone api '
http://api.radio-canada.ca/validationMe ... i&idMedia='
this give a m3u8 but i can not on my country test .
or you access the stream as rtmp i think that can help :
http://store-it.appspot.com/tou/tou.html