mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 05:36:56 +01:00
[vlive] Coding style and PEP8
This commit is contained in:
parent
151d98130b
commit
9d186afac8
@ -3,10 +3,11 @@
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
ExtractorError,
|
|
||||||
dict_get,
|
dict_get,
|
||||||
|
ExtractorError,
|
||||||
float_or_none,
|
float_or_none,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
)
|
)
|
||||||
@ -99,10 +100,9 @@ def _live(self, video_id, webpage, live_params):
|
|||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
return dict(self._get_common_fields(webpage),
|
return dict(self._get_common_fields(webpage),
|
||||||
id=video_id,
|
id=video_id,
|
||||||
formats=formats,
|
formats=formats,
|
||||||
is_live=True,
|
is_live=True)
|
||||||
)
|
|
||||||
|
|
||||||
def _replay(self, video_id, webpage, long_video_id, key):
|
def _replay(self, video_id, webpage, long_video_id, key):
|
||||||
playinfo = self._download_json(
|
playinfo = self._download_json(
|
||||||
@ -137,8 +137,7 @@ def _replay(self, video_id, webpage, long_video_id, key):
|
|||||||
'url': caption['source']}]
|
'url': caption['source']}]
|
||||||
|
|
||||||
return dict(self._get_common_fields(webpage),
|
return dict(self._get_common_fields(webpage),
|
||||||
id=video_id,
|
id=video_id,
|
||||||
formats=formats,
|
formats=formats,
|
||||||
view_count=view_count,
|
view_count=view_count,
|
||||||
subtitles=subtitles,
|
subtitles=subtitles)
|
||||||
)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user