aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-08-26 21:30:30 +0200
committerPhilipp Hagemeister <[email protected]>2014-08-26 21:30:30 +0200
commit6abb066128cfc29b4a4a6eb668f19eb54a7b972e (patch)
treea75b46d22259ef02a0cbe4d621b98f74bf7dd4d3
parent8f1ea7cbb6cb365e4ffd75bdc2d901afcbfdf72f (diff)
downloadyoutube-dl-6abb066128cfc29b4a4a6eb668f19eb54a7b972e.tar.gz
youtube-dl-6abb066128cfc29b4a4a6eb668f19eb54a7b972e.zip
[sockshare] Fix title extraction (Fixes #3592)
-rw-r--r--youtube_dl/extractor/sockshare.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/sockshare.py b/youtube_dl/extractor/sockshare.py
index dc9f80550..c663e56d4 100644
--- 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')