mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 10:19:55 +02:00
Now display CLI instructions to download a set of tracks
This commit is contained in:
parent
c34ea44687
commit
e8eaf6db94
6 changed files with 108 additions and 6 deletions
|
@ -139,9 +139,8 @@ class TrackFileViewSet(viewsets.ReadOnlyModelViewSet):
|
|||
return Response(status=404)
|
||||
|
||||
response = Response()
|
||||
filename = "filename*=UTF-8''{}{}".format(
|
||||
urllib.parse.quote(f.track.full_name),
|
||||
os.path.splitext(f.audio_file.name)[-1])
|
||||
filename = "filename*=UTF-8''{}".format(
|
||||
urllib.parse.quote(f.filename))
|
||||
response["Content-Disposition"] = "attachment; {}".format(filename)
|
||||
response['X-Accel-Redirect'] = "{}{}".format(
|
||||
settings.PROTECT_FILES_PATH,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue