|
|
|
@ -7,7 +7,7 @@ import requests |
|
|
|
import fileinput |
|
|
|
import zipfile |
|
|
|
from pathlib import Path |
|
|
|
import glob, os, shutil |
|
|
|
import glob, shutil, time |
|
|
|
|
|
|
|
p = Path('.') |
|
|
|
|
|
|
|
@ -20,7 +20,6 @@ def buttonclick(): |
|
|
|
file = open('urls.txt', 'w') |
|
|
|
file.write(listofurls) |
|
|
|
file.close() |
|
|
|
|
|
|
|
# DOWNLOAD ALL ZIPS |
|
|
|
for lines in fileinput.FileInput("urls.txt"): |
|
|
|
print(lines) |
|
|
|
@ -62,7 +61,7 @@ customtkinter.set_default_color_theme("dark-blue") |
|
|
|
|
|
|
|
root = customtkinter.CTk() |
|
|
|
# root.iconbitmap('c:/file.ico') |
|
|
|
root.geometry("540x450") |
|
|
|
root.geometry("510x300") |
|
|
|
root.title('LCCC Viapath Downloader') |
|
|
|
|
|
|
|
frame = customtkinter.CTkFrame(master=root) |
|
|
|
@ -75,7 +74,6 @@ urllabel.pack(pady=1, padx=1) |
|
|
|
urltextbox = customtkinter.CTkTextbox(master=frame, wrap='word', height=150, width=400) |
|
|
|
urltextbox.pack(pady=10, padx=10) |
|
|
|
|
|
|
|
|
|
|
|
# BUTTON |
|
|
|
wgetbutton = customtkinter.CTkButton(master=frame, width=40, height=40, text="Get Videos", command=buttonclick) |
|
|
|
wgetbutton.pack() |
|
|
|
@ -84,6 +82,7 @@ wgetbutton.pack() |
|
|
|
progressBar = customtkinter.CTkProgressBar(master=frame, mode='determinate') |
|
|
|
progressBar.pack(padx=10, pady=10) |
|
|
|
progressBar.set(0) |
|
|
|
|
|
|
|
# labelProg = customtkinter.CTkLabel(master=frame, text="0%") |
|
|
|
# labelProg.pack() |
|
|
|
|
|
|
|
root.mainloop() |