[REQUEST] LMTV addon

Discussion of plugin / script development for XBMC4Xbox
Post Reply
User avatar
byron
Posts: 582
Joined: Wed Jul 04, 2012 9:26 pm
Location: Illinois
Has thanked: 27 times
Been thanked: 96 times

[REQUEST] LMTV addon

Post by byron »

Title says it all...pretty much a dream come true for seemless streaming content of many categories and tv shows...LMTV.us
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: [REQUEST] LMTV addon

Post by Kozz »

This is worth looking into making a plugin for, provided we can get around the "install veetle" part
Image
User avatar
sixties keith
Posts: 534
Joined: Wed Aug 01, 2012 9:30 am
Has thanked: 27 times
Been thanked: 32 times

Re: [REQUEST] LMTV addon

Post 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
Image

120gb hdd, vinyl magma skin, front lights, side strip lights, clear jewel mod with lights, ir dongle mod, hdd indicator. X3 with LCD many mods inc custom x3 jewel.
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: [REQUEST] LMTV addon

Post 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
User avatar
byron
Posts: 582
Joined: Wed Jul 04, 2012 9:26 pm
Location: Illinois
Has thanked: 27 times
Been thanked: 96 times

Re: [REQUEST] LMTV addon

Post 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.
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: [REQUEST] LMTV addon

Post 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
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: [REQUEST] LMTV addon

Post 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
User avatar
byron
Posts: 582
Joined: Wed Jul 04, 2012 9:26 pm
Location: Illinois
Has thanked: 27 times
Been thanked: 96 times

Re: [REQUEST] LMTV addon

Post 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
captainsensation
Posts: 155
Joined: Sat May 18, 2013 5:12 pm
Has thanked: 21 times
Been thanked: 4 times

Re: [REQUEST] LMTV addon

Post by captainsensation »

thank you for this guys.
User avatar
sixties keith
Posts: 534
Joined: Wed Aug 01, 2012 9:30 am
Has thanked: 27 times
Been thanked: 32 times

Re: [REQUEST] LMTV addon

Post 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
Image

120gb hdd, vinyl magma skin, front lights, side strip lights, clear jewel mod with lights, ir dongle mod, hdd indicator. X3 with LCD many mods inc custom x3 jewel.
Post Reply