[sockshare] Fix title extraction (Fixes #3592)

pull/3608/head
Philipp Hagemeister 2014-08-26 21:30:30 +02:00
parent 8f1ea7cbb6
commit 6abb066128
1 changed files with 4 additions and 1 deletions

View File

@ -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')