From 348b8da619edb5dfc55f6e44d0d5c93e17e017b5 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 17 Sep 2017 23:18:01 -0500 Subject: [PATCH] Removed twup.me from audio_services --- src/audio_services/services.py | 16 ---------------- 1 file changed, 16 deletions(-) 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