diff --git a/api/funkwhale_api/music/models.py b/api/funkwhale_api/music/models.py index 197a8fc1c9644a43a4910edfc35e57f7fa8f4d81..5b9a3995db4d85a87d13a7faa5d43d3b412f2244 100644 --- a/api/funkwhale_api/music/models.py +++ b/api/funkwhale_api/music/models.py @@ -688,9 +688,11 @@ TRACK_FILE_IMPORT_STATUS_CHOICES = ( ("skipped", "Skipped"), ) + def sanitize_remote_location_path(filename): return filename.replace("/", "-") + def get_file_path(instance, filename): if isinstance(instance, UploadVersion): return common_utils.ChunkedPath("transcoded")(instance, filename)