Skip to content

Commit

Permalink
minor code tweak to add playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddac committed Dec 22, 2024
1 parent 2618452 commit 973f939
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CONTROL/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: enigma2-plugin-extensions-xklass
Version: 1.30-20241222
Version: 1.30-20241223
Section: misc
Priority: optional
Architecture: all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,17 +243,17 @@ def changedEntry(self):
def checkline(self):
valid = False

retries = Retry(total=3, backoff_factor=1)
retries = Retry(total=2, backoff_factor=1)
adapter = HTTPAdapter(max_retries=retries)

with requests.Session() as http:
http.mount("http://", adapter)
http.mount("https://", adapter)

try:
response = http.get(self.apiline, headers=hdr, timeout=30, verify=False, stream=True)
response = http.get(self.apiline, headers=hdr, timeout=30, verify=False)
response.raise_for_status()
if response.status_code == requests.codes.ok or response.status_code == 206:
if response.status_code == requests.codes.ok:
try:
json_response = response.json()
if "user_info" in json_response and "auth" in json_response["user_info"]:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.30-20241222
1.30-20241223

0 comments on commit 973f939

Please sign in to comment.