projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c915451
)
[ccc] Fix description extraction and update test
author
Sergey M․
<dstftw@gmail.com>
Fri, 1 Jan 2016 09:29:42 +0000
(15:29 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 1 Jan 2016 09:29:42 +0000
(15:29 +0600)
youtube_dl/extractor/ccc.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ccc.py
b/youtube_dl/extractor/ccc.py
index 5b549b343f94da1bf76bd31572df62cf361fa449..45115c8387f10293955f479d0456775d34f97474 100644
(file)
--- a/
youtube_dl/extractor/ccc.py
+++ b/
youtube_dl/extractor/ccc.py
@@
-21,10
+21,10
@@
class CCCIE(InfoExtractor):
'id': '30C3_-_5443_-_en_-_saal_g_-_201312281830_-_introduction_to_processor_design_-_byterazor',
'ext': 'mp4',
'title': 'Introduction to Processor Design',
'id': '30C3_-_5443_-_en_-_saal_g_-_201312281830_-_introduction_to_processor_design_-_byterazor',
'ext': 'mp4',
'title': 'Introduction to Processor Design',
- 'description': 'md5:
5ddbf8c734800267f2cee4eab187bc1b
',
+ 'description': 'md5:
80be298773966f66d56cb11260b879af
',
'thumbnail': 're:^https?://.*\.jpg$',
'view_count': int,
'thumbnail': 're:^https?://.*\.jpg$',
'view_count': int,
- 'upload_date': '2013122
9
',
+ 'upload_date': '2013122
8
',
}
}, {
'url': 'https://media.ccc.de/v/32c3-7368-shopshifting#download',
}
}, {
'url': 'https://media.ccc.de/v/32c3-7368-shopshifting#download',
@@
-43,7
+43,7
@@
class CCCIE(InfoExtractor):
title = self._html_search_regex(
r'(?s)<h1>(.*?)</h1>', webpage, 'title')
description = self._html_search_regex(
title = self._html_search_regex(
r'(?s)<h1>(.*?)</h1>', webpage, 'title')
description = self._html_search_regex(
- r"(?s)<
p class='description'>(.*?)</p
>",
+ r"(?s)<
h3>About</h3>(.+?)<h3
>",
webpage, 'description', fatal=False)
upload_date = unified_strdate(self._html_search_regex(
r"(?s)<span[^>]+class='[^']*fa-calendar-o'[^>]*>(.+?)</span>",
webpage, 'description', fatal=False)
upload_date = unified_strdate(self._html_search_regex(
r"(?s)<span[^>]+class='[^']*fa-calendar-o'[^>]*>(.+?)</span>",