Update 'deemix/__main__.py'

Added option for download path
This commit is contained in:
TheUltimateC0der 2020-09-02 23:14:59 +02:00
parent 1de7d1d220
commit 17fb1f3aa3
1 changed files with 3 additions and 2 deletions

View File

@ -7,9 +7,10 @@ from os.path import isfile
@click.command()
@click.option('-b', '--bitrate', default=None, help='Overwrites the default bitrate selected')
@click.option('-l', '--local', is_flag=True, help='Downloads in a local folder insted of using the default')
@click.option('-p', '--path', type=str, help='Downloads in the given folder')
@click.argument('url', nargs=-1, required=True)
def download(bitrate, local, url):
app = cli(local)
def download(bitrate, local, url, path):
app = cli(local, path)
app.login()
url = list(url)
if isfile(url[0]):