metube/app
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
..
tests fix: blank PUBLIC_HOST_AUDIO_URL no longer breaks audio download links 2026-06-16 10:55:10 -04:00
dl_formats.py code review fixes 2026-03-15 20:53:13 +02:00
main.py fix: blank PUBLIC_HOST_AUDIO_URL no longer breaks audio download links 2026-06-16 10:55:10 -04:00
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
subscriptions.py allow filtering out members-only videos in subscriptions (closes #971) 2026-04-28 22:02:05 +03:00
ytdl.py support live streams (closes #302, closes #752, closes #978) 2026-06-13 17:39:14 +03:00