Skip to content

Commit 42cab05

Browse files
authored
Update spotify.py (#151)
1 parent adc466a commit 42cab05

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

music/spotify.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import json
22
import os
33
import time
4-
54
import aiohttp
65
from pyrogram import Client, filters
76
from pyrogram.types import Message
87
from utils.scripts import progress
9-
108
from utils import modules_help, prefix
119

1210

@@ -60,7 +58,7 @@ async def spotify_download(client: Client, message: Message):
6058
)
6159
return
6260

63-
song_download_link = download_result["data"].get("url")
61+
song_download_link = download_result["data"].get("download")
6462
if not song_download_link or not song_download_link.startswith("http"):
6563
await status_message.edit_text(
6664
"<code>Song isn't available for download.</code>"

0 commit comments

Comments
 (0)