-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
manzana.py
86 lines (74 loc) · 2.34 KB
/
manzana.py
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
import os
import argparse
from rich.console import Console
from rich.traceback import install
from control import arguments
install()
console = Console()
LOGO = r"""
[bright_white bold]$$$$$$\$$$$\ $$$$$$\ $$$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\
$$ _$$ _$$\ \____$$\ $$ __$$\ \____$$ |\____$$\ $$ __$$\ \____$$\
$$ / $$ / $$ | $$$$$$$ |$$ | $$ | $$$$ _/ $$$$$$$ |$$ | $$ | $$$$$$$ |
$$ | $$ | $$ |$$ __$$ |$$ | $$ | $$ _/ $$ __$$ |$$ | $$ |$$ __$$ |
$$ | $$ | $$ |\$$$$$$$ |$$ | $$ |$$$$$$$$\\$$$$$$$ |$$ | $$ |\$$$$$$$ |
\__| \__| \__| \_______|\__| \__|\________|\_______|\__| \__| \_______|
──── Apple Music Tagger ────[/]
"""
def main():
parser = argparse.ArgumentParser(
description="Manzana: Apple Music Tagger"
)
parser.add_argument(
'-v',
'--version',
version="Manzana: Apple Music Tagger v2.0.0",
action="version"
)
parser.add_argument(
'-sc',
'--sync',
choices=["2", "3"],
default="2",
help="Timecode's ms point count in synced lyrics. (default: 2)"
)
parser.add_argument(
'-an',
'--animartwork',
help="Download the animated artwork if available. (default: False)",
action="store_true"
)
parser.add_argument(
'-cn',
'--no-cover',
help="Don't save album artwork. (default: False)",
action="store_true"
)
parser.add_argument(
'-ln',
'--no-lrc',
help="Don't save time-synced lyrics as a .lrc file. (default: False)",
action="store_true"
)
parser.add_argument(
'-sv',
'--skip-video',
help="Skip videos in an album. (default: False)",
action="store_true"
)
parser.add_argument(
'-i',
'--input',
help="Folder or file path for m4a/mp4 media files. (default: Current working directory)",
default=os.getcwd(),
)
parser.add_argument(
'url',
help="Apple Music URL",
type=str
)
args = parser.parse_args()
arguments(args)
if __name__ == "__main__":
os.system('cls' if os.name == 'nt' else 'clear')
console.print(LOGO)
main()