projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e497a7f
)
[nfl] Use compatible urlparse
author
Naglis Jonaitis
<njonaitis@gmail.com>
Tue, 30 Sep 2014 17:01:37 +0000
(20:01 +0300)
committer
Naglis Jonaitis
<njonaitis@gmail.com>
Tue, 30 Sep 2014 17:01:37 +0000
(20:01 +0300)
youtube_dl/extractor/nfl.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nfl.py
b/youtube_dl/extractor/nfl.py
index 4832b3ce4b765d332ea8e827205547bd062c400c..cc7c921c364d64ee504fa6d31265d13a96565e8d 100644
(file)
--- a/
youtube_dl/extractor/nfl.py
+++ b/
youtube_dl/extractor/nfl.py
@@
-6,7
+6,7
@@
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
from .common import InfoExtractor
from ..utils import (
ExtractorError,
- compat_urllib_parse,
+ compat_urllib_parse
_urlparse
,
int_or_none,
remove_end,
)
int_or_none,
remove_end,
)
@@
-90,7
+90,7
@@
class NFLIE(InfoExtractor):
cdn_data = video_data.get('cdnData', {})
streams = cdn_data.get('bitrateInfo', [])
if cdn_data.get('format') == 'EXTERNAL_HTTP_STREAM':
cdn_data = video_data.get('cdnData', {})
streams = cdn_data.get('bitrateInfo', [])
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
for stream in streams:
formats.append(
protocol, host = parts.scheme, parts.netloc
for stream in streams:
formats.append(