Hide the wget progress bar option
parent
89840bfa5b
commit
31562a3d79
10
scdl/scdl.py
10
scdl/scdl.py
|
@ -5,9 +5,9 @@
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
scdl -l <track_url> [-a | -f | -t | -p][-c][-o <offset>]\
|
scdl -l <track_url> [-a | -f | -t | -p][-c][-o <offset>]\
|
||||||
[--hidewarnings][--debug | --error][--path <path>][--addtofile][--onlymp3]
|
[--hidewarnings][--debug | --error][--path <path>][--addtofile][--onlymp3][--tmux]
|
||||||
scdl me (-s | -a | -f | -t | -p)[-c][-o <offset>]\
|
scdl me (-s | -a | -f | -t | -p)[-c][-o <offset>]\
|
||||||
[--hidewarnings][--debug | --error][--path <path>][--addtofile][--onlymp3]
|
[--hidewarnings][--debug | --error][--path <path>][--addtofile][--onlymp3][--tmux]
|
||||||
scdl -h | --help
|
scdl -h | --help
|
||||||
scdl --version
|
scdl --version
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ Options:
|
||||||
--onlymp3 Download only the mp3 file even if the track is Downloadable
|
--onlymp3 Download only the mp3 file even if the track is Downloadable
|
||||||
--error Only print debug information (Error/Warning)
|
--error Only print debug information (Error/Warning)
|
||||||
--debug Print every information and
|
--debug Print every information and
|
||||||
|
--tmux Hide the wget progress bar
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -351,7 +352,10 @@ def download_track(track, playlist_name=None):
|
||||||
|
|
||||||
# Download
|
# Download
|
||||||
if not os.path.isfile(filename):
|
if not os.path.isfile(filename):
|
||||||
wget.download(url, filename)
|
if arguments['--tmux']:
|
||||||
|
wget.download(url, filename, bar=None)
|
||||||
|
else:
|
||||||
|
wget.download(url, filename)
|
||||||
logger.newline()
|
logger.newline()
|
||||||
if '.mp3' in filename:
|
if '.mp3' in filename:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue