diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-04-29 19:29:00 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-04-29 19:29:50 +0800 |
commit | 9d186afac818645490122aa7457f247c31c601bf (patch) | |
tree | ffc29ae1d8c33de566828b200b6fb040c2944bf9 /youtube_dl/extractor/vlive.py | |
parent | 151d98130ba29ac7f242c67772d95842317fbe5e (diff) |
[vlive] Coding style and PEP8
Diffstat (limited to 'youtube_dl/extractor/vlive.py')
-rw-r--r-- | youtube_dl/extractor/vlive.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/youtube_dl/extractor/vlive.py b/youtube_dl/extractor/vlive.py index 2151696ea..7f9e99ec2 100644 --- a/youtube_dl/extractor/vlive.py +++ b/youtube_dl/extractor/vlive.py @@ -3,10 +3,11 @@ from __future__ import division, unicode_literals import re import time + from .common import InfoExtractor from ..utils import ( - ExtractorError, dict_get, + ExtractorError, float_or_none, int_or_none, ) @@ -99,10 +100,9 @@ class VLiveIE(InfoExtractor): self._sort_formats(formats) return dict(self._get_common_fields(webpage), - id=video_id, - formats=formats, - is_live=True, - ) + id=video_id, + formats=formats, + is_live=True) def _replay(self, video_id, webpage, long_video_id, key): playinfo = self._download_json( @@ -137,8 +137,7 @@ class VLiveIE(InfoExtractor): 'url': caption['source']}] return dict(self._get_common_fields(webpage), - id=video_id, - formats=formats, - view_count=view_count, - subtitles=subtitles, - ) + id=video_id, + formats=formats, + view_count=view_count, + subtitles=subtitles) |