mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
TWBlue doesn't play audioboom boos
This commit is contained in:
parent
76d8c292c9
commit
c571a913c5
@ -3,12 +3,12 @@ import json
|
|||||||
import re
|
import re
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
@matches_url('https://audioboom.com')
|
#@matches_url('https://audioboom.com')
|
||||||
def convert_audioboom(url):
|
#def convert_audioboom(url):
|
||||||
if "audioboom.com" not in url.lower():
|
# if "audioboom.com" not in url.lower():
|
||||||
raise TypeError('%r is not a valid URL' % url)
|
# raise TypeError('%r is not a valid URL' % url)
|
||||||
audio_id = url.split('.com/')[-1]
|
# audio_id = url.split('.com/')[-1]
|
||||||
return 'https://audioboom.com/%s.mp3' % audio_id
|
# return 'https://audioboom.com/%s.mp3' % audio_id
|
||||||
|
|
||||||
@matches_url ('http://soundcloud.com/')
|
@matches_url ('http://soundcloud.com/')
|
||||||
def convert_soundcloud (url):
|
def convert_soundcloud (url):
|
||||||
|
Loading…
Reference in New Issue
Block a user