From 370e69392ff404aab8c7f1fea744d7e6b36d9b98 Mon Sep 17 00:00:00 2001 From: masterdot Date: Mon, 7 Sep 2026 19:53:59 +0200 Subject: [PATCH] feat(choices): add AudioTrack text choices For an upcoming per-Source setting that picks between the original audio track and the publisher's default track (often an auto-generated dub) when a video exposes more than one. --- tubesync/sync/choices.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tubesync/sync/choices.py b/tubesync/sync/choices.py index 18913b02..1d94eba8 100644 --- a/tubesync/sync/choices.py +++ b/tubesync/sync/choices.py @@ -32,6 +32,11 @@ class CapChoices(models.IntegerChoices): CAP_10YEARS = 315360000, _('10 years (3650 days)') +class AudioTrack(models.TextChoices): + ORIGINAL = 'original', _('Original audio (recorded language)') + DEFAULT = 'default', _("Publisher's default audio (often an auto-dub)") + + class Fallback(models.TextChoices): FAIL = 'f', _('Fail, do not download any media') REQUIRE_CODEC = 'c', _('Get next best resolution, only the preferred codec')