]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[xxxymovies] Fix title extraction (closes #13868)
authorSergey M․ <dstftw@gmail.com>
Wed, 9 Aug 2017 16:46:49 +0000 (23:46 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 9 Aug 2017 16:46:49 +0000 (23:46 +0700)
youtube_dl/extractor/xxxymovies.py

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