mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-02-06 10:09:50 +00:00
style guide
This commit is contained in:
parent
f96eff43f4
commit
bfa16e8a1d
@ -6,7 +6,6 @@ import re
|
|||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import (
|
from ..compat import (
|
||||||
compat_str,
|
|
||||||
compat_urlparse,
|
compat_urlparse,
|
||||||
)
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
@ -14,10 +13,8 @@ from ..utils import (
|
|||||||
determine_ext,
|
determine_ext,
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
parse_duration,
|
|
||||||
try_get,
|
try_get,
|
||||||
url_or_none,
|
url_or_none,
|
||||||
urljoin,
|
|
||||||
)
|
)
|
||||||
from .dailymotion import DailymotionIE
|
from .dailymotion import DailymotionIE
|
||||||
from ..downloader import PROTOCOL_MAP
|
from ..downloader import PROTOCOL_MAP
|
||||||
@ -212,7 +209,7 @@ class FranceTVIE(InfoExtractor):
|
|||||||
for lang, sts in info['subtitles'].items():
|
for lang, sts in info['subtitles'].items():
|
||||||
for st in sts:
|
for st in sts:
|
||||||
st['downloader'] = lambda ydl, filename: PROTOCOL_MAP['m3u8_native'](ydl, ydl.params).download(filename, st)
|
st['downloader'] = lambda ydl, filename: PROTOCOL_MAP['m3u8_native'](ydl, ydl.params).download(filename, st)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': self._live_title(info['title']) if is_live else info['title'],
|
'title': self._live_title(info['title']) if is_live else info['title'],
|
||||||
|
Loading…
Reference in New Issue
Block a user