projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a001296
)
[24video] Fix description extraction
author
Sergey M․
<dstftw@gmail.com>
Fri, 20 May 2016 02:53:04 +0000
(08:53 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 20 May 2016 02:53:04 +0000
(08:53 +0600)
youtube_dl/extractor/twentyfourvideo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twentyfourvideo.py
b/youtube_dl/extractor/twentyfourvideo.py
index e03e2dbaa42f23a5107a50c67e7c12d9f378600b..4025edf02b4ca5b8c42e3324fb094fe43141ce68 100644
(file)
--- a/
youtube_dl/extractor/twentyfourvideo.py
+++ b/
youtube_dl/extractor/twentyfourvideo.py
@@
-47,7
+47,8
@@
class TwentyFourVideoIE(InfoExtractor):
title = self._og_search_title(webpage)
description = self._html_search_regex(
- r'<span itemprop="description">([^<]+)</span>', webpage, 'description', fatal=False)
+ r'<(p|span)[^>]+itemprop="description"[^>]*>(?P<description>[^<]+)</\1>',
+ webpage, 'description', fatal=False, group='description')
thumbnail = self._og_search_thumbnail(webpage)
duration = int_or_none(self._og_search_property(
'duration', webpage, 'duration', fatal=False))