projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
903d4d1
)
[pornhub] Relax uploader regex (closes #13906, closes #13975)
author
Sergey M․
<dstftw@gmail.com>
Mon, 21 Aug 2017 16:06:27 +0000
(23:06 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 21 Aug 2017 16:06:27 +0000
(23:06 +0700)
youtube_dl/extractor/pornhub.py
patch
|
blob
|
history
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(
- 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(