Hash audio profile paths
This commit is contained in:
parent
2ad0536bb0
commit
23d03cd9d5
4 changed files with 59 additions and 41 deletions
|
|
@ -76,10 +76,10 @@ def test_feed_generation_normalizes_dates_urls_and_xml_shapes() -> None:
|
|||
item.audios = [
|
||||
{
|
||||
"url": source_audio,
|
||||
"path": f"{audio_base_path}-vbr7.mp3",
|
||||
"path": f"{audio_base_path}-vbr7-3b2b0f13.mp3",
|
||||
"published_url": _published_url(
|
||||
"https://mirror.example",
|
||||
f"audio/{audio_base_path}-vbr7.mp3",
|
||||
f"audio/{audio_base_path}-vbr7-3b2b0f13.mp3",
|
||||
),
|
||||
"checksum": "audio-default",
|
||||
"status": "downloaded",
|
||||
|
|
@ -87,9 +87,9 @@ def test_feed_generation_normalizes_dates_urls_and_xml_shapes() -> None:
|
|||
{
|
||||
"url": _published_url(
|
||||
"https://mirror.example",
|
||||
f"audio/{audio_base_path}-vbr7.mp3",
|
||||
f"audio/{audio_base_path}-vbr7-3b2b0f13.mp3",
|
||||
),
|
||||
"path": f"{audio_base_path}-vbr7.mp3",
|
||||
"path": f"{audio_base_path}-vbr7-3b2b0f13.mp3",
|
||||
"type": "audio/mp3",
|
||||
"medium": "audio",
|
||||
"isDefault": "true",
|
||||
|
|
@ -102,9 +102,9 @@ def test_feed_generation_normalizes_dates_urls_and_xml_shapes() -> None:
|
|||
{
|
||||
"url": _published_url(
|
||||
"https://mirror.example",
|
||||
f"audio/{audio_base_path}-vbr3.aac",
|
||||
f"audio/{audio_base_path}-vbr3-4a2a58d5.aac",
|
||||
),
|
||||
"path": f"{audio_base_path}-vbr3.aac",
|
||||
"path": f"{audio_base_path}-vbr3-4a2a58d5.aac",
|
||||
"type": "audio/aac",
|
||||
"medium": "audio",
|
||||
"isDefault": "false",
|
||||
|
|
@ -259,7 +259,7 @@ def test_feed_generation_normalizes_dates_urls_and_xml_shapes() -> None:
|
|||
assert enclosure.attrib == {
|
||||
"url": (
|
||||
f"https://mirror.example/feeds/demo/audio/"
|
||||
f"{local_audio_path(source_audio)}-vbr7.mp3"
|
||||
f"{local_audio_path(source_audio)}-vbr7-3b2b0f13.mp3"
|
||||
),
|
||||
"length": "4567",
|
||||
"type": "audio/mp3",
|
||||
|
|
@ -277,7 +277,7 @@ def test_feed_generation_normalizes_dates_urls_and_xml_shapes() -> None:
|
|||
{
|
||||
"url": (
|
||||
f"https://mirror.example/feeds/demo/audio/"
|
||||
f"{local_audio_path(source_audio)}-vbr7.mp3"
|
||||
f"{local_audio_path(source_audio)}-vbr7-3b2b0f13.mp3"
|
||||
),
|
||||
"type": "audio/mp3",
|
||||
"medium": "audio",
|
||||
|
|
@ -291,7 +291,7 @@ def test_feed_generation_normalizes_dates_urls_and_xml_shapes() -> None:
|
|||
{
|
||||
"url": (
|
||||
f"https://mirror.example/feeds/demo/audio/"
|
||||
f"{local_audio_path(source_audio)}-vbr3.aac"
|
||||
f"{local_audio_path(source_audio)}-vbr3-4a2a58d5.aac"
|
||||
),
|
||||
"type": "audio/aac",
|
||||
"medium": "audio",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue