diff --git a/src/audio_services/services.py b/src/audio_services/services.py index 1db7c9b7..a3bea842 100644 --- a/src/audio_services/services.py +++ b/src/audio_services/services.py @@ -28,21 +28,5 @@ def convert_soundcloud (url): else: raise TypeError('%r is not streamable' % url) -@matches_url('http://twup.me') -def convert_twup(url): - result = re.match("^http://twup.me/(?P[A-Za-z0-9]+/?)$", url, re.I) - if not result or result.group("audio_id") is None: - raise TypeError('%r is not a valid URL' % url) - audio_id = result.group("audio_id") - return 'http://twup.me/%s' % audio_id - -#@matches_url('http://sndup.net') -#def convert_sndup(url): -# result = re.match("^http://sndup.net/(?P[a-z0-9]+/?)(|d|l|a)/?$", url, re.I) -# if not result or result.group("audio_id") is None: -# raise TypeError('%r is not a valid URL' % url) -# audio_id = result.group("audio_id") -# return 'http://sndup.net/%s/a' % audio_id - def convert_generic_audio(url): return url