projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1888d3f
)
[drtuber] Add one more title regex
author
Sergey M․
<dstftw@gmail.com>
Sat, 14 Feb 2015 12:50:13 +0000
(18:50 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 14 Feb 2015 12:50:13 +0000
(18:50 +0600)
youtube_dl/extractor/drtuber.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/drtuber.py
b/youtube_dl/extractor/drtuber.py
index 2f06e64cc569d516c8a189080c9b912c1a807e89..37c5c181f799efd8ee69d850c0b6076130c64073 100644
(file)
--- a/
youtube_dl/extractor/drtuber.py
+++ b/
youtube_dl/extractor/drtuber.py
@@
-15,7
+15,7
@@
class DrTuberIE(InfoExtractor):
'id': '1740434',
'display_id': 'hot-perky-blonde-naked-golf',
'ext': 'mp4',
'id': '1740434',
'display_id': 'hot-perky-blonde-naked-golf',
'ext': 'mp4',
- 'title': '
Hot Perky Blonde Naked G
olf',
+ 'title': '
hot perky blonde naked g
olf',
'like_count': int,
'dislike_count': int,
'comment_count': int,
'like_count': int,
'dislike_count': int,
'comment_count': int,
@@
-36,7
+36,8
@@
class DrTuberIE(InfoExtractor):
r'<source src="([^"]+)"', webpage, 'video URL')
title = self._html_search_regex(
r'<source src="([^"]+)"', webpage, 'video URL')
title = self._html_search_regex(
- r'<title>([^<]+) - \d+', webpage, 'title')
+ [r'class="hd_title" style="[^"]+">([^<]+)</h1>', r'<title>([^<]+) - \d+'],
+ webpage, 'title')
thumbnail = self._html_search_regex(
r'poster="([^"]+)"',
thumbnail = self._html_search_regex(
r'poster="([^"]+)"',