fix vk audio #3

This commit is contained in:
bakatrouble 2019-10-27 02:24:42 +03:00
parent f64e76daa0
commit d730727e5f

View File

@ -7,7 +7,7 @@ import requests
def get_vk_audio(url): def get_vk_audio(url):
if 'm3u8' in url: if 'm3u8' in url:
url = re.sub(r'/[0-9a-f]+/([0-9a-f]+)/index.m3u8', r'/\1.mp3', s) url = re.sub(r'/[0-9a-f]+/([0-9a-f]+)/index.m3u8', r'/\1.mp3', url)
return get_file(url) return get_file(url)