summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-08-21 23:06:27 +0700
committerSergey M․ <dstftw@gmail.com>2017-08-21 23:06:27 +0700
commit8d9c2a681a1dcf99ab949e79b1b9da17513e11d8 (patch)
tree727af832a73ee349c653a436283ff727b5046898
parent903d4d1625f59b6fb359a898fbb512cb2d6181e9 (diff)
downloadyoutube-dl-8d9c2a681a1dcf99ab949e79b1b9da17513e11d8.tar.gz
youtube-dl-8d9c2a681a1dcf99ab949e79b1b9da17513e11d8.tar.xz
youtube-dl-8d9c2a681a1dcf99ab949e79b1b9da17513e11d8.zip
[pornhub] Relax uploader regex (closes #13906, closes #13975)
-rw-r--r--youtube_dl/extractor/pornhub.py2
1 files changed, 1 insertions, 1 deletions
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:&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(