mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-09 08:57:17 +08:00
Style to fit Flake8
This commit is contained in:
parent
2c75db360c
commit
be2911be03
@ -4,7 +4,6 @@ import re
|
||||
|
||||
from .common import InfoExtractor
|
||||
from .once import OnceIE
|
||||
from ..compat import compat_str
|
||||
from ..utils import (
|
||||
determine_ext,
|
||||
int_or_none,
|
||||
@ -99,19 +98,17 @@ class ESPNIE(OnceIE):
|
||||
request_url,
|
||||
video_id).findall('clip')[0]
|
||||
|
||||
|
||||
title = clip.findall('headline')[0].text
|
||||
|
||||
format_urls = set()
|
||||
formats = []
|
||||
|
||||
|
||||
def traverse_source(source):
|
||||
for element in source.iter():
|
||||
if element.tag == 'transcodes':
|
||||
continue
|
||||
|
||||
extract_source(element.text, element.tag)
|
||||
|
||||
def extract_source(source_url, source_id=None):
|
||||
if source_url in format_urls:
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user