добавил ссылку в unique id
This commit is contained in:
parent
1a666e03c5
commit
420642b80a
|
|
@ -38,7 +38,8 @@ class SongViewSet(ViewSet):
|
||||||
}
|
}
|
||||||
response = requests.get(file_url, headers=headers)
|
response = requests.get(file_url, headers=headers)
|
||||||
data = request.data
|
data = request.data
|
||||||
data.update(unique_id = response.json()['unique_id'])
|
file_play = f"http://82.97.242.49:10084/api/station/it-radio/file/{response.json()['unique_id']}/play"
|
||||||
|
data.update(unique_id = file_play)
|
||||||
serializer = SongSerializer(data=data)
|
serializer = SongSerializer(data=data)
|
||||||
|
|
||||||
if serializer.is_valid():
|
if serializer.is_valid():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue