metube/app/tests
pacnpal 2598f80835 fix: blank PUBLIC_HOST_AUDIO_URL no longer breaks audio download links
A present-but-empty PUBLIC_HOST_AUDIO_URL (e.g. `PUBLIC_HOST_AUDIO_URL=` in a
compose file) bypassed the default and stayed blank, so the UI built
root-relative audio links like `app.url/song.mp3` that 404'd, while video links
kept working off PUBLIC_HOST_URL.

Backend: a blank PUBLIC_HOST_AUDIO_URL now inherits PUBLIC_HOST_URL, matching the
README ("same as PUBLIC_HOST_URL but for audio downloads"). Both blank still
stays blank, so intentional root serving is preserved.

Frontend: buildDownloadLink and buildChapterDownloadLink fall back to
PUBLIC_HOST_URL when the audio host is blank.

Added backend and UI regression tests, both verified red against the unfixed
code.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 10:55:10 -04:00
..
conftest.py implement tests 2026-03-20 13:12:31 +02:00
test_api.py implement time-clipped downloads (closes #969, replaces #907) 2026-04-26 23:07:50 +03:00
test_config.py fix: blank PUBLIC_HOST_AUDIO_URL no longer breaks audio download links 2026-06-16 10:55:10 -04:00
test_dl_formats.py implement tests 2026-03-20 13:12:31 +02:00
test_download_queue.py support live streams (closes #302, closes #752, closes #978) 2026-06-13 17:39:14 +03:00
test_main_helpers.py implement time-clipped downloads (closes #969, replaces #907) 2026-04-26 23:07:50 +03:00
test_nightly_update.py add option for following nightly yt-dlp releases (closes #999) 2026-06-06 09:42:26 +03:00
test_persistent_queue.py add subscriptions; change persistence file format to JSON (closes #901, #76, #113, #170, #242, #444, #503, #555, #566) 2026-04-01 14:33:24 +03:00
test_state_store.py add subscriptions; change persistence file format to JSON (closes #901, #76, #113, #170, #242, #444, #503, #555, #566) 2026-04-01 14:33:24 +03:00
test_subscriptions.py allow filtering out members-only videos in subscriptions (closes #971) 2026-04-28 22:02:05 +03:00
test_ytdl_utils.py Propagate missing playlist context fields (playlist_count, playlist_autonumber, n_entries, __last_playlist_index) 2026-04-01 19:59:32 +00:00