Hash video profile paths

This commit is contained in:
Abel Luck 2026-03-31 15:01:49 +02:00
parent 954608c5f9
commit 2ad0536bb0
5 changed files with 180 additions and 28 deletions

View file

@ -135,10 +135,10 @@ def test_feed_generation_normalizes_dates_urls_and_xml_shapes() -> None:
item.videos = [
{
"url": source_video,
"path": f"{video_base_path}-720.mp4",
"path": f"{video_base_path}-720-457f0928.mp4",
"published_url": _published_url(
"https://mirror.example",
f"video/{video_base_path}-720.mp4",
f"video/{video_base_path}-720-457f0928.mp4",
),
"checksum": "video-default",
"status": "downloaded",
@ -146,9 +146,9 @@ def test_feed_generation_normalizes_dates_urls_and_xml_shapes() -> None:
{
"url": _published_url(
"https://mirror.example",
f"video/{video_base_path}-720.mp4",
f"video/{video_base_path}-720-457f0928.mp4",
),
"path": f"{video_base_path}-720.mp4",
"path": f"{video_base_path}-720-457f0928.mp4",
"type": "video/mp4",
"medium": "video",
"isDefault": "true",
@ -323,7 +323,7 @@ def test_feed_generation_normalizes_dates_urls_and_xml_shapes() -> None:
{
"url": (
f"https://mirror.example/feeds/demo/video/"
f"{local_video_path(source_video)}-720.mp4"
f"{local_video_path(source_video)}-720-457f0928.mp4"
),
"type": "video/mp4",
"medium": "video",