[pornhub] Relax uploader regex (closes #13906, closes #13975)
authorSergey M․ <dstftw@gmail.com>
Mon, 21 Aug 2017 16:06:27 +0000 (23:06 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 21 Aug 2017 16:06:27 +0000 (23:06 +0700)
youtube_dl/extractor/pornhub.py

index f6777cd268b4169a253253d07cb00fff226f348c..3428458afa987fb3eb8c3be061742cefce6e2734 100644 (file)
@@ -186,7 +186,7 @@ class PornHubIE(InfoExtractor):
             title, thumbnail, duration = [None] * 3
 
         video_uploader = self._html_search_regex(
-            r'(?s)From:&nbsp;.+?<(?:a href="/users/|a href="/channels/|span class="username)[^>]+>(.+?)<',
+            r'(?s)From:&nbsp;.+?<(?:a\b[^>]+\bhref=["\']/(?:user|channel)s/|span\b[^>]+\bclass=["\']username)[^>]+>(.+?)<',
             webpage, 'uploader', fatal=False)
 
         view_count = self._extract_count(