@@ -97,14 +97,14 @@ class Signals(QObject):
97
97
install_finished = Signal (object ) # Reports if the Porn Fetch installation was finished
98
98
internet_check = Signal (object ) # Reports if the internet checks were successful
99
99
result = Signal (dict ) # Reports the result of the internet checks if something went wrong
100
- error_signal = Signal (str ) # A general error signal, which will show errors using a Pop-up
100
+ error_signal = Signal (object ) # A general error signal, which will show errors using a Pop-up
101
101
clear_tree_widget_signal = Signal () # A signal to clear the tree widget
102
102
text_data_to_tree_widget = Signal (dict ) # Sends the text data in the form of a dictionary to the main class
103
103
download_completed = Signal (object ) # Reports a successfully downloaded video
104
104
progress_send_video = Signal (object ) # Sends the selected video objects from the tree widget to the main class
105
105
# to download them
106
106
url_iterators = Signal (object ) # Sends the processed URLs from the file to Porn Fetch
107
- ffmpeg_download_finished = Signal (object ) # Reports the successful download / install of FFmpeg
107
+ ffmpeg_download_finished = Signal () # Reports the successful download / install of FFmpeg
108
108
109
109
110
110
class License (QWidget ):
@@ -427,8 +427,7 @@ def delete_dir():
427
427
return True
428
428
429
429
except AttributeError as e :
430
- logger .error ("Couldn't find the ffmpeg directories for cleaning them up! This may not be a serious issue, "
431
- f"please report it anyways: { e } " )
430
+ pass # This is expected and (99%) not an issue
432
431
433
432
return False
434
433
@@ -602,10 +601,8 @@ def run(self):
602
601
videos = islice (self .iterator , self .search_limit )
603
602
604
603
self .signals .stop_undefined_range .emit () # Stop the loading animation
605
- print (type (videos ))
606
604
607
605
for i , video in enumerate (videos , start = start ):
608
- print (f"Running for index: { i } " )
609
606
if self .stop_flag .is_set ():
610
607
return # Stop processing if user pressed the stop button
611
608
@@ -623,7 +620,6 @@ def run(self):
623
620
self .signals .progress_add_to_tree_widget .emit (self .search_limit , i )
624
621
self .signals .text_data_to_tree_widget .emit (text_data )
625
622
try_attempt = False # Processing succeeded
626
- print ("Set try attempt to false!" )
627
623
628
624
except errors .RegexError as e :
629
625
logger .error (f"Regex error: { e } " )
@@ -1645,7 +1641,7 @@ def search(self):
1645
1641
1646
1642
elif self .ui .download_radio_search_website_eporner .isChecked ():
1647
1643
videos = ep_Client ().search_videos (query , sorting_gay = "" , sorting_order = "" , sorting_low_quality = "" , page = 1 ,
1648
- per_page = self .search_limit , enable_html_scraping = True ) # TODO - Need to refactor Eporner API
1644
+ per_page = self .search_limit , enable_html_scraping = True )
1649
1645
1650
1646
elif self .ui .download_radio_search_website_xnxx .isChecked ():
1651
1647
videos = xn_Client ().search (query ).videos
@@ -1677,7 +1673,7 @@ def add_to_tree_widget_thread(self, iterator):
1677
1673
self .add_to_tree_widget_thread_ .signals .start_undefined_range .connect (self .start_undefined_range )
1678
1674
self .add_to_tree_widget_thread_ .signals .stop_undefined_range .connect (self .stop_undefined_range )
1679
1675
self .add_to_tree_widget_thread_ .signals .error_signal .connect (self .show_error )
1680
- self .threadpool .start (self .thread )
1676
+ self .threadpool .start (self .add_to_tree_widget_thread_ )
1681
1677
logger .debug ("Started the thread for adding videos..." )
1682
1678
1683
1679
def add_to_tree_widget_signal (self , data : dict ):
0 commit comments