Hash audio profile paths
This commit is contained in:
parent
2ad0536bb0
commit
23d03cd9d5
4 changed files with 59 additions and 41 deletions
|
|
@ -66,7 +66,7 @@ def published_media_path(
|
|||
file_type: FileType, source_url: str, profile: Mapping[str, Any]
|
||||
) -> str:
|
||||
if file_type == FileType.AUDIO:
|
||||
return variant_media_path(local_audio_path(source_url), profile)
|
||||
return variant_media_path(local_audio_path(source_url), profile, hashed=True)
|
||||
if file_type == FileType.VIDEO:
|
||||
return variant_media_path(local_video_path(source_url), profile, hashed=True)
|
||||
raise ValueError(f"Unsupported file type for published media path: {file_type}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue