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 năm trước cách đây
mục cha
commit
8b286571c3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 = {