projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[test_http] Use 127.0.0.1 instead of localhost
[youtube-dl]
/
youtube_dl
/
extractor
/
pornhub.py
diff --git
a/youtube_dl/extractor/pornhub.py
b/youtube_dl/extractor/pornhub.py
index f6777cd268b4169a253253d07cb00fff226f348c..3428458afa987fb3eb8c3be061742cefce6e2734 100644
(file)
--- 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(
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(
webpage, 'uploader', fatal=False)
view_count = self._extract_count(