mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Implemented auth param
This commit is contained in:
parent
827fff73c6
commit
f37179d786
@ -274,7 +274,7 @@ def _download_video(video_id, args):
|
|||||||
args.overwrite = True
|
args.overwrite = True
|
||||||
|
|
||||||
print_out("<dim>Fetching access token...</dim>")
|
print_out("<dim>Fetching access token...</dim>")
|
||||||
access_token = twitch.get_access_token(video_id)
|
access_token = twitch.get_access_token(video_id, auth_token=args.auth)
|
||||||
|
|
||||||
print_out("<dim>Fetching playlists...</dim>")
|
print_out("<dim>Fetching playlists...</dim>")
|
||||||
playlists_m3u8 = twitch.get_playlists(video_id, access_token)
|
playlists_m3u8 = twitch.get_playlists(video_id, access_token)
|
||||||
|
@ -176,6 +176,13 @@ COMMANDS = [
|
|||||||
"help": "Video quality, e.g. 720p. Set to 'source' to get best quality.",
|
"help": "Video quality, e.g. 720p. Set to 'source' to get best quality.",
|
||||||
"type": str,
|
"type": str,
|
||||||
}),
|
}),
|
||||||
|
(["-a", "--auth"], {
|
||||||
|
"help": "Authentication token, passed to Twitch to access subscriber only "
|
||||||
|
"VODs. Can be copied from the 'auth_token' cookie in any browser "
|
||||||
|
"logged in on Twitch.",
|
||||||
|
"type": str,
|
||||||
|
"default": None,
|
||||||
|
}),
|
||||||
(["--no-join"], {
|
(["--no-join"], {
|
||||||
"help": "Don't run ffmpeg to join the downloaded vods, implies --keep.",
|
"help": "Don't run ffmpeg to join the downloaded vods, implies --keep.",
|
||||||
"action": "store_true",
|
"action": "store_true",
|
||||||
|
Loading…
Reference in New Issue
Block a user