wrolpi/modules/videos/channel
Roland cdd28d0a39
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Controller Tests / controller-tests (push) Has been cancelled
Jest Tests / jest-tests (push) Has been cancelled
Videos: a Channel's directory beats source_id when assigning a Video.
A user reported videos placed in a Channel's directory did not appear on
that Channel's page. Their info json named another existing Channel, and
get_channel preferred the source_id match over the directory, so the
videos were assigned to the other Channel.

Reorder get_channel so the directory match (with its parent-directory
walk) runs before the source_id/url matches. A Video's files must live
in their Channel's directory, so the directory reflects the user's
intent and beats yt-dlp metadata. This also aligns validation with
VideoDownloader._get_channel, which already prefers the destination
directory, and stops validation from clobbering that decision.

channel_id still wins over all other params; source_id/url still apply
when the file is not in any Channel's directory.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 18:33:15 -06:00
..
test Videos: a Channel's directory beats source_id when assigning a Video. 2026-07-07 18:33:15 -06:00
__init__.py A new start 2021-11-01 16:43:09 -06:00
api.py Always refreshing channel in background task. 2025-12-26 13:43:51 -07:00
lib.py Videos: a Channel's directory beats source_id when assigning a Video. 2026-07-07 18:33:15 -06:00