Skip to content

Commit

Permalink
Returning HTTPS song url
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberboysumanjay authored Jun 7, 2020
1 parent dfa4175 commit 5a19263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saavn.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def decrypt_url(url):
enc_url = base64.b64decode(url.strip())
dec_url = des_cipher.decrypt(enc_url, padmode=PAD_PKCS5).decode('utf-8')
dec_url = dec_url.replace("_96.mp4", "_320.mp3")
dec_url = dec_url.replace("http://aac.saavncdn.com","http://h.saavncdn.com")
dec_url = dec_url.replace("http://aac.saavncdn.com","https://h.saavncdn.com")
try:
r = requests.head(dec_url)
if r.status_code == 200 or r.status_code == 302:
Expand Down

0 comments on commit 5a19263

Please sign in to comment.