]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[pornhub] Fix uploader regex
authorSergey M․ <dstftw@gmail.com>
Thu, 19 Feb 2015 16:15:49 +0000 (22:15 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 19 Feb 2015 16:15:49 +0000 (22:15 +0600)
youtube_dl/extractor/pornhub.py

index 913995044c34171e038991b7b0e59029126bb3c0..3a27e37890dc78b26af866c9884807c97c56ccb9 100644 (file)
@@ -56,7 +56,7 @@ class PornHubIE(InfoExtractor):
 
         video_title = self._html_search_regex(r'<h1 [^>]+>([^<]+)', webpage, 'title')
         video_uploader = self._html_search_regex(
-            r'(?s)From:&nbsp;.+?<(?:a href="/users/|a href="/channels/|<span class="username)[^>]+>(.+?)<',
+            r'(?s)From:&nbsp;.+?<(?:a href="/users/|a href="/channels/|span class="username)[^>]+>(.+?)<',
             webpage, 'uploader', fatal=False)
         thumbnail = self._html_search_regex(r'"image_url":"([^"]+)', webpage, 'thumbnail', fatal=False)
         if thumbnail: