projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
790b06b
)
[youjizz] Relax _VALID_URL (Closes #10131)
author
Sergey M․
<dstftw@gmail.com>
Wed, 20 Jul 2016 15:41:13 +0000
(22:41 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 20 Jul 2016 15:41:13 +0000
(22:41 +0700)
youtube_dl/extractor/youjizz.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youjizz.py
b/youtube_dl/extractor/youjizz.py
index 4150b28daffad5c8cae227c4bf76a125733ced73..31e2f9263ada15aa4932b66347b12640b1a46621 100644
(file)
--- a/
youtube_dl/extractor/youjizz.py
+++ b/
youtube_dl/extractor/youjizz.py
@@
-9,8
+9,8
@@
from ..utils import (
class YouJizzIE(InfoExtractor):
class YouJizzIE(InfoExtractor):
- _VALID_URL = r'https?://(?:\w+\.)?youjizz\.com/videos/
[^/#?]+
-(?P<id>[0-9]+)\.html(?:$|[?#])'
- _TEST
=
{
+ _VALID_URL = r'https?://(?:\w+\.)?youjizz\.com/videos/
(?:[^/#?]+)?
-(?P<id>[0-9]+)\.html(?:$|[?#])'
+ _TEST
S = [
{
'url': 'http://www.youjizz.com/videos/zeichentrick-1-2189178.html',
'md5': '07e15fa469ba384c7693fd246905547c',
'info_dict': {
'url': 'http://www.youjizz.com/videos/zeichentrick-1-2189178.html',
'md5': '07e15fa469ba384c7693fd246905547c',
'info_dict': {
@@
-19,7
+19,10
@@
class YouJizzIE(InfoExtractor):
'title': 'Zeichentrick 1',
'age_limit': 18,
}
'title': 'Zeichentrick 1',
'age_limit': 18,
}
- }
+ }, {
+ 'url': 'http://www.youjizz.com/videos/-2189178.html',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
def _real_extract(self, url):
video_id = self._match_id(url)