Преглед на файлове

salabotas ltc tiešraides/arhīvs

Ivars преди 6 години
родител
ревизия
d05d88effe
променени са 1 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 5
    3
      sources/ltc.py

+ 5
- 3
sources/ltc.py Целия файл

793
         if not password: password = self.options["password"]
793
         if not password: password = self.options["password"]
794
 
794
 
795
         # Dabūjam tokenu
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
         headers = headers2dict("""
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
 Content-Type: application/x-www-form-urlencoded; charset=UTF-8
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
 Host: manstv.lattelecom.tv
803
 Host: manstv.lattelecom.tv
802
 """ )
804
 """ )
803
         try:
805
         try: