projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f1ea7c
)
[sockshare] Fix title extraction (Fixes #3592)
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 26 Aug 2014 19:30:30 +0000
(21:30 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 26 Aug 2014 19:30:30 +0000
(21:30 +0200)
youtube_dl/extractor/sockshare.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/sockshare.py
b/youtube_dl/extractor/sockshare.py
index dc9f8055013170a87a447ee6370f5cae4546174d..c663e56d42ed02645313637cd7866a9071d10ae7 100644
(file)
--- a/
youtube_dl/extractor/sockshare.py
+++ b/
youtube_dl/extractor/sockshare.py
@@
-61,7
+61,10
@@
class SockshareIE(InfoExtractor):
r'<a href="([^"]*)".+class="download_file_link"',
webpage, 'file url')
video_url = "http://www.sockshare.com" + video_url
- title = self._html_search_regex(r'<h1>(.+)<strong>', webpage, 'title')
+ title = self._html_search_regex((
+ r'<h1>(.+)<strong>',
+ r'var name = "([^"]+)";'),
+ webpage, 'title', default=None)
thumbnail = self._html_search_regex(
r'<img\s+src="([^"]*)".+?name="bg"',
webpage, 'thumbnail')