Advertisement
Guest User

jtv plugin diff

a guest
Apr 6th, 2012
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.33 KB | None | 0 0
  1. diff -Naur ./default.py /home/mythtv/.xbmc/addons/plugin.video.jtv.archives/default.py
  2. --- ./default.py        2012-03-15 17:48:40.000000000 +1000
  3. +++ /home/mythtv/.xbmc/addons/plugin.video.jtv.archives/default.py      2012-04-07 10:05:26.927912305 +1000
  4. @@ -332,7 +332,7 @@
  5.  def playLive(name, play=False):
  6.          headers = {'User-agent' : 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0',
  7.                     'Referer' : 'http://www.justin.tv/'+name}
  8. -        url = 'http://usher.justin.tv/find/'+name+'.json?type=live'
  9. +        url = 'http://usher.justin.tv/find/'+name+'.json?type=live&channel_subscription=&group='
  10.          data = json.loads(get_request(url,headers))
  11.          if data == []:
  12.              if debug == 'true':
  13. @@ -345,7 +345,7 @@
  14.              except:
  15.                  if debug == 'true':
  16.                      print '---- User Token Error ----'
  17. -                xbmc.executebuiltin("XBMC.Notification(Jtv,User Token Error - This channel may be privte.,5000,"+ICON+")")
  18. +                xbmc.executebuiltin("XBMC.Notification(Jtv,User Token Error - This channel may be private.,5000,"+ICON+")")
  19.                  return
  20.              rtmp = data[0]['connect']+'/'+data[0]['play']
  21.              swf = ' swfUrl=%s swfVfy=1' % getSwfUrl(name)
  22. @@ -697,4 +697,4 @@
  23.      print ""
  24.      remove_search(name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement