mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-09-16 06:02:35 +02:00
Joyn change auth
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
- M3U playlist generation for PVR IPTV Simple
|
||||
- Provider-specific proxy configuration
|
||||
</news>
|
||||
|
||||
<source>https://github.com/nirvana-7777/script.service.ultimate</source>
|
||||
<assets>
|
||||
<icon>icon.png</icon>
|
||||
<fanart>fanart.jpg</fanart>
|
||||
|
||||
@@ -293,6 +293,22 @@ class HTTPManager:
|
||||
|
||||
return result
|
||||
|
||||
def get_cookies(self) -> Dict[str, str]:
|
||||
"""Get all cookies from the session"""
|
||||
if self._session:
|
||||
return requests.utils.dict_from_cookiejar(self._session.cookies)
|
||||
return {}
|
||||
|
||||
def set_cookies(self, cookies: Dict[str, str]) -> None:
|
||||
"""Set cookies in the session"""
|
||||
if self._session:
|
||||
self._session.cookies.update(cookies)
|
||||
|
||||
def clear_cookies(self) -> None:
|
||||
"""Clear all cookies from the session"""
|
||||
if self._session:
|
||||
self._session.cookies.clear()
|
||||
|
||||
def close(self) -> None:
|
||||
"""Close the session"""
|
||||
if self._session:
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user