[indavideo] using update_url_query
This commit is contained in:
parent
9f5bd79a0f
commit
337be38012
@ -8,6 +8,7 @@ from ..utils import (
|
|||||||
int_or_none,
|
int_or_none,
|
||||||
parse_age_limit,
|
parse_age_limit,
|
||||||
parse_iso8601,
|
parse_iso8601,
|
||||||
|
update_url_query
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -102,8 +103,8 @@ class IndavideoIE(InfoExtractor):
|
|||||||
_url = video_url
|
_url = video_url
|
||||||
if filesh:
|
if filesh:
|
||||||
if _height in filesh:
|
if _height in filesh:
|
||||||
_url += '&' if '?' in _url else '?'
|
_url = update_url_query(_url, {'token': filesh.get(_height)});
|
||||||
_url += "token=" + filesh.get(_height)
|
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': _url,
|
'url': _url,
|
||||||
'height': int_or_none(_height),
|
'height': int_or_none(_height),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user