Improved the audio transformation URl function
This commit is contained in:
parent
68350ce536
commit
1ef2cf46fc
@ -96,6 +96,7 @@ def transform_audio_url(url):
|
|||||||
url = url.replace("/"+parts[-2], "")
|
url = url.replace("/"+parts[-2], "")
|
||||||
else:
|
else:
|
||||||
url = url.replace("/"+parts[-3], "")
|
url = url.replace("/"+parts[-3], "")
|
||||||
|
url = url.split(".mp3?")[0]+".mp3"
|
||||||
return url
|
return url
|
||||||
|
|
||||||
def safe_filename(filename):
|
def safe_filename(filename):
|
||||||
|
Loading…
Reference in New Issue
Block a user