great,divingmule thats good news.
Name the channels that is so,i will take a look
you can use ffplay to play those m3m8 urls using a .bat
i manage to to play those small user channels by doing this i changed some of your code.
using # at the higher rtmp= (twittv,creative..) you can play via the lower rtmp= user channels
Code:
amf_data = make_request(amf_url)
match = re.compile('.*(rtmp://.+?)\x00.*').findall(amf_data)
stre = re.compile('.*streamName\W\W\W(.+?)[/]*\x00.*').findall(amf_data)
#rtmp = match[0] + stre[0]
match1 = re.compile('fmsUrl\W\W\S(.+?)\x00.*').findall(amf_data)
rtmp = match1[0] + '/streams/live_1'
url = rtmp + ' swfurl=http://www.ustream.tv/flash/viewer.swf pageUrl=http://www.ustream.tv live=true'
item = xbmcgui.ListItem(path=url)
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, item)
i notice there are a lot of channels that dont start,because the info from json the user/name is not right
by viewing the error log and compare it with html page source.
error log: NOTICE: URL: GTBecker
NOTICE: Name: Bowcam
html:
<a href="/user/GTBecker" class="username">
<a href="/channel/bowcam" class="shadowbox">
htop://www.ustream.tv/channel/bowcam
error log: NOTICE: URL: creativetechs
NOTICE: Name: creativeLIVE
html:
<a href="/user/creativetechs" class="username">
<a href="/creativelive" class="shadowbox">
htop://www.ustream.tv/creativelive
error log: NOTICE: URL: mococableoffice
NOTICE: Name: BoldHappenings
html:
<a href="/user/mococableoffice" class="username">
<a href="/channel/boldhappenings" class="shadowbox">
htop://www.ustream.tv/channel/boldhappenings
the bad info came from json?,can the right channel info be taken from html instead?
cidname = re.compile('<a href="/(.+?)" class="shadowbox">
-