wrolpi/modules/videos/channel/test
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
..
__init__.py A new start 2021-11-01 16:43:09 -06:00
test_api.py Converting RSS and Video Downloaders to new testable strategy. 2026-05-07 20:07:31 -06:00
test_lib.py Videos: a Channel's directory beats source_id when assigning a Video. 2026-07-07 18:33:15 -06:00
test_models.py Channels: log directory video counts after a refresh 2026-07-03 17:45:10 -06:00