-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathmanzana.py
More file actions
86 lines (73 loc) · 2.22 KB
/
manzana.py
File metadata and controls
86 lines (73 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# -*- coding: utf-8 -*-
import argparse
from rich.traceback import install
from core import run
from utils import config
install()
__version__ = '2.5.0'
LOGO = r"""
$$$$$$\$$$$\ $$$$$$\ $$$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\
$$ _$$ _$$\ \____$$\ $$ __$$\ \____$$ |\____$$\ $$ __$$\ \____$$\
$$ / $$ / $$ | $$$$$$$ |$$ | $$ | $$$$ _/ $$$$$$$ |$$ | $$ | $$$$$$$ |
$$ | $$ | $$ |$$ __$$ |$$ | $$ | $$ _/ $$ __$$ |$$ | $$ |$$ __$$ |
$$ | $$ | $$ |\$$$$$$$ |$$ | $$ |$$$$$$$$\\$$$$$$$ |$$ | $$ |\$$$$$$$ |
\__| \__| \__| \_______|\__| \__|\________|\_______|\__| \__| \_______|
──── Apple Music Downloader ────
"""
def main():
parser = argparse.ArgumentParser(
description="Manzana: Apple Music Downloader"
)
parser.add_argument(
'-v',
'--version',
version=f"Manzana: Apple Music Downloader v{__version__}",
action="version"
)
parser.add_argument(
'-a',
'--anim-cover',
dest='anim',
help="save animated artwork. [default: False]",
action="store_true"
)
parser.add_argument(
'-s',
'--skip-video',
dest='skip',
help="skip music-videos inside albums. [default: False]",
action="store_true"
)
parser.add_argument(
'-ln',
'--no-lrc',
dest='noLrc',
help="don't save time-synced lyrics. [default: False]",
action="store_true"
)
parser.add_argument(
'-tn',
'--no-tags',
dest='noTags',
help="don't add credits info. [default: False]",
action="store_true"
)
parser.add_argument(
'-cn',
'--no-cover',
dest='noCover',
help="don't save album artwork. [default: False]",
action="store_true"
)
parser.add_argument(
'url',
nargs='+',
help="Apple Music URL(s) for artist, album, song, playlist or music-video",
type=str
)
return parser.parse_args()
if __name__ == "__main__":
print(LOGO)
args = main()
config.get_config()
run(args)