mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Change the option to --auth-token
This commit is contained in:
@ -71,8 +71,8 @@ twitch-dl download <video> [FLAGS] [OPTIONS]
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="code">-a, --auth</td>
|
||||
<td>Twitch authentication token needed for subscriber-only VODs. Can be found in the 'auth_token' cookie.</td>
|
||||
<td class="code">-a, --auth-token</td>
|
||||
<td>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.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -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, auth_token=args.auth)
|
||||
access_token = twitch.get_access_token(video_id, auth_token=args.auth_token)
|
||||
|
||||
print_out("<dim>Fetching playlists...</dim>")
|
||||
playlists_m3u8 = twitch.get_playlists(video_id, access_token)
|
||||
|
@ -176,7 +176,7 @@ COMMANDS = [
|
||||
"help": "Video quality, e.g. 720p. Set to 'source' to get best quality.",
|
||||
"type": str,
|
||||
}),
|
||||
(["-a", "--auth"], {
|
||||
(["-a", "--auth-token"], {
|
||||
"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.",
|
||||
|
Reference in New Issue
Block a user