From: Sergey M․ Date: Sun, 18 Sep 2016 00:22:06 +0000 (+0700) Subject: [xfileshare] Add title regex for streamin.to and fallback to video id (Closes #10646) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=190d2027d0b6c785cf789edf6c1bdac2ef650a66;p=youtube-dl [xfileshare] Add title regex for streamin.to and fallback to video id (Closes #10646) --- diff --git a/youtube_dl/extractor/xfileshare.py b/youtube_dl/extractor/xfileshare.py index 995aada0d..de344bad2 100644 --- a/youtube_dl/extractor/xfileshare.py +++ b/youtube_dl/extractor/xfileshare.py @@ -124,12 +124,14 @@ class XFileShareIE(InfoExtractor): webpage = self._download_webpage(req, video_id, 'Downloading video page') title = (self._search_regex( - [r'style="z-index: [0-9]+;">([^<]+)', + (r'style="z-index: [0-9]+;">([^<]+)', r'([^<]+)', r'h4-fine[^>]*>([^<]+)<', r'>Watch (.+) ', - r'

([^<]+)

'], - webpage, 'title', default=None) or self._og_search_title(webpage)).strip() + r'

([^<]+)

', + r'

]*>([^<]+)<'), # streamin.to + webpage, 'title', default=None) or self._og_search_title( + webpage, default=None) or video_id).strip() def extract_video_url(default=NO_DEFAULT): return self._search_regex(