From 73d2cbccf8c2565a96986d0ba2d598e6dd002b2c Mon Sep 17 00:00:00 2001 From: Avi Cohen Date: Fri, 5 Jun 2026 18:25:14 +0300 Subject: [PATCH] style: use plain hyphens instead of em-dashes in comments --- tests/tracks/test_subtitle_skip.py | 4 ++-- unshackle/commands/dl.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tracks/test_subtitle_skip.py b/tests/tracks/test_subtitle_skip.py index 40849ee..699bcd2 100644 --- a/tests/tracks/test_subtitle_skip.py +++ b/tests/tracks/test_subtitle_skip.py @@ -1,4 +1,4 @@ -"""Tests for ``download_tracks_in_passes`` — the two-pass track download used by +"""Tests for ``download_tracks_in_passes`` - the two-pass track download used by ``dl.result()`` when ``--skip-subtitle-errors`` is set. The behaviour under test is the cancel-event interaction: a failed track sets the @@ -54,7 +54,7 @@ class Harness: ``run_one`` mirrors ``Track.download``: it early-returns (without recording a completion) when the cancel event is already set, and a track flagged to fail - sets the event and raises — exactly what the real cancel sites do. + sets the event and raises - exactly what the real cancel sites do. """ def __init__(self, fail_ids: set[str]): diff --git a/unshackle/commands/dl.py b/unshackle/commands/dl.py index dafc55a..210bc90 100644 --- a/unshackle/commands/dl.py +++ b/unshackle/commands/dl.py @@ -74,7 +74,7 @@ def download_tracks_in_passes(tracks, max_concurrent, run_one, *, skip_subtitle_ """Download a title's tracks, keeping a skippable subtitle failure from corrupting the rest. A failed track sets the process-global ``DOWNLOAD_CANCELLED`` event, which makes other - in-flight tracks early-return without raising — so catching a subtitle failure after the fact + in-flight tracks early-return without raising - so catching a subtitle failure after the fact can leave a half-downloaded video/audio that still gets muxed. When ``skip_subtitle_errors`` is set the fatal tracks (video/audio) are therefore downloaded concurrently first, and the skippable subtitles run in a separate sequential pass once nothing else is in flight, with the