瀏覽代碼

Compatibility update

Lietotājs Parastais 5 年之前
父節點
當前提交
144f176a70
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      ltcproxy.py

+ 3
- 3
ltcproxy.py 查看文件

@@ -30,7 +30,7 @@ headers0 = headers2dict("""
30 30
 User-Agent: Shortcut.lv v2.9.1 / Dalvik/1.6.0 (Linux; U; Android 4.4.2; SM-G900FD Build/KOT49H)
31 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 35
 cur_directory = os.path.dirname(os.path.realpath(__file__))
36 36
 cache_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "cache")
@@ -298,7 +298,7 @@ def epg_get_stream_url(epgid):
298 298
 def refresh_live_chunklist_url(ch):
299 299
     global s, token, headers0
300 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 302
     if r.status_code <> 200:
303 303
         print "Error %s getting live chunklist %s"% (r.status_code,stream_url)
304 304
         raise bottle.HTTPError(r.status_code)
@@ -313,7 +313,7 @@ def refresh_live_chunklist_url(ch):
313 313
 
314 314
 def refresh_epg_chunklist_url(stream_url):
315 315
     global s, token, headers0
316
-    r = requests.get(stream_url)
316
+    r = requests.get(stream_url + "&auth_token=app_" + token)
317 317
     if r.status_code <> 200:
318 318
         print "Error %s getting archive chunklist %s"% (r.status_code,stream_url)
319 319
         raise bottle.HTTPError(r.status_code)