Change the option to --auth-token

This commit is contained in:
Ivan Habunek
2022-06-25 09:59:31 +02:00
parent 670e96f2a7
commit 409100651e
3 changed files with 4 additions and 4 deletions

View File

@ -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 &#x27;auth_token&#x27; cookie in any browser logged in on Twitch.</td>
</tr>
<tr>

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, 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)

View File

@ -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.",