mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 09:50:16 +00:00
Show possible special tags in -h
This commit is contained in:
@@ -59,6 +59,23 @@ def get_arguments(config_base=_CONFIG_BASE):
|
|||||||
"https://github.com/ritiek/spotify-downloader/releases/tag/v2.0.0"
|
"https://github.com/ritiek/spotify-downloader/releases/tag/v2.0.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
possible_special_tags = (
|
||||||
|
"{track-name}",
|
||||||
|
"{artist}",
|
||||||
|
"{album}",
|
||||||
|
"{album-artist}",
|
||||||
|
"{genre}",
|
||||||
|
"{disc-number}",
|
||||||
|
"{duration}",
|
||||||
|
"{year}",
|
||||||
|
"{original-date}",
|
||||||
|
"{track-number}",
|
||||||
|
"{total-tracks}",
|
||||||
|
"{isrc}",
|
||||||
|
"{track-id}",
|
||||||
|
"{output-ext}",
|
||||||
|
)
|
||||||
|
|
||||||
# `--remove-config` does not require the any of the group arguments to be passed.
|
# `--remove-config` does not require the any of the group arguments to be passed.
|
||||||
group = parser.add_mutually_exclusive_group(required=not to_remove_config)
|
group = parser.add_mutually_exclusive_group(required=not to_remove_config)
|
||||||
|
|
||||||
@@ -162,9 +179,9 @@ def get_arguments(config_base=_CONFIG_BASE):
|
|||||||
"--output-file",
|
"--output-file",
|
||||||
default=defaults["output_file"],
|
default=defaults["output_file"],
|
||||||
help="path where to write the downloaded track to, special tags "
|
help="path where to write the downloaded track to, special tags "
|
||||||
"are to be surrounded by curly braces. Possible tags: "
|
"are to be surrounded by curly braces. Possible tags: {}".format(
|
||||||
# TODO: Add possible tags
|
possible_special_tags
|
||||||
# "{}".format([spotdl.util.formats[x] for x in spotdl.util.formats]),
|
)
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--trim-silence",
|
"--trim-silence",
|
||||||
@@ -177,9 +194,9 @@ def get_arguments(config_base=_CONFIG_BASE):
|
|||||||
"--search-format",
|
"--search-format",
|
||||||
default=defaults["search_format"],
|
default=defaults["search_format"],
|
||||||
help="search format to search for on YouTube, special tags "
|
help="search format to search for on YouTube, special tags "
|
||||||
"are to be surrounded by curly braces. Possible tags: "
|
"are to be surrounded by curly braces. Possible tags: {}".format(
|
||||||
# TODO: Add possible tags
|
possible_special_tags
|
||||||
# "{}".format([spotdl.util.formats[x] for x in spotdl.util.formats]),
|
)
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-d",
|
"-d",
|
||||||
|
|||||||
Reference in New Issue
Block a user