mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Fix query to fetch HD qualities
This commit is contained in:
parent
ac7cdba28e
commit
cfefae1e69
@ -3,6 +3,7 @@ Twitch API access.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
import random
|
||||||
import time
|
import time
|
||||||
from typing import Any, Dict, Generator, List, Mapping, Optional, Tuple, Union
|
from typing import Any, Dict, Generator, List, Mapping, Optional, Tuple, Union
|
||||||
|
|
||||||
@ -391,8 +392,12 @@ def get_playlists(video_id: str, access_token: AccessToken) -> str:
|
|||||||
"allow_audio_only": "true",
|
"allow_audio_only": "true",
|
||||||
"allow_source": "true",
|
"allow_source": "true",
|
||||||
"player": "twitchweb",
|
"player": "twitchweb",
|
||||||
|
"platform": "web",
|
||||||
|
"supported_codecs": "av1,h265,h264",
|
||||||
|
"p": random.randint(1000000, 10000000),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
return response.content.decode("utf-8")
|
return response.content.decode("utf-8")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user