youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 6abb066128cfc29b4a4a6eb668f19eb54a7b972e
parent 8f1ea7cbb6cb365e4ffd75bdc2d901afcbfdf72f
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Tue, 26 Aug 2014 21:30:30 +0200

[sockshare] Fix title extraction (Fixes #3592)

Diffstat:
Myoutube_dl/extractor/sockshare.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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')