]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[pinkbike] Fix uploader extraction (closes #12054)
authorSergey M․ <dstftw@gmail.com>
Tue, 14 Feb 2017 19:08:32 +0000 (02:08 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 14 Feb 2017 19:08:32 +0000 (02:08 +0700)
youtube_dl/extractor/pinkbike.py

index 6a4580d54c8733166316c80a2361499e85eb9baf..9f3501f7770fa93fb54fc19ff554e64c6d8da25f 100644 (file)
@@ -64,7 +64,8 @@ class PinkbikeIE(InfoExtractor):
             'video:duration', webpage, 'duration'))
 
         uploader = self._search_regex(
-            r'un:\s*"([^"]+)"', webpage, 'uploader', fatal=False)
+            r'<a[^>]+\brel=["\']author[^>]+>([^<]+)', webpage,
+            'uploader', fatal=False)
         upload_date = unified_strdate(self._search_regex(
             r'class="fullTime"[^>]+title="([^"]+)"',
             webpage, 'upload date', fatal=False))