This repository was archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmain.py
More file actions
56 lines (43 loc) · 2.15 KB
/
main.py
File metadata and controls
56 lines (43 loc) · 2.15 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
#!/usr/bin/env python3
"""
_____ __________ __________ __________ ___________ __________ _________ ___ ___ _________ _______
/ \ |___ ___| |___ ___| |___ ___| | | | _______| | ___ | \ \ / / | ___ | / ___ \
/ / \ \ | | | | | | | |\ /| | | |_______ | |___| | \ \ / / | |___| | / / \ \
/ /___\ \ | | | | | | | | \ / | | | _______| | ______| \ \ / / | ___| | | | |
/ /_____\ \ __ | | | | | | | | | | | | | | \ \/ / | |\ \ | | | |
/ / \ \ | |__| | | | ___| |___ | | | | | |_______ | | | | | | \ \ \ \__/ /
/__/ \__\ |________| |__| |__________| |__| |__| |__________| |__| |____| |__| \__\ \_______/
"""
### Importing
# Importing Inbuilt-Packages
import os
# Importing Dev Defined Script
import src.checker
def createDir(dirname : str):
if not os.path.exists(dirname):
os.makedirs(dirname)
def main():
createDir('result')
createDir('resources')
filename = input("Enter the name or path of file: ")
if os.path.isfile(filename):
proxy_filename = None
proxyEnable = input("Do you want to enable proxy?(y/n): ")
if proxyEnable.lower() == 'y':
proxyEnable = True
proxyFilename = input("Enter the name or path of proxy(http/https only) file (optional): ")
if proxyFilename:
if os.path.isfile(proxyFilename):
proxy_filename = proxyFilename
else:
print("Proxy file not found, fetching proxy from internet...")
else:
print("Fetching proxy from internet...")
else:
proxyEnable = False
src.checker.CrunchyrollChecker.create(filename, proxy_filename, proxyEnable)
else:
print("File not found.")
### yeaaahhhh!!!!
if __name__ == "__main__":
main()