Browse Source

[mixcloud] Fix _VALID_RE (fixes #2462)

Accept any character except `/` for uploader and the name, caused problems with non ASCII characters
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
8b286571c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/mixcloud.py

+ 1 - 1
youtube_dl/extractor/mixcloud.py

@@ -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 = {