Skip to content

Commit

Permalink
switched to full pypdl
Browse files Browse the repository at this point in the history
  • Loading branch information
mjishnu committed Jan 30, 2024
1 parent ce65729 commit af79386
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 331 deletions.
9 changes: 5 additions & 4 deletions app/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from PyQt6.QtGui import QIcon
from PyQt6.QtWidgets import QMessageBox

from modules.downloader import Downloader
from pypdl import Downloader
from modules.gui import Ui_MainProgram
from modules.url_gen import url_generator
from utls import Worker
Expand Down Expand Up @@ -267,17 +267,18 @@ def new_url_gen():
path,
20,
retries=5,
retry_func=new_url_gen,
mirror_func=new_url_gen,
block=False,
display=False,
)
while d.progress != 100:
while not d.completed:
download_percentage = int(d.progress)
progress_current.emit(download_percentage)
time.sleep(0.1)
if self.stop.is_set(): # check if the stop event is triggered
d.stop()
raise Exception("Stoped By User!")
if d.Failed:
if d.failed:
raise Exception("Download Error Occured!")

progress_main.emit(part)
Expand Down
327 changes: 0 additions & 327 deletions app/modules/downloader.py

This file was deleted.

0 comments on commit af79386

Please sign in to comment.