deemix-py/deemix/__main__.py

17 lines
421 B
Python
Raw Normal View History

2020-02-17 16:46:18 +01:00
#!/usr/bin/env python3
import click
2020-04-08 00:19:27 +02:00
import deemix.app.cli as app
from deemix.app.settings import initSettings
@click.command()
@click.option('-b', '--bitrate', default=None, help='Overwrites the default bitrate selected')
@click.argument('url')
def download(bitrate, url):
settings = initSettings()
app.login()
app.downloadLink(url, settings, bitrate)
click.echo("All done!")
2020-02-17 16:46:18 +01:00
if __name__ == '__main__':
download()