projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af7d5a6
)
[Sexu] fix extractor
author
aystroganov@gmail.com
<aystroganov@gmail.com>
Sun, 6 Mar 2016 10:57:41 +0000
(21:57 +1100)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 6 Mar 2016 11:53:22 +0000
(17:53 +0600)
youtube_dl/extractor/sexu.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/sexu.py
b/youtube_dl/extractor/sexu.py
index 6365a8779d74e2ac9d82ce83c32c404d51e64b2e..474e9fdfaa70df7c6eed97401c0c23ff5d1569f5 100644
(file)
--- a/
youtube_dl/extractor/sexu.py
+++ b/
youtube_dl/extractor/sexu.py
@@
-14,7
+14,7
@@
class SexuIE(InfoExtractor):
'id': '961791',
'ext': 'mp4',
'title': 'md5:4d05a19a5fc049a63dbbaf05fb71d91b',
'id': '961791',
'ext': 'mp4',
'title': 'md5:4d05a19a5fc049a63dbbaf05fb71d91b',
- 'description': 'md5:
c5ed8625eb386855d5a7967bd7b77a54
',
+ 'description': 'md5:
2b75327061310a3afb3fbd7d09e2e403
',
'categories': list, # NSFW
'thumbnail': 're:https?://.*\.jpg$',
'age_limit': 18,
'categories': list, # NSFW
'thumbnail': 're:https?://.*\.jpg$',
'age_limit': 18,
@@
-26,7
+26,7
@@
class SexuIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
quality_arr = self._search_regex(
webpage = self._download_webpage(url, video_id)
quality_arr = self._search_regex(
- r'
sources:\s*\[([^\]]+)\]', webpage, 'for
rmat string')
+ r'
"sources":\s*\[([^\]]+)\]', webpage, 'fo
rmat string')
formats = [{
'url': fmt[0].replace('\\', ''),
'format_id': fmt[1],
formats = [{
'url': fmt[0].replace('\\', ''),
'format_id': fmt[1],
@@
-41,7
+41,7
@@
class SexuIE(InfoExtractor):
'description', webpage, 'description')
thumbnail = self._html_search_regex(
'description', webpage, 'description')
thumbnail = self._html_search_regex(
- r'
image
:\s*"([^"]+)"',
+ r'
"image"
:\s*"([^"]+)"',
webpage, 'thumbnail', fatal=False)
categories_str = self._html_search_meta(
webpage, 'thumbnail', fatal=False)
categories_str = self._html_search_meta(