mirror of
https://github.com/l1ving/youtube-dl
synced 2020-11-18 19:53:54 -08:00
extracting data audio config youtube | flake8 pass
This commit is contained in:
parent
418c64b0eb
commit
582b9f9c13
@ -1654,11 +1654,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
|
||||
def _real_extract(self, url):
|
||||
url, smuggled_data = unsmuggle_url(url, {})
|
||||
|
||||
proto = (
|
||||
'http' if self._downloader.params.get('prefer_insecure', False)
|
||||
else 'https')
|
||||
|
||||
start_time = None
|
||||
end_time = None
|
||||
parsed_url = compat_urllib_parse_urlparse(url)
|
||||
@ -1689,6 +1687,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
player_url = None
|
||||
|
||||
dash_mpds = []
|
||||
is_live = None
|
||||
view_count = None
|
||||
|
||||
def add_dash_mpd(video_info):
|
||||
dash_mpd = video_info.get('dashmpd')
|
||||
@ -1702,8 +1702,6 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
if dash_mpd and dash_mpd not in dash_mpds:
|
||||
dash_mpds.append(dash_mpd)
|
||||
|
||||
is_live = None
|
||||
view_count = None
|
||||
def extract_view_count(v_info):
|
||||
return int_or_none(try_get(v_info, lambda x: x['view_count'][0]))
|
||||
|
||||
@ -1727,9 +1725,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
if isinstance(pl_response, dict):
|
||||
add_dash_mpd_pr(pl_response)
|
||||
return pl_response
|
||||
|
||||
player_response = {}
|
||||
|
||||
# Get video info
|
||||
embed_webpage = None
|
||||
if re.search(r'player-age-gate-content">', video_webpage) is not None:
|
||||
@ -1829,7 +1825,6 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
if not token:
|
||||
video_info = get_video_info
|
||||
break
|
||||
|
||||
# Audio config
|
||||
# TODO: Extract all data audioconfig example:
|
||||
# loudnessDb = extract_audioconfig("loudnessDb", player_response)
|
||||
|
Loading…
x
Reference in New Issue
Block a user