X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fsockshare.py;h=c663e56d42ed02645313637cd7866a9071d10ae7;hb=d65d6286139fb6e4836113924648e35892f48de3;hp=cbf2d7abefad8d6d594a33c6dcaa214031cd8d3e;hpb=66aa382eae9342506db64ce3328a009fd3f06d5c;p=youtube-dl diff --git a/youtube_dl/extractor/sockshare.py b/youtube_dl/extractor/sockshare.py index cbf2d7abe..c663e56d4 100644 --- a/youtube_dl/extractor/sockshare.py +++ b/youtube_dl/extractor/sockshare.py @@ -34,7 +34,7 @@ class SockshareIE(InfoExtractor): webpage = self._download_webpage(url, video_id) if re.search(self._FILE_DELETED_REGEX, webpage) is not None: - raise ExtractorError(u'Video %s does not exist' % video_id, + raise ExtractorError('Video %s does not exist' % video_id, expected=True) confirm_hash = self._html_search_regex(r'''(?x)(.+)', webpage, 'title') - thumbnail = self._html_search_regex(r'(.+)', + r'var name = "([^"]+)";'), + webpage, 'title', default=None) + thumbnail = self._html_search_regex( + r'