]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[xhamster] Fix uploader extraction
authorSergey M․ <dstftw@gmail.com>
Fri, 8 Jan 2016 18:36:19 +0000 (00:36 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 8 Jan 2016 18:36:19 +0000 (00:36 +0600)
youtube_dl/extractor/xhamster.py

index c9108c345c786699b6c107f1598717c577c2770d..981ee284f78d1fcf4f7ed605604f8d5199dfe289 100644 (file)
@@ -78,7 +78,7 @@ class XHamsterIE(InfoExtractor):
             webpage, 'upload date', fatal=False))
 
         uploader = self._html_search_regex(
-            r"<a href='[^']+xhamster\.com/user/[^>]+>(?P<uploader>[^<]+)",
+            r'<span[^>]+itemprop=["\']author[^>]+><a[^>]+href=["\'].+?xhamster\.com/user/[^>]+>(?P<uploader>.+?)</a>',
             webpage, 'uploader', default='anonymous')
 
         thumbnail = self._search_regex(