1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 03:32:05 +00:00

[xxxymovies] Fix title extraction (closes #13868)

This commit is contained in:
Sergey M․ 2017-08-09 23:46:49 +07:00
parent dee04d24a4
commit baba5f4d1d
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -39,8 +39,8 @@ class XXXYMoviesIE(InfoExtractor):
r"video_url\s*:\s*'([^']+)'", webpage, 'video URL') r"video_url\s*:\s*'([^']+)'", webpage, 'video URL')
title = self._html_search_regex( title = self._html_search_regex(
[r'<div class="block_header">\s*<h1>([^<]+)</h1>', [r'<div[^>]+\bclass="block_header"[^>]*>\s*<h1>([^<]+)<',
r'<title>(.*?)\s*-\s*XXXYMovies\.com</title>'], r'<title>(.*?)\s*-\s*(?:XXXYMovies\.com|XXX\s+Movies)</title>'],
webpage, 'title') webpage, 'title')
thumbnail = self._search_regex( thumbnail = self._search_regex(