Added support for playback from anyaudio.net

This commit is contained in:
2018-11-25 13:00:01 -06:00
parent e5b33160e0
commit d4bf33ca6d
2 changed files with 9 additions and 1 deletions

View File

@@ -33,5 +33,12 @@ def convert_soundcloud (url):
def convert_youtube_long (url):
return youtube_utils.get_video_url(url)
@matches_url ('http://anyaudio.net/listen')
def convert_anyaudio(url):
values = url.split("audio=")
if len(values) != 2:
raise TypeError('%r is not streamable' % url)
return "http://anyaudio.net/audiodownload?audio=%s" % (values[1],)
def convert_generic_audio(url):
return url