mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
Synchronize manual with --help text
This commit is contained in:
parent
d58ce64ec8
commit
2265d544b9
@ -267,6 +267,9 @@ def main():
|
|||||||
parser = OptionParser(usage=usage, version=__version__)
|
parser = OptionParser(usage=usage, version=__version__)
|
||||||
parser.add_option("-o", "--output",
|
parser.add_option("-o", "--output",
|
||||||
metavar="OUTPUT", help="outputs to the given filename")
|
metavar="OUTPUT", help="outputs to the given filename")
|
||||||
|
parser.add_option("-f", "--force",
|
||||||
|
action="store_true", dest="force", default=False,
|
||||||
|
help="overwrite if file exists already")
|
||||||
parser.add_option("-r", "--resume",
|
parser.add_option("-r", "--resume",
|
||||||
action="store_true", dest="resume", default=False,
|
action="store_true", dest="resume", default=False,
|
||||||
help="resume a download (RTMP based ones)")
|
help="resume a download (RTMP based ones)")
|
||||||
@ -274,11 +277,11 @@ def main():
|
|||||||
action="store_true", dest="live", default=False,
|
action="store_true", dest="live", default=False,
|
||||||
help="enable for live streams (RTMP based ones)")
|
help="enable for live streams (RTMP based ones)")
|
||||||
parser.add_option("-s", "--silent",
|
parser.add_option("-s", "--silent",
|
||||||
action="store_true", dest="silent", default=False)
|
action="store_true", dest="silent", default=False,
|
||||||
|
help="be less verbose")
|
||||||
parser.add_option("-v", "--verbose",
|
parser.add_option("-v", "--verbose",
|
||||||
action="store_true", dest="verbose", default=False)
|
action="store_true", dest="verbose", default=False,
|
||||||
parser.add_option("-f", "--force",
|
help="explain what is going on")
|
||||||
action="store_true", dest="force", default=False)
|
|
||||||
parser.add_option("-q", "--quality", default=0,
|
parser.add_option("-q", "--quality", default=0,
|
||||||
metavar="quality", help="choose what format to download based on bitrate / video resolution."
|
metavar="quality", help="choose what format to download based on bitrate / video resolution."
|
||||||
"it will download the best format by default")
|
"it will download the best format by default")
|
||||||
@ -308,7 +311,7 @@ def main():
|
|||||||
parser.add_option("-P", "--preferred", default=None,
|
parser.add_option("-P", "--preferred", default=None,
|
||||||
metavar="preferred", help="preferred download method (rtmp, hls or hds)")
|
metavar="preferred", help="preferred download method (rtmp, hls or hds)")
|
||||||
parser.add_option("--exclude", dest="exclude", default=None,
|
parser.add_option("--exclude", dest="exclude", default=None,
|
||||||
metavar="WORD,WORD2", help="exclude videos with the WORD(s) in the filename. comma seperated.")
|
metavar="WORD1,WORD2,...", help="exclude videos with the WORD(s) in the filename. comma separated.")
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
if not args:
|
if not args:
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
|
@ -19,10 +19,22 @@ to do itself.
|
|||||||
|
|
||||||
=head2 OPTIONS
|
=head2 OPTIONS
|
||||||
|
|
||||||
|
=head3 --version
|
||||||
|
|
||||||
|
Show the program's version number and exit.
|
||||||
|
|
||||||
|
=head3 --help -h
|
||||||
|
|
||||||
|
Show description of options.
|
||||||
|
|
||||||
=head3 --output=filename -o filename
|
=head3 --output=filename -o filename
|
||||||
|
|
||||||
Outputs to the given filename.
|
Outputs to the given filename.
|
||||||
|
|
||||||
|
=head3 --force -f
|
||||||
|
|
||||||
|
Overwrite the output file if it exists already.
|
||||||
|
|
||||||
=head3 --resume -r
|
=head3 --resume -r
|
||||||
|
|
||||||
Resume a download.
|
Resume a download.
|
||||||
@ -35,6 +47,11 @@ Enable support for live streams. (rtmp based ones)
|
|||||||
|
|
||||||
Be less verbose.
|
Be less verbose.
|
||||||
|
|
||||||
|
=head3 --verbose -v
|
||||||
|
|
||||||
|
Explain what is going on, including HTTP requests and other useful
|
||||||
|
debugging data.
|
||||||
|
|
||||||
=head3 --quality=quality -q quality
|
=head3 --quality=quality -q quality
|
||||||
|
|
||||||
Choose what format to download. It will download the best format
|
Choose what format to download. It will download the best format
|
||||||
@ -44,6 +61,10 @@ by default.
|
|||||||
|
|
||||||
Allow given quality (as above) to differ by an amount.
|
Allow given quality (as above) to differ by an amount.
|
||||||
|
|
||||||
|
=head3 --list-quality
|
||||||
|
|
||||||
|
List the available qualities for a video.
|
||||||
|
|
||||||
=head3 --hls -H
|
=head3 --hls -H
|
||||||
|
|
||||||
Use HTTP Live Streaming when downloading.
|
Use HTTP Live Streaming when downloading.
|
||||||
@ -72,17 +93,18 @@ Download thumbnail from the site if available.
|
|||||||
|
|
||||||
Try to download all episodes.
|
Try to download all episodes.
|
||||||
|
|
||||||
|
=head3 --all-last=NN
|
||||||
|
|
||||||
|
Get last NN episodes instead of all episodes, when used with
|
||||||
|
--all-episodes.
|
||||||
|
|
||||||
=head3 -P preferred, --preferred=preferred
|
=head3 -P preferred, --preferred=preferred
|
||||||
|
|
||||||
Preferred download method.
|
Preferred download method.
|
||||||
|
|
||||||
=head3 --version
|
=head3 --exclude=WORD1,WORD2,...
|
||||||
|
|
||||||
Show the program's version number and exit.
|
Exclude videos with the WORD(s) in the filename. Comma separated.
|
||||||
|
|
||||||
=head3 --help -h
|
|
||||||
|
|
||||||
Show description of options.
|
|
||||||
|
|
||||||
=head1 SUPPORTED SERVICES
|
=head1 SUPPORTED SERVICES
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user