-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
40 lines (35 loc) ยท 1.1 KB
/
main.py
File metadata and controls
40 lines (35 loc) ยท 1.1 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
#mian.py
import sys
import time
from PySide6.QtWidgets import QApplication
from ui.browser import BrowserWindow
# def main():
#
# print("๐ฌ ์ ํ๋ธ ๋ค์ด๋ก๋ ํ๋ก๊ทธ๋จ (์ฝ์ ๋ฒ์ )")
# url = input("๋ค์ด๋ก๋ํ ์ ํ๋ธ URL์ ์
๋ ฅํ์ธ์: ").strip()
#
# video_type = analyze_url(url)
# print(f"๐ URL ๋ถ์ ๊ฒฐ๊ณผ: {video_type}")
#
# save_path = os.path.join(os.getcwd(), "downloads")
# os.makedirs(save_path, exist_ok=True)
#
# downloader = YouTubeDownloader(url, save_path, video_type)
# downloader.download()
# app = QApplication(sys.argv)
# win = BrowserWindow() ffmpeg/ffmpeg.exe
# pyinstaller --noconfirm --onefile --windowed ^
# --add-binary "ffmpeg/ffmpeg.exe;ffmpeg" ^
# --name "YouTubeDownloader" main.py
# win.show()
# sys.exit(app.exec())
def main():
start_time = time.time()
app = QApplication(sys.argv)
win = BrowserWindow()
win.show()
elapsed = time.time() - start_time
print(f"[INFO] GUI ์ฐฝ ํ์๊น์ง{elapsed :.2f}์ด ๊ฑธ๋ฆผ")
sys.exit(app.exec())
if __name__ == "__main__":
main()