Prepare for releases

This commit is contained in:
Linus Groh
2018-02-02 15:19:12 +01:00
parent 08ae7ae24a
commit 177f72b532
6 changed files with 202 additions and 29 deletions

View File

@@ -16,6 +16,8 @@ import time
import platform
import pprint
__version__ = '1.0.0b1'
def check_exists(music_file, raw_song, meta_tags):
""" Check if the input song already exists in the given folder. """
@@ -167,12 +169,13 @@ def download_single(raw_song, number=None):
return True
if __name__ == '__main__':
def main():
const.args = handle.get_arguments()
internals.filter_path(const.args.folder)
const.log = const.logzero.setup_logger(formatter=const.formatter,
level=const.args.log_level)
global log
log = const.log
log.debug('Python version: {}'.format(sys.version))
log.debug('Platform: {}'.format(platform.platform()))
@@ -197,3 +200,7 @@ if __name__ == '__main__':
except KeyboardInterrupt as e:
log.exception(e)
sys.exit(3)
if __name__ == '__main__':
main()