еще раз исправил ошибку
This commit is contained in:
parent
d626d09177
commit
640baa08d2
|
|
@ -49,7 +49,7 @@ class SongViewSet(GenericViewSet):
|
||||||
def get_audio(self, request, azura_id):
|
def get_audio(self, request, azura_id):
|
||||||
try:
|
try:
|
||||||
song_obj = Song.objects.get(azura_id=azura_id)
|
song_obj = Song.objects.get(azura_id=azura_id)
|
||||||
file_url = f"http://82.97.242.49:10084/api/station/it-radio/file/{song_obj.unique_id}/play"
|
file_url = song_obj.unique_id
|
||||||
API_KEY = "49226d3488aac3f5:18d88659c6c1c5e131a0ce0a94d55235"
|
API_KEY = "49226d3488aac3f5:18d88659c6c1c5e131a0ce0a94d55235"
|
||||||
headers = {
|
headers = {
|
||||||
"Authorization": f"Bearer {API_KEY}"
|
"Authorization": f"Bearer {API_KEY}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue