about summary refs log tree commit diff
path: root/youtube_dl/extractor/mtv.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-08-28 21:27:36 +0600
committerSergey M․ <dstftw@gmail.com>2015-08-28 21:27:36 +0600
commit56f447be9fa196bceafbacb6526cad7c122a30ea (patch)
tree2503ce296da4844c9e9cb0450f96d18b8dc6f1ee /youtube_dl/extractor/mtv.py
parent79fa9db0da4aa86aa101cc32a5da4b7e254c6a0d (diff)
downloadyoutube-dl-56f447be9fa196bceafbacb6526cad7c122a30ea.tar.gz
youtube-dl-56f447be9fa196bceafbacb6526cad7c122a30ea.tar.xz
youtube-dl-56f447be9fa196bceafbacb6526cad7c122a30ea.zip
[mtvservices] Fix mediagen URL generation
Diffstat (limited to 'youtube_dl/extractor/mtv.py')
-rw-r--r--youtube_dl/extractor/mtv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py
index f2d0638bf..56b255599 100644
--- 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')