forked from Inku0/jupiter-dl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
25 lines (22 loc) · 772 Bytes
/
main.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
from downloader import get_jupiter_video, get_jupiter_series
from sys import argv
if __name__ == "__main__":
print("[add to dl path] [dl, subs or both] [single/series] [jupiter url]")
if len(argv) < 2:
jupiter_url = input("url: ")
else:
jupiter_url = argv[1]
if len(argv) < 5:
path = input("String to add to dl path in conf: ")
mode = input("dl, subs or both? ")
dl_type = input("series/single? ")
else:
path = argv[1]
mode = argv[2]
dl_type = argv[3]
jupiter_url = argv[4]
if dl_type == "single":
get_jupiter_video(jupiter_url, mode, path)
elif dl_type == "series":
print("getting episodes...")
get_jupiter_series(jupiter_url, mode, path)