1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-04 09:53:32 +08:00

[indavideo] using update_url_query

This commit is contained in:
Bagira
2017-07-06 15:22:03 +02:00
Unverified
parent 9f5bd79a0f
commit 337be38012
+3 -2
View File
@@ -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),