X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fyesjapan.py;h=681338c96a2c743362773e6ea036a5dc64824326;hb=HEAD;hp=fec1ad1acb61e28872a05be5ee2a86cd2ce7344e;hpb=408b5839b186ffaea09a67e584b8da33525ed967;p=youtube-dl diff --git a/youtube_dl/extractor/yesjapan.py b/youtube_dl/extractor/yesjapan.py index fec1ad1ac..681338c96 100644 --- a/youtube_dl/extractor/yesjapan.py +++ b/youtube_dl/extractor/yesjapan.py @@ -21,7 +21,7 @@ class YesJapanIE(InfoExtractor): 'ext': 'mp4', 'timestamp': 1416391590, 'upload_date': '20141119', - 'thumbnail': 're:^https?://.*\.jpg$', + 'thumbnail': r're:^https?://.*\.jpg$', } } @@ -38,7 +38,7 @@ class YesJapanIE(InfoExtractor): submit_info = get_element_by_attribute('class', 'pm-submit-data', webpage) if submit_info: timestamp = parse_iso8601(self._search_regex( - r'datetime="([^"]+)"', webpage, 'upload date', fatal=False, default=None)) + r'datetime="([^"]+)"', submit_info, 'upload date', fatal=False, default=None)) # attempt to resolve the final URL in order to get a proper extension redirect_req = HEADRequest(video_url)