From: Sergey M․ Date: Mon, 21 Aug 2017 16:06:27 +0000 (+0700) Subject: [pornhub] Relax uploader regex (closes #13906, closes #13975) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=8d9c2a681a1dcf99ab949e79b1b9da17513e11d8;p=youtube-dl [pornhub] Relax uploader regex (closes #13906, closes #13975) --- diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index f6777cd26..3428458af 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -186,7 +186,7 @@ class PornHubIE(InfoExtractor): title, thumbnail, duration = [None] * 3 video_uploader = self._html_search_regex( - r'(?s)From: .+?<(?:a href="/users/|a href="/channels/|span class="username)[^>]+>(.+?)<', + r'(?s)From: .+?<(?:a\b[^>]+\bhref=["\']/(?:user|channel)s/|span\b[^>]+\bclass=["\']username)[^>]+>(.+?)<', webpage, 'uploader', fatal=False) view_count = self._extract_count(