[mixcloud] Fix _VALID_RE (fixes #2462)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 25 Feb 2014 23:04:03 +0000 (00:04 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 25 Feb 2014 23:04:03 +0000 (00:04 +0100)
Accept any character except `/` for uploader and the name, caused problems with non ASCII characters

youtube_dl/extractor/mixcloud.py

index f3356db50ebf8941ac58e9a229778ba864c57be0..b8d363eb6c51a4e15df2452bcf670d171ec8e54b 100644 (file)
@@ -10,7 +10,7 @@ from ..utils import (
 
 
 class MixcloudIE(InfoExtractor):
-    _VALID_URL = r'^(?:https?://)?(?:www\.)?mixcloud\.com/([\w\d-]+)/([\w\d-]+)'
+    _VALID_URL = r'^(?:https?://)?(?:www\.)?mixcloud\.com/([^/]+)/([^/]+)'
     IE_NAME = 'mixcloud'
 
     _TEST = {