-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
59 lines (52 loc) · 4.26 KB
/
Copy pathapp.py
File metadata and controls
59 lines (52 loc) · 4.26 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
from calls import *
import sys
from termcolor import colored
banner = '''
██╗ ██╗██╗ ████████╗██╗███╗ ███╗ █████╗ ████████╗███████╗
██║ ██║██║ ╚══██╔══╝██║████╗ ████║██╔══██╗╚══██╔══╝██╔════╝
██║ ██║██║ ██║ ██║██╔████╔██║███████║ ██║ █████╗
██║ ██║██║ ██║ ██║██║╚██╔╝██║██╔══██║ ██║ ██╔══╝
╚██████╔╝███████╗██║ ██║██║ ╚═╝ ██║██║ ██║ ██║ ███████╗
╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝
██╗ ██╗███╗ ██╗██╗ ██████╗ ██████╗██╗ ██╗███████╗██████╗
██║ ██║████╗ ██║██║ ██╔═══██╗██╔════╝██║ ██╔╝██╔════╝██╔══██╗
██║ ██║██╔██╗ ██║██║ ██║ ██║██║ █████╔╝ █████╗ ██████╔╝
██║ ██║██║╚██╗██║██║ ██║ ██║██║ ██╔═██╗ ██╔══╝ ██╔══██╗
╚██████╔╝██║ ╚████║███████╗╚██████╔╝╚██████╗██║ ██╗███████╗██║ ██║
╚═════╝ ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
'''
def help():
print(colored("\n================================HELP! HELP! HELP!=============================================\n","green"))
print(colored("1) list-supported lists all supported hosts/streams/redirectors\n","green"))
print(colored("2) is-supported checks by domain. if the website you're trying to download from is supported or not. e.g. youtube.com turbobit.cc\n","green"))
print(colored("3) single unlocks a single link and downloads the file in the current working directory. use this command for YouTube playlists","green"))
print(colored("4) multi unlocks multiple links and downloads their file(s) to the current working directory \n","green"))
print(colored("\t\t\t\t NOTE:Before using the multi command, put all links in the links.txt file, a link in each line to proceed without errors.","green"))
print(colored("5) exit close the program\n","green"))
print(colored(banner,"red"))
print(colored("Developed by PirateOfEast\n", "light_magenta"))
help()
try:
while True:
prompt = input(colored(">>> ","light_yellow"))
if prompt == '2':
checksupport()
elif prompt == '1':
siteslist = supported()
siteslist.sort()
for site in siteslist:
print(site)
print("\n")
print("supports "+str(len(siteslist))+" websites")
print("\n")
elif prompt == '3':
singlelink()
elif prompt == '4':
multilink()
elif prompt == '5':
print(colored("GOOD BYE!!","light_yellow"))
sys.exit()
else:
help()
except KeyboardInterrupt:
print(colored("Exit","red"))