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),