]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[pornhub] Fix typo (Closes #9008)
authorSergey M․ <dstftw@gmail.com>
Sun, 27 Mar 2016 19:21:44 +0000 (01:21 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 27 Mar 2016 19:21:44 +0000 (01:21 +0600)
youtube_dl/extractor/pornhub.py

index ac298d0ce95527d14482abafa20c0d82f490f57d..407ea08d4350b52666150e2784652535625c5e31 100644 (file)
@@ -78,7 +78,7 @@ class PornHubIE(InfoExtractor):
 
         flashvars = self._parse_json(
             self._search_regex(
-                r'var\s+flashv1ars_\d+\s*=\s*({.+?});', webpage, 'flashvars', default='{}'),
+                r'var\s+flashvars_\d+\s*=\s*({.+?});', webpage, 'flashvars', default='{}'),
             video_id)
         if flashvars:
             video_title = flashvars.get('video_title')