fix vk audio extraction
This commit is contained in:
parent
d730727e5f
commit
bf76e3c3ed
@ -7,7 +7,7 @@ import requests
|
||||
|
||||
def get_vk_audio(url):
|
||||
if 'm3u8' in url:
|
||||
url = re.sub(r'/[0-9a-f]+/([0-9a-f]+)/index.m3u8', r'/\1.mp3', url)
|
||||
url = re.sub(r'/[0-9a-f]+(/audios)?/([0-9a-f]+)/index.m3u8', r'\1/\2.mp3', url)
|
||||
return get_file(url)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user