Page 1 of 1

[REQUEST] LMTV addon

Posted: Wed Nov 13, 2013 4:09 am
by byron
Title says it all...pretty much a dream come true for seemless streaming content of many categories and tv shows...LMTV.us

Re: [REQUEST] LMTV addon

Posted: Wed Nov 13, 2013 5:45 am
by Kozz
This is worth looking into making a plugin for, provided we can get around the "install veetle" part

Re: [REQUEST] LMTV addon

Posted: Wed Nov 13, 2013 11:17 am
by sixties keith
yup this would be great. i too would like to see this

i use the veetle plugin just for lmtv.us streams which work 100% on the xbox

Re: [REQUEST] LMTV addon

Posted: Wed Nov 13, 2013 1:11 pm
by skatulskijean
we want not the veetle addon i access the veetle streams on my main xbmc streamoase addon without it and it's working.

example code for LMTV-Family Gy:
import urllib2
import re
try:
import json
except:
import simplejson as json

url='http://lmtv.us/fg.php'
decode='http://tvmpt.x10.mx/fightnight/decode.php?id='
content=urllib2.urlopen(url).read()
match=re.search('src="http://www.veetle.com/index.php/widget/ ... true/16:9/"', content)
testid=match.group(1)
url=decode+str(testid)
content = urllib2.urlopen(url).read()
test='m'+content+'m'
match=re.search('m (.*?) m', test)
veetleid=match.group(1)
url='http://www.veetle.com/index.php/channel ... n/%s/flash' % veetleid
stream = json.loads(urllib2.urlopen(url).read())
status=stream['success']
if status == True:
url= stream['payload']
print url #this url works over the XbmcPlayer
else:
print "not accable"

when i have the repo updated i make a addon from this Site its verry simple :D
the same code works for the others Veetle url's to .
but jtv is a other situation

Regards Jan

Re: [REQUEST] LMTV addon

Posted: Wed Nov 13, 2013 4:44 pm
by byron
skatulski wrote:when i have the repo updated i make a addon from this Site its verry simple :D
"Simlple" for someone with the knowledge of using python to get their way perhaps (which is what I was counting on when I made the request) ;) When I saw how nicely the content was laid out, it looked promising...Thanks btw for taking the time to get the repo straightened out, it helps all of us out in the long run.

Re: [REQUEST] LMTV addon

Posted: Wed Nov 13, 2013 6:42 pm
by skatulskijean
was a little bit frustreated for the jtv streams on this site but it's not a problem without working jtv or twitch tv addon:

Example:

import urllib2
import re
import json

url='http://lmtv.us/tg.php'
content=urllib2.urlopen(url).read()
#print content
match=re.search('<param name="flashvars" value=".*?channel=(.*?)&',content,re.S)
channel=match.group(1)
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)
print m3u8url #the url playing on vlc fine


Regards Jan

Re: [REQUEST] LMTV addon

Posted: Wed Nov 13, 2013 10:07 pm
by skatulskijean
Test Version 0.0.1

momently integrated streaming hoster veetle and jtv.

todo:
- bring te rest categories as example music , news to work.

-Add a better timlinecode when xbmc can not read the correct time from the stream as example the stream standing on 50% and will not play (its fixed for veetle) and 100% is fixed for jtv)

-add a better icon and a Fanart.
- error handling when a stream is not aviable

dependencies :scriptmodule.simplejson

install first over the addon4xbox Installer from the xbmc4xbox repo the scriptmodule.simplejson than install the addon from zip.

Download: https://db.tt/6q09yTSH

Have fun Jan :D

Re: [REQUEST] LMTV addon

Posted: Wed Nov 13, 2013 11:01 pm
by byron
@ jan...Sie sind absolut herrlich mein Freund! Works like a charm, I knew it wouldn't take much for you and your skills :D

Re: [REQUEST] LMTV addon

Posted: Thu Nov 14, 2013 2:45 am
by captainsensation
thank you for this guys.

Re: [REQUEST] LMTV addon

Posted: Sun Nov 17, 2013 12:13 pm
by sixties keith
thanks mate another nice plugin for the very popular lmtv.us streams.

had a go on my 3.3.3 xbox and results look promising tried various tv shows and all played apart from the star trek feed. also tried other feeds such as the games section and all seemed to be working well.

good work and looking forward to testing further updated. cheers