mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-09-08 21:45:05 +00:00
[nfl] Use compatible urlparse
This commit is contained in:
parent
e497a7f2ca
commit
f8fb4a7ca8
|
@ -6,7 +6,7 @@ import re
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
compat_urllib_parse,
|
compat_urllib_parse_urlparse,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
remove_end,
|
remove_end,
|
||||||
)
|
)
|
||||||
|
@ -90,7 +90,7 @@ class NFLIE(InfoExtractor):
|
||||||
cdn_data = video_data.get('cdnData', {})
|
cdn_data = video_data.get('cdnData', {})
|
||||||
streams = cdn_data.get('bitrateInfo', [])
|
streams = cdn_data.get('bitrateInfo', [])
|
||||||
if cdn_data.get('format') == 'EXTERNAL_HTTP_STREAM':
|
if cdn_data.get('format') == 'EXTERNAL_HTTP_STREAM':
|
||||||
parts = compat_urllib_parse.urlparse(cdn_data.get('uri'))
|
parts = compat_urllib_parse_urlparse(cdn_data.get('uri'))
|
||||||
protocol, host = parts.scheme, parts.netloc
|
protocol, host = parts.scheme, parts.netloc
|
||||||
for stream in streams:
|
for stream in streams:
|
||||||
formats.append(
|
formats.append(
|
||||||
|
|
Loading…
Reference in a new issue