mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-14 04:55:07 +00:00
style: apply ruff format to branch files predating the format sweep
This commit is contained in:
@@ -191,7 +191,9 @@ def test_byte_range_slice_segments_never_probed_or_boosted(tmp_path: Path, monke
|
||||
|
||||
probed: list[str] = []
|
||||
real_probe = dl._probe_ranged
|
||||
monkeypatch.setattr(dl, "_probe_ranged", lambda url, session, **kw: probed.append(url) or real_probe(url, session, **kw))
|
||||
monkeypatch.setattr(
|
||||
dl, "_probe_ranged", lambda url, session, **kw: probed.append(url) or real_probe(url, session, **kw)
|
||||
)
|
||||
|
||||
url = f"http://{host}:{port}/media.mp4"
|
||||
urls = [{"url": url, "headers": {"Range": f"bytes={i * seg}-{(i + 1) * seg - 1}"}} for i in range(nseg)]
|
||||
|
||||
@@ -1306,7 +1306,9 @@ class dl:
|
||||
else:
|
||||
vaults_only = not cdm_only
|
||||
|
||||
config.decryption = resolve_decryption(config.decryption_map, config.decryption, service.__class__.__name__.upper())
|
||||
config.decryption = resolve_decryption(
|
||||
config.decryption_map, config.decryption, service.__class__.__name__.upper()
|
||||
)
|
||||
|
||||
log_event(
|
||||
"drm_mode_config",
|
||||
|
||||
Reference in New Issue
Block a user