-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
manzana.py
64 lines (55 loc) · 1.74 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
import argparse
from rich.traceback import install
from core import run
install()
VERSION = '2.1.0'
LOGO = r"""
$$$$$$\$$$$\ $$$$$$\ $$$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\
$$ _$$ _$$\ \____$$\ $$ __$$\ \____$$ |\____$$\ $$ __$$\ \____$$\
$$ / $$ / $$ | $$$$$$$ |$$ | $$ | $$$$ _/ $$$$$$$ |$$ | $$ | $$$$$$$ |
$$ | $$ | $$ |$$ __$$ |$$ | $$ | $$ _/ $$ __$$ |$$ | $$ |$$ __$$ |
$$ | $$ | $$ |\$$$$$$$ |$$ | $$ |$$$$$$$$\\$$$$$$$ |$$ | $$ |\$$$$$$$ |
\__| \__| \__| \_______|\__| \__|\________|\_______|\__| \__| \_______|
──── Apple TV Plus Trailers ────
"""
def main():
parser = argparse.ArgumentParser(
description="Manzana: Apple TV Plus Trailers Downloader"
)
parser.add_argument(
'-v',
'--version',
version=f"Manzana: Apple TV Plus Trailers {VERSION}",
action="version"
)
parser.add_argument(
'-d',
'--default',
dest="default",
help="get only the default content trailer. (default: False)",
action="store_true"
)
parser.add_argument(
'-an',
'--no-audio',
dest="noAudio",
help="don't download audio streams. (default: False)",
action="store_true"
)
parser.add_argument(
'-sn',
'--no-subs',
dest="noSubs",
help="don't download subtitle streams. (default: False)",
action="store_true"
)
parser.add_argument(
'url',
help="AppleTV+ URL for a movie or a tv-show.",
type=str
)
args = parser.parse_args()
run(args)
if __name__ == "__main__":
print(LOGO)
main()