еще раз исправил ошибку

This commit is contained in:
Mike0001-droid 2024-06-18 14:00:56 +05:00
parent d626d09177
commit 640baa08d2
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class SongViewSet(GenericViewSet):
def get_audio(self, request, azura_id):
try:
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"
headers = {
"Authorization": f"Bearer {API_KEY}"