Browse Source

salabotas ltc tiešraides/arhīvs

Ivars 6 years ago
parent
commit
d05d88effe
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      sources/ltc.py

+ 5
- 3
sources/ltc.py View File

@@ -793,11 +793,13 @@ X-Requested-With: XMLHttpRequest
793 793
         if not password: password = self.options["password"]
794 794
 
795 795
         # Dabūjam tokenu
796
-        url = "https://manstv.lattelecom.tv/api/v1.3/post/user/login"
797
-        params = "uid=7f777e938d35e017&password=%s&username=%s&"%(password,user)
796
+        url = "https://manstv.lattelecom.tv/api/v1.5/post/user/users/%s" % user
797
+        #url = "https://manstv.lattelecom.tv/api/v1.5/post/user/login"
798
+        params = "uid=7f777e938d35e017&password=%s&" % (password)
799
+        #params = "uid=7f777e938d35e017&password=%s&username=%s&"%(password,user)
798 800
         headers = headers2dict("""
801
+User-Agent: Shortcut.lv v2.9.1 / Dalvik/1.6.0 (Linux; U; Android 4.4.2; SM-G900FD Build/KOT49H)
799 802
 Content-Type: application/x-www-form-urlencoded; charset=UTF-8
800
-User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.4.2; SM-G900FD Build/KOT49H)
801 803
 Host: manstv.lattelecom.tv
802 804
 """ )
803 805
         try: