From 337be3801203d996f5d2fb2fcfe519d860bb0fcd Mon Sep 17 00:00:00 2001 From: Bagira Date: Thu, 6 Jul 2017 15:22:03 +0200 Subject: [PATCH] [indavideo] using update_url_query --- youtube_dl/extractor/indavideo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/indavideo.py b/youtube_dl/extractor/indavideo.py index c1b07cc51..d2bd63189 100644 --- a/youtube_dl/extractor/indavideo.py +++ b/youtube_dl/extractor/indavideo.py @@ -8,6 +8,7 @@ from ..utils import ( int_or_none, parse_age_limit, parse_iso8601, + update_url_query ) @@ -102,8 +103,8 @@ class IndavideoIE(InfoExtractor): _url = video_url if filesh: if _height in filesh: - _url += '&' if '?' in _url else '?' - _url += "token=" + filesh.get(_height) + _url = update_url_query(_url, {'token': filesh.get(_height)}); + formats.append({ 'url': _url, 'height': int_or_none(_height),