aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorGeorge Brighton <george@gebn.co.uk>2015-06-27 23:04:55 +0100
committerGeorge Brighton <george@gebn.co.uk>2015-06-27 23:04:55 +0100
commitdb652ea186586e3eda5006ee096161b1a867c0d0 (patch)
treec863b14b50ab9d679a5b217d7cb5aa79c45508aa /youtube_dl/extractor
parent5a9cc19972fb3aae7a67470f65ec5cd30918f4e1 (diff)
[moviefap] Fix `flake8` warnings introduced in 1a5fd4e
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/moviefap.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/youtube_dl/extractor/moviefap.py b/youtube_dl/extractor/moviefap.py
index 5e0c701d4..82b863539 100644
--- a/youtube_dl/extractor/moviefap.py
+++ b/youtube_dl/extractor/moviefap.py
@@ -78,8 +78,8 @@ class MovieFapIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
# find and retrieve the XML document detailing video download URLs
- info_url = self._html_search_regex( \
- r'flashvars\.config = escape\("(.+?)"', webpage, 'player parameters')
+ info_url = self._html_search_regex(
+ r'flashvars\.config = escape\("(.+?)"', webpage, 'player parameters')
xml = self._download_xml(info_url, video_id)
# find the video container
@@ -112,24 +112,24 @@ class MovieFapIE(InfoExtractor):
return {
'id': video_id,
'formats': formats,
- 'title': self._html_search_regex( \
- r'<div id="view_title"><h1>(.*?)</h1>', webpage, 'title'),
+ 'title': self._html_search_regex(
+ r'<div id="view_title"><h1>(.*?)</h1>', webpage, 'title'),
'display_id': re.compile(self._VALID_URL).match(url).group('name'),
'thumbnails': self.__get_thumbnail_data(xml),
'thumbnail': xpath_text(xml, 'startThumb', 'thumbnail'),
- 'description': self._html_search_regex( \
- r'name="description" value="(.*?)"', webpage, 'description', fatal=False),
- 'uploader_id': self._html_search_regex( \
- r'name="username" value="(.*?)"', webpage, 'uploader_id', fatal=False),
- 'view_count': str_to_int(self._html_search_regex( \
- r'<br>Views <strong>([0-9]+)</strong>', webpage, 'view_count, fatal=False')),
- 'average_rating': float(self._html_search_regex( \
- r'Current Rating<br> <strong>(.*?)</strong>', webpage, 'average_rating', fatal=False)),
- 'comment_count': str_to_int(self._html_search_regex( \
- r'<span id="comCount">([0-9]+)</span>', webpage, 'comment_count', fatal=False)),
+ 'description': self._html_search_regex(
+ r'name="description" value="(.*?)"', webpage, 'description', fatal=False),
+ 'uploader_id': self._html_search_regex(
+ r'name="username" value="(.*?)"', webpage, 'uploader_id', fatal=False),
+ 'view_count': str_to_int(self._html_search_regex(
+ r'<br>Views <strong>([0-9]+)</strong>', webpage, 'view_count, fatal=False')),
+ 'average_rating': float(self._html_search_regex(
+ r'Current Rating<br> <strong>(.*?)</strong>', webpage, 'average_rating', fatal=False)),
+ 'comment_count': str_to_int(self._html_search_regex(
+ r'<span id="comCount">([0-9]+)</span>', webpage, 'comment_count', fatal=False)),
'age_limit': 18,
- 'webpage_url': self._html_search_regex( \
- r'name="link" value="(.*?)"', webpage, 'webpage_url', fatal=False),
- 'categories': self._html_search_regex( \
- r'</div>\s*(.*?)\s*<br>', webpage, 'categories', fatal=False).split(', ')
+ 'webpage_url': self._html_search_regex(
+ r'name="link" value="(.*?)"', webpage, 'webpage_url', fatal=False),
+ 'categories': self._html_search_regex(
+ r'</div>\s*(.*?)\s*<br>', webpage, 'categories', fatal=False).split(', ')
}