Implemented auth param

This commit is contained in:
Philipp 2022-06-25 04:15:17 +02:00 committed by Ivan Habunek
parent 827fff73c6
commit f37179d786
2 changed files with 8 additions and 1 deletions

View File

@ -274,7 +274,7 @@ def _download_video(video_id, args):
args.overwrite = True
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>")
playlists_m3u8 = twitch.get_playlists(video_id, access_token)

View File

@ -176,6 +176,13 @@ COMMANDS = [
"help": "Video quality, e.g. 720p. Set to 'source' to get best quality.",
"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"], {
"help": "Don't run ffmpeg to join the downloaded vods, implies --keep.",
"action": "store_true",