projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79fa9db
)
[mtvservices] Fix mediagen URL generation
author
Sergey M․
<dstftw@gmail.com>
Fri, 28 Aug 2015 15:27:36 +0000
(21:27 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 28 Aug 2015 15:27:36 +0000
(21:27 +0600)
youtube_dl/extractor/mtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mtv.py
b/youtube_dl/extractor/mtv.py
index f2d0638bf4d4a75fc29deb47a0a2367d9e315b70..56b255599ebbc66d6be294f90cad34b0d557ba56 100644
(file)
--- a/
youtube_dl/extractor/mtv.py
+++ b/
youtube_dl/extractor/mtv.py
@@
-114,7
+114,8
@@
class MTVServicesInfoExtractor(InfoExtractor):
# Remove the templates, like &device={device}
mediagen_url = re.sub(r'&[^=]*?={.*?}(?=(&|$))', '', mediagen_url)
if 'acceptMethods' not in mediagen_url:
- mediagen_url += '&acceptMethods=fms'
+ mediagen_url += '&' if '?' in mediagen_url else '?'
+ mediagen_url += 'acceptMethods=fms'
mediagen_doc = self._download_xml(mediagen_url, video_id,
'Downloading video urls')