PEP8: applied even more rules
[youtube-dl] / youtube_dl / extractor / firsttv.py
index 20214eac521d140e5b7514c4f03eec17c400be40..08ceee4ed7d5e8b96b81e7d8b9b823a5ea18e120 100644 (file)
@@ -22,7 +22,8 @@ class FirstTVIE(InfoExtractor):
             'description': 'md5:cc730d2bf4215463e37fff6a1e277b13',
             'thumbnail': 'http://img1.1tv.ru/imgsize640x360/PR20140210114657.JPG',
             'duration': 149,
-        }
+        },
+        'skip': 'Only works from Russia',
     }
 
     def _real_extract(self, url):
@@ -32,7 +33,7 @@ class FirstTVIE(InfoExtractor):
         webpage = self._download_webpage(url, video_id, 'Downloading page')
 
         video_url = self._html_search_regex(
-            r'''(?s)jwplayer\('flashvideoportal_1'\).setup\({.*?'file': '([^']+)'.*?}\);''', webpage, 'video URL')
+            r'''(?s)jwplayer\('flashvideoportal_1'\)\.setup\({.*?'file': '([^']+)'.*?}\);''', webpage, 'video URL')
 
         title = self._html_search_regex(
             r'<div class="tv_translation">\s*<h1><a href="[^"]+">([^<]*)</a>', webpage, 'title')
@@ -43,9 +44,9 @@ class FirstTVIE(InfoExtractor):
         duration = self._og_search_property('video:duration', webpage, 'video duration', fatal=False)
 
         like_count = self._html_search_regex(r'title="Понравилось".*?/></label> \[(\d+)\]',
-            webpage, 'like count', fatal=False)
+                                             webpage, 'like count', fatal=False)
         dislike_count = self._html_search_regex(r'title="Не понравилось".*?/></label> \[(\d+)\]',
-            webpage, 'dislike count', fatal=False)
+                                                webpage, 'dislike count', fatal=False)
 
         return {
             'id': video_id,
@@ -56,4 +57,4 @@ class FirstTVIE(InfoExtractor):
             'duration': int_or_none(duration),
             'like_count': int_or_none(like_count),
             'dislike_count': int_or_none(dislike_count),
-        }
\ No newline at end of file
+        }