Browse Source

Compatibility update

Lietotājs Parastais 5 years ago
parent
commit
144f176a70
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      ltcproxy.py

+ 3
- 3
ltcproxy.py View File

30
 User-Agent: Shortcut.lv v2.9.1 / Dalvik/1.6.0 (Linux; U; Android 4.4.2; SM-G900FD Build/KOT49H)
30
 User-Agent: Shortcut.lv v2.9.1 / Dalvik/1.6.0 (Linux; U; Android 4.4.2; SM-G900FD Build/KOT49H)
31
 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
31
 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
32
 """)
32
 """)
33
-url0 = "https://manstv.lattelecom.tv/api/v1.7/get/content/"
33
+url0 = "https://manstv.lattelecom.tv/api/v1.4/get/content/"
34
 
34
 
35
 cur_directory = os.path.dirname(os.path.realpath(__file__))
35
 cur_directory = os.path.dirname(os.path.realpath(__file__))
36
 cache_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "cache")
36
 cache_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "cache")
298
 def refresh_live_chunklist_url(ch):
298
 def refresh_live_chunklist_url(ch):
299
     global s, token, headers0
299
     global s, token, headers0
300
     stream_url = live_get_stream_url(ch)
300
     stream_url = live_get_stream_url(ch)
301
-    r = requests.get(stream_url)
301
+    r = requests.get(stream_url + "&auth_token=app_" + token)
302
     if r.status_code <> 200:
302
     if r.status_code <> 200:
303
         print "Error %s getting live chunklist %s"% (r.status_code,stream_url)
303
         print "Error %s getting live chunklist %s"% (r.status_code,stream_url)
304
         raise bottle.HTTPError(r.status_code)
304
         raise bottle.HTTPError(r.status_code)
313
 
313
 
314
 def refresh_epg_chunklist_url(stream_url):
314
 def refresh_epg_chunklist_url(stream_url):
315
     global s, token, headers0
315
     global s, token, headers0
316
-    r = requests.get(stream_url)
316
+    r = requests.get(stream_url + "&auth_token=app_" + token)
317
     if r.status_code <> 200:
317
     if r.status_code <> 200:
318
         print "Error %s getting archive chunklist %s"% (r.status_code,stream_url)
318
         print "Error %s getting archive chunklist %s"% (r.status_code,stream_url)
319
         raise bottle.HTTPError(r.status_code)
319
         raise bottle.HTTPError(r.status_code)