diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-08-21 23:06:27 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-08-21 23:06:27 +0700 |
commit | 8d9c2a681a1dcf99ab949e79b1b9da17513e11d8 (patch) | |
tree | 727af832a73ee349c653a436283ff727b5046898 /youtube_dl/extractor/pornhub.py | |
parent | 903d4d1625f59b6fb359a898fbb512cb2d6181e9 (diff) |
[pornhub] Relax uploader regex (closes #13906, closes #13975)
Diffstat (limited to 'youtube_dl/extractor/pornhub.py')
-rw-r--r-- | youtube_dl/extractor/pornhub.py | 2 |
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: .+?<(?: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( |