From 2f8a8025f3b1f360c9333590ee87f3e673fa0f57 Mon Sep 17 00:00:00 2001 From: Ying Zhao Date: Mon, 19 May 2025 20:19:25 -0400 Subject: [PATCH] update ui --- .github/workflows/update-yt-dlp.yml | 4 ++-- app/dl_formats.py | 2 +- ui/src/app/formats.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-yt-dlp.yml b/.github/workflows/update-yt-dlp.yml index ab8433d..ab50e0f 100644 --- a/.github/workflows/update-yt-dlp.yml +++ b/.github/workflows/update-yt-dlp.yml @@ -11,8 +11,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 - with: - token: ${{ secrets.AUTOUPDATE_PAT }} + # with: + # token: ${{ secrets.AUTOUPDATE_PAT }} - name: Set up Python uses: actions/setup-python@v4 diff --git a/app/dl_formats.py b/app/dl_formats.py index 8618cc4..97b4993 100644 --- a/app/dl_formats.py +++ b/app/dl_formats.py @@ -79,7 +79,7 @@ def get_opts(format: str, quality: str, ytdl_opts: dict) -> dict: ) # Add voice mono settings for MP3 - if format == "mp3" and quality == "voice_mono": + if format == "mp3" and quality == "32_mono": opts["postprocessor_args"] = { "ffmpeg": ["-ac", "1", "-ar", "22050", "-q:a", "8"] } diff --git a/ui/src/app/formats.ts b/ui/src/app/formats.ts index 38df2bf..cb5b5ab 100644 --- a/ui/src/app/formats.ts +++ b/ui/src/app/formats.ts @@ -55,7 +55,7 @@ export const Formats: Format[] = [ { id: '320', text: '320 kbps' }, { id: '192', text: '192 kbps' }, { id: '128', text: '128 kbps' }, - { id: 'voice_mono', text: 'Voice Mono' }, + { id: '32_mono', text: '32 kbps(Mono)' }, ], }, {