projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb20526
)
[extractor/generic] Pass mpd base url to _parse_mpd_formats
author
Sergey M․
<dstftw@gmail.com>
Fri, 12 Feb 2016 18:15:59 +0000
(
00:15
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 12 Feb 2016 18:15:59 +0000
(
00:15
+0600)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index ede9801bbbf1984a8aac373764e43dbe58afc881..d6d0a9ed0d294fbffc20f9aed77ecffede16d357 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-1302,7
+1302,8
@@
class GenericIE(InfoExtractor):
return {
'id': video_id,
'title': compat_urllib_parse_unquote(os.path.splitext(url_basename(url))[0]),
- 'formats': self._parse_mpd_formats(doc, video_id),
+ 'formats': self._parse_mpd_formats(
+ doc, video_id, mpd_base_url=url.rpartition('/')[0]),
}
except compat_xml_parse_error:
pass