projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f36085
)
[criterion] fix description extraction
author
remitamine
<remitamine@gmail.com>
Wed, 14 Oct 2015 13:13:53 +0000
(14:13 +0100)
committer
remitamine
<remitamine@gmail.com>
Wed, 14 Oct 2015 13:13:53 +0000
(14:13 +0100)
youtube_dl/extractor/criterion.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/criterion.py
b/youtube_dl/extractor/criterion.py
index 4fb1781659b3266b4c475b566911385ec2f7c5b7..dedb810a092618a090641dfaf582939efabf3fc0 100644
(file)
--- a/
youtube_dl/extractor/criterion.py
+++ b/
youtube_dl/extractor/criterion.py
@@
-27,9
+27,7
@@
class CriterionIE(InfoExtractor):
final_url = self._search_regex(
r'so.addVariable\("videoURL", "(.+?)"\)\;', webpage, 'video url')
title = self._og_search_title(webpage)
- description = self._html_search_regex(
- r'<meta name="description" content="(.+?)" />',
- webpage, 'video description')
+ description = self._html_search_meta('description', webpage)
thumbnail = self._search_regex(
r'so.addVariable\("thumbnailURL", "(.+?)"\)\;',
webpage, 'thumbnail url')