mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-22 00:45:10 +00:00
style: fix ruff format and isort in hls.py
This commit is contained in:
@@ -1610,7 +1610,9 @@ class HLS:
|
|||||||
try:
|
try:
|
||||||
return HLS.get_drm(key, session)
|
return HLS.get_drm(key, session)
|
||||||
except Widevine.Exceptions.KIDNotFound:
|
except Widevine.Exceptions.KIDNotFound:
|
||||||
kid = HLS.get_track_kid_from_init(master, track, probe_session or session or run_proxy.fallback_session(), init_section)
|
kid = HLS.get_track_kid_from_init(
|
||||||
|
master, track, probe_session or session or run_proxy.fallback_session(), init_section
|
||||||
|
)
|
||||||
if not kid:
|
if not kid:
|
||||||
raise
|
raise
|
||||||
return HLS.get_drm(key, session, kid=kid)
|
return HLS.get_drm(key, session, kid=kid)
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ from urllib3.util.retry import Retry
|
|||||||
from unshackle.core import __version__
|
from unshackle.core import __version__
|
||||||
from unshackle.core.session import POOL_MAX_SIZE
|
from unshackle.core.session import POOL_MAX_SIZE
|
||||||
|
|
||||||
|
|
||||||
RATE_LIMIT_RETRIES = 3
|
RATE_LIMIT_RETRIES = 3
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user