mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
Fix 2 flake8-warnings
This commit is contained in:
parent
4635796778
commit
05743aa624
@ -1784,7 +1784,7 @@ class InfoExtractor(object):
|
|||||||
|
|
||||||
def _parse_m3u8_subtitles(self, m3u8_doc, m3u8_url):
|
def _parse_m3u8_subtitles(self, m3u8_doc, m3u8_url):
|
||||||
"""
|
"""
|
||||||
Parse subtitles from m3u8 file.
|
Parse subtitles from m3u8 file.
|
||||||
Please avoid downloading the m3u8 twice.
|
Please avoid downloading the m3u8 twice.
|
||||||
"""
|
"""
|
||||||
format_url = lambda u: (
|
format_url = lambda u: (
|
||||||
|
@ -119,7 +119,6 @@ class TV4IE(InfoExtractor):
|
|||||||
|
|
||||||
if res:
|
if res:
|
||||||
m3u8_doc, urlh = res
|
m3u8_doc, urlh = res
|
||||||
m3u8_url = urlh.geturl()
|
|
||||||
subtitles = self._parse_m3u8_subtitles(m3u8_doc, manifest_url)
|
subtitles = self._parse_m3u8_subtitles(m3u8_doc, manifest_url)
|
||||||
# Hardcode webvtt for now
|
# Hardcode webvtt for now
|
||||||
for item in subtitles:
|
for item in subtitles:
|
||||||
|
Loading…
Reference in New Issue
Block a user