11 Commits

Author SHA1 Message Date
Yuvi9587
bf80332295 Comit 2025-06-22 03:58:42 +01:00
Yuvi9587
9614ee49bf Merge branch 'main' of https://github.com/Yuvi9587/Kemono-Downloader 2025-06-19 20:02:35 +05:30
Yuvi9587
191dbc8c62 Commit 2025-06-19 08:25:30 +01:00
Yuvi9587
384edfee3f Update LICENSE 2025-06-17 03:12:43 +01:00
Yuvi9587
3c1b361fc1 Update main.py 2025-06-16 11:28:28 +01:00
Yuvi9587
953dbaebf0 Commit 2025-06-16 10:46:23 +01:00
Yuvi9587
efd5458493 Update main.py 2025-06-16 08:13:01 +01:00
Yuvi9587
3473f6540d Commit 2025-06-15 09:49:09 +01:00
Yuvi9587
7fe5f4b83e Commit 2025-06-14 11:40:44 +01:00
Yuvi9587
072b582622 Update languages.py 2025-06-14 11:32:29 +01:00
Yuvi9587
de936e8d96 Update languages.py 2025-06-14 16:04:41 +05:30
6 changed files with 1798 additions and 789 deletions

24
LICENSE
View File

@@ -1,11 +1,21 @@
Custom License - No Commercial Use
MIT License
Copyright [Yuvi9587] [2025]
Copyright (c) [2025] [Yuvi9587]
Permission is hereby granted to any person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, and distribute the Software for **non-commercial purposes only**, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
2. Proper credit must be given to the original author in any public use, distribution, or derivative works.
3. Commercial use, resale, or sublicensing of the Software or any derivative works is strictly prohibited without explicit written permission.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND...
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -8,6 +8,7 @@ import hashlib
import http .client
import traceback
from concurrent .futures import ThreadPoolExecutor ,Future ,CancelledError ,as_completed
from collections import deque
import html
from PyQt5 .QtCore import QObject ,pyqtSignal ,QThread ,QMutex ,QMutexLocker
from urllib .parse import urlparse
@@ -41,6 +42,7 @@ from io import BytesIO
STYLE_POST_TITLE ="post_title"
STYLE_ORIGINAL_NAME ="original_name"
STYLE_DATE_BASED ="date_based"
STYLE_DATE_POST_TITLE ="date_post_title"
MANGA_DATE_PREFIX_DEFAULT =""
STYLE_POST_TITLE_GLOBAL_NUMBERING ="post_title_global_numbering"
SKIP_SCOPE_FILES ="files"
@@ -509,13 +511,31 @@ def fetch_post_comments (api_domain ,service ,user_id ,post_id ,headers ,logger
raise RuntimeError (f"Error decoding JSON from comments API for post {post_id } ({comments_api_url }): {e }. Response text: {response .text [:200 ]}")
except Exception as e :
raise RuntimeError (f"Unexpected error fetching comments for post {post_id } ({comments_api_url }): {e }")
def download_from_api (api_url_input ,logger =print ,start_page =None ,end_page =None ,manga_mode =False ,
cancellation_event =None ,pause_event =None ,use_cookie =False ,cookie_text ="",selected_cookie_file =None ,app_base_dir =None ):
headers ={'User-Agent':'Mozilla/5.0','Accept':'application/json'}
def download_from_api (
api_url_input ,
logger =print ,
start_page =None ,
end_page =None ,
manga_mode =False ,
cancellation_event =None ,
pause_event =None ,
use_cookie =False ,
cookie_text ="",
selected_cookie_file =None ,
app_base_dir =None ,
manga_filename_style_for_sort_check =None
):
headers ={
'User-Agent':'Mozilla/5.0',
'Accept':'application/json'
}
service ,user_id ,target_post_id =extract_post_info (api_url_input )
if cancellation_event and cancellation_event .is_set ():
logger (" Download_from_api cancelled at start.")
return
parsed_input_url_for_domain =urlparse (api_url_input )
api_domain =parsed_input_url_for_domain .netloc
if not any (d in api_domain .lower ()for d in ['kemono.su','kemono.party','coomer.su','coomer.party']):
@@ -552,11 +572,12 @@ cancellation_event =None ,pause_event =None ,use_cookie =False ,cookie_text ="",
return
if target_post_id and (start_page or end_page ):
logger ("⚠️ Page range (start/end page) is ignored when a specific post URL is provided (searching all pages for the post).")
is_creator_feed_for_manga =manga_mode and not target_post_id
is_manga_mode_fetch_all_and_sort_oldest_first =manga_mode and (manga_filename_style_for_sort_check !=STYLE_DATE_POST_TITLE )and not target_post_id
api_base_url =f"https://{api_domain }/api/v1/{service }/user/{user_id }"
page_size =50
if is_creator_feed_for_manga :
logger (" Manga Mode: Fetching posts to sort by date (oldest processed first)...")
if is_manga_mode_fetch_all_and_sort_oldest_first :
logger (f" Manga Mode (Style: {manga_filename_style_for_sort_check if manga_filename_style_for_sort_check else 'Default'} - Oldest First Sort Active): Fetching all posts to sort by date...")
all_posts_for_manga_mode =[]
current_offset_manga =0
if start_page and start_page >1 :
@@ -635,6 +656,12 @@ cancellation_event =None ,pause_event =None ,use_cookie =False ,cookie_text ="",
break
yield all_posts_for_manga_mode [i :i +page_size ]
return
if manga_mode and not target_post_id and (manga_filename_style_for_sort_check ==STYLE_DATE_POST_TITLE ):
logger (f" Manga Mode (Style: {STYLE_DATE_POST_TITLE }): Processing posts in default API order (newest first).")
current_page_num =1
current_offset =0
processed_target_post_flag =False
@@ -727,8 +754,10 @@ class PostProcessorSignals (QObject ):
file_download_status_signal =pyqtSignal (bool )
external_link_signal =pyqtSignal (str ,str ,str ,str ,str )
file_progress_signal =pyqtSignal (str ,object )
file_successfully_downloaded_signal =pyqtSignal (dict )
missed_character_post_signal =pyqtSignal (str ,str )
class PostProcessorWorker :
def __init__ (self ,post_data ,download_root ,known_names ,
filter_character_list ,emitter ,
unwanted_keywords ,filter_mode ,skip_zip ,skip_rar ,
@@ -836,7 +865,7 @@ class PostProcessorWorker :
post_title ="",file_index_in_post =0 ,num_files_in_this_post =1 ,
manga_date_file_counter_ref =None ):
was_original_name_kept_flag =False
manga_global_file_counter_ref =None
final_filename_saved_for_return =""
def _get_current_character_filters (self ):
if self .dynamic_filter_holder :
@@ -846,7 +875,7 @@ class PostProcessorWorker :
post_title ="",file_index_in_post =0 ,num_files_in_this_post =1 ,
manga_date_file_counter_ref =None ,
forced_filename_override =None ,
manga_global_file_counter_ref =None ):
manga_global_file_counter_ref =None ,folder_context_name_for_history =None ):
was_original_name_kept_flag =False
final_filename_saved_for_return =""
retry_later_details =None
@@ -948,6 +977,48 @@ class PostProcessorWorker :
self .logger (f"⚠️ Manga Title+GlobalNum Mode: Counter ref not provided or malformed for '{api_original_filename }'. Using original. Ref: {manga_global_file_counter_ref }")
filename_to_save_in_main_path =cleaned_original_api_filename
self .logger (f"⚠️ Manga mode (Title+GlobalNum Style Fallback): Using cleaned original filename '{filename_to_save_in_main_path }' for post {original_post_id_for_log }.")
elif self .manga_filename_style ==STYLE_DATE_POST_TITLE :
published_date_str =self .post .get ('published')
added_date_str =self .post .get ('added')
formatted_date_str ="nodate"
if published_date_str :
try :
formatted_date_str =published_date_str .split ('T')[0 ]
except Exception :
self .logger (f" ⚠️ Could not parse 'published' date '{published_date_str }' for STYLE_DATE_POST_TITLE. Using 'nodate'.")
elif added_date_str :
try :
formatted_date_str =added_date_str .split ('T')[0 ]
self .logger (f" ⚠️ Post ID {original_post_id_for_log } missing 'published' date, using 'added' date '{added_date_str }' for STYLE_DATE_POST_TITLE naming.")
except Exception :
self .logger (f" ⚠️ Could not parse 'added' date '{added_date_str }' for STYLE_DATE_POST_TITLE. Using 'nodate'.")
else :
self .logger (f" ⚠️ Post ID {original_post_id_for_log } missing both 'published' and 'added' dates for STYLE_DATE_POST_TITLE. Using 'nodate'.")
if post_title and post_title .strip ():
temp_cleaned_title =clean_filename (post_title .strip ())
if not temp_cleaned_title or temp_cleaned_title .startswith ("untitled_file"):
self .logger (f"⚠️ Manga mode (Date+PostTitle Style): Post title for post {original_post_id_for_log } ('{post_title }') was empty or generic after cleaning. Using 'post' as title part.")
cleaned_post_title_for_filename ="post"
else :
cleaned_post_title_for_filename =temp_cleaned_title
base_name_for_style =f"{formatted_date_str }_{cleaned_post_title_for_filename }"
if num_files_in_this_post >1 :
filename_to_save_in_main_path =f"{base_name_for_style }_{file_index_in_post }{original_ext }"if file_index_in_post >0 else f"{base_name_for_style }{original_ext }"
else :
filename_to_save_in_main_path =f"{base_name_for_style }{original_ext }"
else :
self .logger (f"⚠️ Manga mode (Date+PostTitle Style): Post title missing for post {original_post_id_for_log }. Using 'post' as title part with date prefix.")
cleaned_post_title_for_filename ="post"
base_name_for_style =f"{formatted_date_str }_{cleaned_post_title_for_filename }"
if num_files_in_this_post >1 :
filename_to_save_in_main_path =f"{base_name_for_style }_{file_index_in_post }{original_ext }"if file_index_in_post >0 else f"{base_name_for_style }{original_ext }"
else :
filename_to_save_in_main_path =f"{base_name_for_style }{original_ext }"
self .logger (f"⚠️ Manga mode (Title+GlobalNum Style Fallback): Using cleaned original filename '{filename_to_save_in_main_path }' for post {original_post_id_for_log }.")
else :
self .logger (f"⚠️ Manga mode: Unknown filename style '{self .manga_filename_style }'. Defaulting to original filename for '{api_original_filename }'.")
filename_to_save_in_main_path =cleaned_original_api_filename
@@ -1320,7 +1391,23 @@ class PostProcessorWorker :
with self .downloaded_files_lock :self .downloaded_files .add (filename_to_save_in_main_path )
final_filename_saved_for_return =final_filename_on_disk
self .logger (f"✅ Saved: '{final_filename_saved_for_return }' (from '{api_original_filename }', {downloaded_size_bytes /(1024 *1024 ):.2f} MB) in '{os .path .basename (effective_save_folder )}'")
downloaded_file_details ={
'disk_filename':final_filename_saved_for_return ,
'post_title':post_title ,
'post_id':original_post_id_for_log ,
'upload_date_str':self .post .get ('published')or self .post .get ('added')or "N/A",
'download_timestamp':time .time (),
'download_path':effective_save_folder ,
'service':self .service ,
'user_id':self .user_id ,
'api_original_filename':api_original_filename ,
'folder_context_name':folder_context_name_for_history or os .path .basename (effective_save_folder )
}
self ._emit_signal ('file_successfully_downloaded',downloaded_file_details )
time .sleep (0.05 )
return 1 ,0 ,final_filename_saved_for_return ,was_original_name_kept_flag ,FILE_DOWNLOAD_STATUS_SUCCESS ,None
except Exception as save_err :
self .logger (f"->>Save Fail for '{final_filename_on_disk }': {save_err }")
@@ -1336,14 +1423,16 @@ class PostProcessorWorker :
def process (self ):
if self ._check_pause (f"Post processing for ID {self .post .get ('id','N/A')}"):return 0 ,0 ,[],[],[]
if self .check_cancel ():return 0 ,0 ,[],[],[]
if self ._check_pause (f"Post processing for ID {self .post .get ('id','N/A')}"):return 0 ,0 ,[],[],[],None
if self .check_cancel ():return 0 ,0 ,[],[],[],None
current_character_filters =self ._get_current_character_filters ()
kept_original_filenames_for_log =[]
retryable_failures_this_post =[]
permanent_failures_this_post =[]
total_downloaded_this_post =0
total_skipped_this_post =0
history_data_for_this_post =None
parsed_api_url =urlparse (self .api_url_input )
referer_url =f"https://{parsed_api_url .netloc }/"
headers ={'User-Agent':'Mozilla/5.0','Referer':referer_url ,'Accept':'*/*'}
@@ -1371,7 +1460,7 @@ class PostProcessorWorker :
char_filter_that_matched_file_in_comment_scope =None
char_filter_that_matched_comment =None
if current_character_filters and (self .char_filter_scope ==CHAR_SCOPE_TITLE or self .char_filter_scope ==CHAR_SCOPE_BOTH ):
if self ._check_pause (f"Character title filter for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[]
if self ._check_pause (f"Character title filter for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[],[],None
for idx ,filter_item_obj in enumerate (current_character_filters ):
if self .check_cancel ():break
terms_to_check_for_title =list (filter_item_obj ["aliases"])
@@ -1402,7 +1491,7 @@ class PostProcessorWorker :
all_files_from_post_api_for_char_check .append ({'_original_name_for_log':original_api_att_name })
if current_character_filters and self .char_filter_scope ==CHAR_SCOPE_COMMENTS :
self .logger (f" [Char Scope: Comments] Phase 1: Checking post files for matches before comments for post ID '{post_id }'.")
if self ._check_pause (f"File check (comments scope) for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[]
if self ._check_pause (f"File check (comments scope) for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[],[],None
for file_info_item in all_files_from_post_api_for_char_check :
if self .check_cancel ():break
current_api_original_filename_for_check =file_info_item .get ('_original_name_for_log')
@@ -1422,7 +1511,7 @@ class PostProcessorWorker :
self .logger (f" [Char Scope: Comments] Phase 1 Result: post_is_candidate_by_file_char_match_in_comment_scope = {post_is_candidate_by_file_char_match_in_comment_scope }")
if current_character_filters and self .char_filter_scope ==CHAR_SCOPE_COMMENTS :
if not post_is_candidate_by_file_char_match_in_comment_scope :
if self ._check_pause (f"Comment check for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[]
if self ._check_pause (f"Comment check for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[],[],None
self .logger (f" [Char Scope: Comments] Phase 2: No file match found. Checking post comments for post ID '{post_id }'.")
try :
parsed_input_url_for_comments =urlparse (self .api_url_input )
@@ -1471,29 +1560,30 @@ class PostProcessorWorker :
if self .char_filter_scope ==CHAR_SCOPE_TITLE and not post_is_candidate_by_title_char_match :
self .logger (f" -> Skip Post (Scope: Title - No Char Match): Title '{post_title [:50 ]}' does not match character filters.")
self ._emit_signal ('missed_character_post',post_title ,"No title match for character filter")
return 0 ,num_potential_files_in_post ,[],[],[]
return 0 ,num_potential_files_in_post ,[],[],[],None
if self .char_filter_scope ==CHAR_SCOPE_COMMENTS and not post_is_candidate_by_file_char_match_in_comment_scope and not post_is_candidate_by_comment_char_match :
self .logger (f" -> Skip Post (Scope: Comments - No Char Match in Comments): Post ID '{post_id }', Title '{post_title [:50 ]}...'")
if self .emitter and hasattr (self .emitter ,'missed_character_post_signal'):
self ._emit_signal ('missed_character_post',post_title ,"No character match in files or comments (Comments scope)")
return 0 ,num_potential_files_in_post ,[],[],[]
return 0 ,num_potential_files_in_post ,[],[],[],None
if self .skip_words_list and (self .skip_words_scope ==SKIP_SCOPE_POSTS or self .skip_words_scope ==SKIP_SCOPE_BOTH ):
if self ._check_pause (f"Skip words (post title) for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[]
if self ._check_pause (f"Skip words (post title) for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[],[],None
post_title_lower =post_title .lower ()
for skip_word in self .skip_words_list :
if skip_word .lower ()in post_title_lower :
self .logger (f" -> Skip Post (Keyword in Title '{skip_word }'): '{post_title [:50 ]}...'. Scope: {self .skip_words_scope }")
return 0 ,num_potential_files_in_post ,[],[],[]
return 0 ,num_potential_files_in_post ,[],[],[],None
if not self .extract_links_only and self .manga_mode_active and current_character_filters and (self .char_filter_scope ==CHAR_SCOPE_TITLE or self .char_filter_scope ==CHAR_SCOPE_BOTH )and not post_is_candidate_by_title_char_match :
self .logger (f" -> Skip Post (Manga Mode with Title/Both Scope - No Title Char Match): Title '{post_title [:50 ]}' doesn't match filters.")
self ._emit_signal ('missed_character_post',post_title ,"Manga Mode: No title match for character filter (Title/Both scope)")
return 0 ,num_potential_files_in_post ,[],[],[]
return 0 ,num_potential_files_in_post ,[],[],[],None
if not isinstance (post_attachments ,list ):
self .logger (f"⚠️ Corrupt attachment data for post {post_id } (expected list, got {type (post_attachments )}). Skipping attachments.")
post_attachments =[]
base_folder_names_for_post_content =[]
determined_post_save_path_for_history =self .override_output_dir if self .override_output_dir else self .download_root
if not self .extract_links_only and self .use_subfolders :
if self ._check_pause (f"Subfolder determination for post {post_id }"):return 0 ,num_potential_files_in_post ,[]
if self ._check_pause (f"Subfolder determination for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[],[],None
primary_char_filter_for_folder =None
log_reason_for_folder =""
if self .char_filter_scope ==CHAR_SCOPE_COMMENTS and char_filter_that_matched_comment :
@@ -1593,16 +1683,65 @@ class PostProcessorWorker :
final_fallback_name =clean_folder_name (post_title if post_title and post_title .strip ()else "Generic Post Content")
base_folder_names_for_post_content =[final_fallback_name ]
self .logger (f" Ultimate fallback folder name: {final_fallback_name }")
if base_folder_names_for_post_content :
determined_post_save_path_for_history =os .path .join (determined_post_save_path_for_history ,base_folder_names_for_post_content [0 ])
if not self .extract_links_only and self .use_post_subfolders :
cleaned_post_title_for_sub =clean_folder_name (post_title )
post_id_for_fallback = self.post.get('id', 'unknown_id') # Ensure post_id is available
# Fallback to a more unique name if the cleaned title is generic
if not cleaned_post_title_for_sub or cleaned_post_title_for_sub == "untitled_folder":
self.logger(f" ⚠️ Post title '{post_title}' resulted in a generic subfolder name. Using 'post_{post_id_for_fallback}' as base.")
original_cleaned_post_title_for_sub = f"post_{post_id_for_fallback}"
else:
original_cleaned_post_title_for_sub = cleaned_post_title_for_sub
# Path before adding the post-specific subfolder
base_path_for_post_subfolder = determined_post_save_path_for_history
suffix_counter = 0 # 0 for no suffix, 1 for _1, etc.
final_post_subfolder_name = ""
while True:
if suffix_counter == 0:
name_candidate = original_cleaned_post_title_for_sub
else:
name_candidate = f"{original_cleaned_post_title_for_sub}_{suffix_counter}"
potential_post_subfolder_path = os.path.join(base_path_for_post_subfolder, name_candidate)
try:
os.makedirs(potential_post_subfolder_path, exist_ok=False)
final_post_subfolder_name = name_candidate
if suffix_counter > 0: # Log only if a suffix was actually needed and used
self.logger(f" Post subfolder name conflict: Using '{final_post_subfolder_name}' instead of '{original_cleaned_post_title_for_sub}' to avoid mixing posts.")
break
except FileExistsError:
suffix_counter += 1
if suffix_counter > 100: # Safety break
self.logger(f" ⚠️ Exceeded 100 attempts to find unique subfolder name for '{original_cleaned_post_title_for_sub}'. Using UUID.")
final_post_subfolder_name = f"{original_cleaned_post_title_for_sub}_{uuid.uuid4().hex[:8]}"
os.makedirs(os.path.join(base_path_for_post_subfolder, final_post_subfolder_name), exist_ok=True) # Create with exist_ok=True as a last resort
break
except OSError as e_mkdir:
self.logger(f" ❌ Error creating directory '{potential_post_subfolder_path}': {e_mkdir}. Files for this post might be saved in parent or fail.")
final_post_subfolder_name = original_cleaned_post_title_for_sub # Fallback
break
determined_post_save_path_for_history = os.path.join(base_path_for_post_subfolder, final_post_subfolder_name)
if not self .extract_links_only and self .use_subfolders and self .skip_words_list :
if self ._check_pause (f"Folder keyword skip check for post {post_id }"):return 0 ,num_potential_files_in_post ,[]
if self ._check_pause (f"Folder keyword skip check for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[],[],None
for folder_name_to_check in base_folder_names_for_post_content :
if not folder_name_to_check :continue
if any (skip_word .lower ()in folder_name_to_check .lower ()for skip_word in self .skip_words_list ):
matched_skip =next ((sw for sw in self .skip_words_list if sw .lower ()in folder_name_to_check .lower ()),"unknown_skip_word")
self .logger (f" -> Skip Post (Folder Keyword): Potential folder '{folder_name_to_check }' contains '{matched_skip }'.")
return 0 ,num_potential_files_in_post ,[],[],[]
return 0 ,num_potential_files_in_post ,[],[],[],None
if (self .show_external_links or self .extract_links_only )and post_content_html :
if self ._check_pause (f"External link extraction for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[]
if self ._check_pause (f"External link extraction for post {post_id }"):return 0 ,num_potential_files_in_post ,[],[],[],None
try :
mega_key_pattern =re .compile (r'\b([a-zA-Z0-9_-]{43}|[a-zA-Z0-9_-]{22})\b')
unique_links_data ={}
@@ -1642,7 +1781,7 @@ class PostProcessorWorker :
except Exception as e :self .logger (f"⚠️ Error parsing post content for links: {e }\n{traceback .format_exc (limit =2 )}")
if self .extract_links_only :
self .logger (f" Extract Links Only mode: Finished processing post {post_id } for links.")
return 0 ,0 ,[],[],[]
return 0 ,0 ,[],[],[],None
all_files_from_post_api =[]
api_file_domain =urlparse (self .api_url_input ).netloc
if not api_file_domain or not any (d in api_file_domain .lower ()for d in ['kemono.su','kemono.party','coomer.su','coomer.party']):
@@ -1729,13 +1868,13 @@ class PostProcessorWorker :
all_files_from_post_api =[finfo for finfo in all_files_from_post_api if finfo .get ('_from_content_scan')]
if not all_files_from_post_api :
self .logger (f" -> No images found via content scan for post {post_id } in this combined mode.")
return 0 ,0 ,[],[],[]
return 0 ,0 ,[],[],[],None
else :
self .logger (f" Mode: 'Download Thumbnails Only' active. Filtering for API thumbnails for post {post_id }.")
all_files_from_post_api =[finfo for finfo in all_files_from_post_api if finfo .get ('_is_thumbnail')]
if not all_files_from_post_api :
self .logger (f" -> No API image thumbnails found for post {post_id } in thumbnail-only mode.")
return 0 ,0 ,[],[],[]
return 0 ,0 ,[],[],[],None
if self .manga_mode_active and self .manga_filename_style ==STYLE_DATE_BASED :
def natural_sort_key_for_files (file_api_info ):
name =file_api_info .get ('_original_name_for_log','').lower ()
@@ -1744,7 +1883,7 @@ class PostProcessorWorker :
self .logger (f" Manga Date Mode: Sorted {len (all_files_from_post_api )} files within post {post_id } by original name for sequential numbering.")
if not all_files_from_post_api :
self .logger (f" No files found to download for post {post_id }.")
return 0 ,0 ,[],[],[]
return 0 ,0 ,[],[],[],None
files_to_download_info_list =[]
processed_original_filenames_in_this_post =set ()
for file_info in all_files_from_post_api :
@@ -1758,7 +1897,7 @@ class PostProcessorWorker :
processed_original_filenames_in_this_post .add (current_api_original_filename )
if not files_to_download_info_list :
self .logger (f" All files for post {post_id } were duplicate original names or skipped earlier.")
return 0 ,total_skipped_this_post ,[],[],[]
return 0 ,total_skipped_this_post ,[],[],[],None
self .logger (f" Identified {len (files_to_download_info_list )} unique original file(s) for potential download from post {post_id }.")
with ThreadPoolExecutor (max_workers =self .num_file_threads ,thread_name_prefix =f'P{post_id }File_')as file_pool :
@@ -1854,19 +1993,22 @@ class PostProcessorWorker :
if self .use_subfolders and target_base_folder_name_for_instance :
current_path_for_file_instance =os .path .join (current_path_for_file_instance ,target_base_folder_name_for_instance )
if self .use_post_subfolders :
cleaned_title_for_subfolder_instance =clean_folder_name (post_title )
current_path_for_file_instance =os .path .join (current_path_for_file_instance ,cleaned_title_for_subfolder_instance )
# Use the final_post_subfolder_name determined earlier, which includes suffix if needed
current_path_for_file_instance =os .path .join (current_path_for_file_instance ,final_post_subfolder_name )
manga_date_counter_to_pass =self .manga_date_file_counter_ref if self .manga_mode_active and self .manga_filename_style ==STYLE_DATE_BASED else None
manga_global_counter_to_pass =self .manga_global_file_counter_ref if self .manga_mode_active and self .manga_filename_style ==STYLE_POST_TITLE_GLOBAL_NUMBERING else None
folder_context_for_file =target_base_folder_name_for_instance if self .use_subfolders and target_base_folder_name_for_instance else clean_folder_name (post_title )
futures_list .append (file_pool .submit (
self ._download_single_file ,
file_info =file_info_to_dl ,
target_folder_path =current_path_for_file_instance ,
headers =headers ,original_post_id_for_log =post_id ,skip_event =self .skip_current_file_flag ,
post_title =post_title ,manga_date_file_counter_ref =manga_date_counter_to_pass ,
manga_global_file_counter_ref =manga_global_counter_to_pass ,
manga_global_file_counter_ref =manga_global_counter_to_pass ,folder_context_name_for_history =folder_context_for_file ,
file_index_in_post =file_idx ,num_files_in_this_post =len (files_to_download_info_list )
))
@@ -1893,18 +2035,62 @@ class PostProcessorWorker :
self .logger (f"❌ File download task for post {post_id } resulted in error: {exc_f }")
total_skipped_this_post +=1
self ._emit_signal ('file_progress',"",None )
if not self .extract_links_only and (total_downloaded_this_post >0 or not (
(current_character_filters and (
(self .char_filter_scope ==CHAR_SCOPE_TITLE and not post_is_candidate_by_title_char_match )or
(self .char_filter_scope ==CHAR_SCOPE_COMMENTS and not post_is_candidate_by_file_char_match_in_comment_scope and not post_is_candidate_by_comment_char_match )
))or
(self .skip_words_list and (self .skip_words_scope ==SKIP_SCOPE_POSTS or self .skip_words_scope ==SKIP_SCOPE_BOTH )and any (sw .lower ()in post_title .lower ()for sw in self .skip_words_list ))
)):
top_file_name_for_history ="N/A"
if post_main_file_info and post_main_file_info .get ('name'):
top_file_name_for_history =post_main_file_info ['name']
elif post_attachments and post_attachments [0 ].get ('name'):
top_file_name_for_history =post_attachments [0 ]['name']
history_data_for_this_post ={
'post_title':post_title ,'post_id':post_id ,
'top_file_name':top_file_name_for_history ,
'num_files':num_potential_files_in_post ,
'upload_date_str':post_data .get ('published')or post_data .get ('added')or "Unknown",
'download_location':determined_post_save_path_for_history ,
'service':self .service ,'user_id':self .user_id ,
}
if self .check_cancel ():self .logger (f" Post {post_id } processing interrupted/cancelled.");
else :self .logger (f" Post {post_id } Summary: Downloaded={total_downloaded_this_post }, Skipped Files={total_skipped_this_post }")
return total_downloaded_this_post ,total_skipped_this_post ,kept_original_filenames_for_log ,retryable_failures_this_post ,permanent_failures_this_post
# Cleanup: Remove empty post-specific subfolder if created and no files were downloaded
if not self.extract_links_only and self.use_post_subfolders and total_downloaded_this_post == 0:
# determined_post_save_path_for_history at this point holds the full path to the post-specific subfolder
# if self.use_post_subfolders was true and it was applied.
# base_path_for_post_subfolder was the path *before* the post-specific segment.
# final_post_subfolder_name was the segment itself.
# So, determined_post_save_path_for_history is the correct path to check.
path_to_check_for_emptiness = determined_post_save_path_for_history
try:
if os.path.isdir(path_to_check_for_emptiness) and not os.listdir(path_to_check_for_emptiness):
self.logger(f" 🗑️ Removing empty post-specific subfolder: '{path_to_check_for_emptiness}'")
os.rmdir(path_to_check_for_emptiness)
except OSError as e_rmdir:
self.logger(f" ⚠️ Could not remove empty post-specific subfolder '{path_to_check_for_emptiness}': {e_rmdir}")
return total_downloaded_this_post ,total_skipped_this_post ,kept_original_filenames_for_log ,retryable_failures_this_post ,permanent_failures_this_post ,history_data_for_this_post
class DownloadThread (QThread ):
progress_signal =pyqtSignal (str )
add_character_prompt_signal =pyqtSignal (str )
file_download_status_signal =pyqtSignal (bool )
finished_signal =pyqtSignal (int ,int ,bool ,list )
external_link_signal =pyqtSignal (str ,str ,str ,str ,str )
file_successfully_downloaded_signal =pyqtSignal (dict )
file_progress_signal =pyqtSignal (str ,object )
retryable_file_failed_signal =pyqtSignal (list )
missed_character_post_signal =pyqtSignal (str ,str )
post_processed_for_history_signal =pyqtSignal (dict )
final_history_entries_signal =pyqtSignal (list )
permanent_file_failed_signal =pyqtSignal (list )
def __init__ (self ,api_url_input ,output_dir ,known_names_copy ,
cancellation_event ,
@@ -1987,6 +2173,7 @@ class DownloadThread (QThread ):
self .scan_content_for_images =scan_content_for_images
self .creator_download_folder_ignore_words =creator_download_folder_ignore_words
self .manga_global_file_counter_ref =manga_global_file_counter_ref
self .history_candidates_buffer =deque (maxlen =8 )
if self .compress_images and Image is None :
self .logger ("⚠️ Image compression disabled: Pillow library not found (DownloadThread).")
self .compress_images =False
@@ -2052,6 +2239,7 @@ class DownloadThread (QThread ):
worker_signals_obj .file_progress_signal .connect (self .file_progress_signal )
worker_signals_obj .external_link_signal .connect (self .external_link_signal )
worker_signals_obj .missed_character_post_signal .connect (self .missed_character_post_signal )
worker_signals_obj .file_successfully_downloaded_signal .connect (self .file_successfully_downloaded_signal )
self .logger (" Starting post fetch (single-threaded download process)...")
post_generator =download_from_api (
self .api_url_input ,
@@ -2064,7 +2252,8 @@ class DownloadThread (QThread ):
use_cookie =self .use_cookie ,
cookie_text =self .cookie_text ,
selected_cookie_file =self .selected_cookie_file ,
app_base_dir =self .app_base_dir
app_base_dir =self .app_base_dir ,
manga_filename_style_for_sort_check =self .manga_filename_style if self .manga_mode_active else None
)
for posts_batch_data in post_generator :
if self ._check_pause_self ("Post batch processing"):was_process_cancelled =True ;break
@@ -2116,13 +2305,16 @@ class DownloadThread (QThread ):
creator_download_folder_ignore_words =self .creator_download_folder_ignore_words ,
)
try :
dl_count ,skip_count ,kept_originals_this_post ,retryable_failures ,permanent_failures =post_processing_worker .process ()
dl_count ,skip_count ,kept_originals_this_post ,retryable_failures ,permanent_failures ,history_data =post_processing_worker .process ()
grand_total_downloaded_files +=dl_count
grand_total_skipped_files +=skip_count
if kept_originals_this_post :
grand_list_of_kept_original_filenames .extend (kept_originals_this_post )
if retryable_failures :
self .retryable_file_failed_signal .emit (retryable_failures )
if history_data :
if len (self .history_candidates_buffer )<8 :
self .post_processed_for_history_signal .emit (history_data )
if permanent_failures :
self .permanent_file_failed_signal .emit (permanent_failures )
except Exception as proc_err :
@@ -2138,6 +2330,10 @@ class DownloadThread (QThread ):
if was_process_cancelled :break
if not was_process_cancelled and not self .isInterruptionRequested ():
self .logger ("✅ All posts processed or end of content reached by DownloadThread.")
except Exception as main_thread_err :
self .logger (f"\n❌ Critical error within DownloadThread run loop: {main_thread_err }")
traceback .print_exc ()
@@ -2150,6 +2346,7 @@ class DownloadThread (QThread ):
worker_signals_obj .external_link_signal .disconnect (self .external_link_signal )
worker_signals_obj .file_progress_signal .disconnect (self .file_progress_signal )
worker_signals_obj .missed_character_post_signal .disconnect (self .missed_character_post_signal )
worker_signals_obj .file_successfully_downloaded_signal .disconnect (self .file_successfully_downloaded_signal )
except (TypeError ,RuntimeError )as e :
self .logger (f" Note during DownloadThread signal disconnection: {e }")

View File

@@ -17,7 +17,9 @@ These are the primary controls you'll interact with to initiate and manage downl
- Kemono.su (and mirrors) individual posts (e.g., `https://kemono.su/patreon/user/12345/post/98765`).
- Coomer.party (and mirrors like coomer.su) creator pages.
- Coomer.party (and mirrors) individual posts.
- **Note:** When **⭐ Favorite Mode** is active, this field is disabled and shows a "Favorite Mode active" message.
- **Note:**
- When **⭐ Favorite Mode** is active, this field is disabled and shows a "Favorite Mode active" message.
- This field can also be populated with a placeholder message (e.g., "{count} items in queue from popup") if posts are added to the download queue directly from the 'Creator Selection' dialog's 'Fetched Posts' view.
- **🎨 Creator Selection Button:**
- **Icon:** 🎨 (Artist Palette)
@@ -29,10 +31,18 @@ These are the primary controls you'll interact with to initiate and manage downl
- **Creator List:** Displays creators with their service (e.g., Patreon, Fanbox) and ID.
- **Selection:** Checkboxes to select one or more creators.
- **"Add Selected to URL" Button:** Adds the names of selected creators to the URL input field, comma-separated.
- **"Fetch Posts" Button:** After selecting creators, click this to retrieve their latest posts. This will display a new pane within the dialog showing the fetched posts.
- **"Download Scope" Radio Buttons (`Characters` / `Creators`):** Determines the folder structure for items added via this popup.
- `Characters`: Assumes creator names are character names for folder organization.
- `Creators`: Uses the actual creator names for folder organization.
- **Fetched Posts View (Right Pane - Appears after clicking 'Fetch Posts'):**
- **Posts Area Title Label:** Indicates loading status or number of fetched posts.
- **Posts Search Input:** Allows filtering the list of fetched posts by title.
- **Posts List Widget:** Displays posts fetched from the selected creators, often grouped by creator. Each post is checkable.
- **Select All / Deselect All Buttons (for Posts):** Convenience buttons for selecting/deselecting all displayed fetched posts.
- **"Add Selected Posts to Queue" Button:** Adds all checked posts from this view directly to the application's main download queue. The main URL input field will then show a message like "{count} items in queue from popup".
- **"Close" Button (for Posts View):** Hides the fetched posts view and returns to the creator selection list, allowing you to use the 'Add Selected to URL' button if preferred.
- **Page Range (Start to End) Input Fields:**
- **Purpose:** For creator URLs, specify a range of pages to fetch and process.
- **Usage:** Enter the starting page number in the first field and the ending page number in the second.

View File

@@ -1,4 +1,3 @@
translations ={
"en":{
"settings_dialog_title":"Settings",
@@ -155,6 +154,7 @@ translations ={
"manga_style_original_file_text":"Name: Original File",
"manga_style_date_based_text":"Name: Date Based",
"manga_style_title_global_num_text":"Name: Title+G.Num",
"manga_style_date_post_title_text":"Name: Date + Title",
"manga_style_unknown_text":"Name: Unknown Style",
"manga_style_post_title_tooltip":"""Files are named based on the post's title.
- The first file in a post is named using the cleaned post title (e.g., 'My Chapter 1.jpg').
@@ -166,6 +166,13 @@ Output: 'Chapter One.jpg', 'Chapter One_1.png', 'Chapter One_2.gif'.""",
"manga_style_original_file_tooltip":"Files attempt to keep their original filenames.\n\n- An optional prefix can be entered in the input field that appears next to this button.\n\nExample (with prefix 'MySeries'): 'MySeries_OriginalFile.jpg'.\nExample (no prefix): 'OriginalFile.jpg'.",
"manga_style_date_based_tooltip":"Files are named sequentially (e.g., 001.ext, 002.ext) based on post publication order.\n\n- An optional prefix can be entered in the input field that appears next to this button.\n- Multithreading for post processing is disabled for this style to ensure correct numbering.\n\nExample (with prefix 'MyComic'): 'MyComic_001.jpg', 'MyComic_002.png'.\nExample (no prefix): '001.jpg', '002.png'.",
"manga_style_title_global_num_tooltip":"Files are named with the post's title and a global sequential number across all posts.\n\n- Format: '[Cleaned Post Title]_[Global Counter].[ext]'\n- The counter (e.g., _001, _002) increments for every file downloaded in the current session.\n- Multithreading for post processing is disabled for this style to ensure correct numbering.\n\nExample: Post 'Chapter 1' (2 files) -> 'Chapter 1_001.jpg', 'Chapter 1_002.png'.\nNext post 'Chapter 2' (1 file) -> 'Chapter 2_003.jpg'.",
"manga_style_date_post_title_tooltip":"""Files are named using the post's publication date and its title.
- Format: '[YYYY-MM-DD]_[Cleaned Post Title].[ext]'
- The date is taken from the post's 'published' or 'added' field.
- If a post has multiple files, subsequent files (after the first) get a numeric suffix like '_1', '_2'.
Example: Post 'Chapter One' (published 2023-01-15, 2 files: a.jpg, b.png)
Output: '2023-01-15_ChapterOne.jpg', '2023-01-15_ChapterOne_1.png'""",
"manga_style_unknown_tooltip":"The manga filename style is currently unknown. This is unexpected. Please cycle to a valid style.",
"manga_style_cycle_tooltip_suffix":"Click to cycle to the next style.",
"fav_artists_dialog_title":"Favorite Artists",
@@ -279,6 +286,9 @@ Output: 'Chapter One.jpg', 'Chapter One_1.png', 'Chapter One_2.gif'.""",
"new_char_input_tooltip_text":"Enter a new show, game, or character name to add to the list above.",
"link_search_input_placeholder_text":"Search Links...",
"link_search_input_tooltip_text":"When in 'Only Links' mode, type here to filter the displayed links by text, URL, or platform.",
"manga_date_title_suffix_input_placeholder_text":"Suffix (replaces title)",
"manga_date_title_suffix_input_tooltip_text":"Optional suffix for 'Date + Title' style.\nIf provided, this text will be used instead of the post title.\nExample: 'My Series Vol 1'",
"history_button_tooltip_text":"View download history (Not Implemented Yet)",
"manga_date_prefix_input_placeholder_text":"Prefix for Manga Filenames",
"manga_date_prefix_input_tooltip_text":"Optional prefix for 'Date Based' or 'Original File' manga filenames (e.g., 'Series Name').\nIf empty, files will be named based on the style without a prefix.",
"log_display_mode_links_view_text":"🔗 Links View",
@@ -286,6 +296,22 @@ Output: 'Chapter One.jpg', 'Chapter One_1.png', 'Chapter One_2.gif'.""",
"download_external_links_dialog_title":"Download Selected External Links",
"select_all_button_text":"Select All",
"deselect_all_button_text":"Deselect All",
"deselect_all_button_text":"Deselect All", # Existing, but good to have for context
"settings_download_group_title": "Download Settings",
"settings_save_path_button": "Save Current Download Path",
"settings_save_path_tooltip": "Save the current 'Download Location' from the main window for future sessions.",
"settings_save_path_success_title": "Path Saved",
"settings_save_path_success_message": "Download location '{path}' saved successfully.",
"settings_save_path_invalid_title": "Invalid Path",
"settings_save_path_invalid_message": "The path '{path}' is not a valid directory. Please select a valid directory first.",
"settings_save_path_empty_title": "Empty Path",
"settings_save_path_empty_message": "Download location cannot be empty. Please select a path first.",
"settings_save_all_settings_button_text": "Save All Settings",
"settings_save_all_settings_button_tooltip": "Save all current application settings (download path, checkboxes, inputs, etc.).",
"settings_all_saved_success_title": "Settings Saved",
"settings_all_saved_success_message": "All application settings saved successfully.",
"settings_all_saved_error_title": "Save Error",
"settings_all_saved_error_message": "Could not save all application settings. Check the log for details.",
"cookie_browse_button_tooltip":"Browse for a cookie file (Netscape format, typically cookies.txt).\nThis will be used if 'Use Cookie' is checked and the text field above is empty."
,
"page_range_label_text":"Page Range:",
@@ -307,6 +333,14 @@ Output: 'Chapter One.jpg', 'Chapter One_1.png', 'Chapter One_2.gif'.""",
"cookie_help_dialog_title":"Cookie File Instructions",
"cookie_help_instruction_intro":"<p>To use cookies, you typically need a <b>cookies.txt</b> file from your browser.</p>",
"cookie_help_how_to_get_title":"<p><b>How to get cookies.txt:</b></p>",
"download_history_dialog_title_first_processed": "First Processed Files History",
"first_files_processed_header": "First {count} Files Processed in this Session:",
"history_file_label": "File:",
"history_from_post_label": "From Post:",
"history_post_uploaded_label": "Post Uploaded:",
"history_file_downloaded_label": "File Downloaded:",
"download_history_dialog_title_empty": "Download History (Empty)",
"no_download_history_header": "No Downloads Yet",
"cookie_help_step1_extension_intro":"<li>Install the 'Get cookies.txt LOCALLY' extension for your Chrome-based browser:<br><a href=\"https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc\" style=\"color: #87CEEB;\">Get cookies.txt LOCALLY on Chrome Web Store</a></li>",
"cookie_help_step2_login":"<li>Go to the website (e.g., kemono.su or coomer.su) and log in if necessary.</li>",
"cookie_help_step3_click_icon":"<li>Click the extension's icon in your browser toolbar.</li>",
@@ -827,6 +861,14 @@ Output: 'Chapter One.jpg', 'Chapter One_1.png', 'Chapter One_2.gif'.""",
"cookie_help_dialog_title":"Cookieファイルの説明",
"cookie_help_instruction_intro":"<p>Cookieを使用するには、通常ブラウザから<b>cookies.txt</b>ファイルが必要です。</p>",
"cookie_help_how_to_get_title":"<p><b>cookies.txtの入手方法:</b></p>",
"download_history_dialog_title_first_processed": "最初に処理されたファイルの履歴",
"first_files_processed_header": "このセッションで最初に処理された {count} 個のファイル:",
"history_file_label": "ファイル:",
"history_from_post_label": "投稿元:",
"history_post_uploaded_label": "投稿アップロード日時:",
"history_file_downloaded_label": "ファイルダウンロード日時:",
"download_history_dialog_title_empty": "ダウンロード履歴 (空)",
"no_download_history_header": "まだダウンロードがありません",
"cookie_help_step1_extension_intro":"<li>Chromeベースのブラウザに「Get cookies.txt LOCALLY」拡張機能をインストールします:<br><a href=\"https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc\" style=\"color: #87CEEB;\">ChromeウェブストアでGet cookies.txt LOCALLYを入手</a></li>",
"cookie_help_step2_login":"<li>ウェブサイト(例: kemono.suまたはcoomer.suにアクセスし、必要に応じてログインします。</li>",
"cookie_help_step3_click_icon":"<li>ブラウザのツールバーにある拡張機能のアイコンをクリックします。</li>",
@@ -1326,6 +1368,14 @@ Sortie : 'Chapitre Un.jpg', 'Chapitre Un_1.png', 'Chapitre Un_2.gif'.""",
"cookie_help_dialog_title":"Instructions pour le fichier de cookies",
"cookie_help_instruction_intro":"<p>Pour utiliser les cookies, vous avez généralement besoin d'un fichier <b>cookies.txt</b> de votre navigateur.</p>",
"cookie_help_how_to_get_title":"<p><b>Comment obtenir cookies.txt :</b></p>",
"download_history_dialog_title_first_processed": "Historique des premiers fichiers traités",
"first_files_processed_header": "{count} premiers fichiers traités dans cette session :",
"history_file_label": "Fichier :",
"history_from_post_label": "De la publication :",
"history_post_uploaded_label": "Publication téléversée le :",
"history_file_downloaded_label": "Fichier téléchargé le :",
"download_history_dialog_title_empty": "Historique des téléchargements (Vide)",
"no_download_history_header": "Aucun téléchargement pour le moment",
"cookie_help_step1_extension_intro":"<li>Installez l'extension 'Get cookies.txt LOCALLY' pour votre navigateur basé sur Chrome :<br><a href=\"https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc\" style=\"color: #87CEEB;\">Get cookies.txt LOCALLY sur le Chrome Web Store</a></li>",
"cookie_help_step2_login":"<li>Allez sur le site web (ex., kemono.su ou coomer.su) et connectez-vous si nécessaire.</li>",
"cookie_help_step3_click_icon":"<li>Cliquez sur l'icône de l'extension dans la barre d'outils de votre navigateur.</li>",
@@ -1406,7 +1456,7 @@ translations ["en"].update ({
"creator_popup_add_selected_button": "Add Selected", # Already exists, but good to confirm
"fetch_posts_button_text": "Fetch Posts",
"creator_popup_scope_characters_button": "Scope: Characters",
"creator_popup_title_fetching": "Beiträge des Erstellers",
"creator_popup_title_fetching": "Creator Selection",
"creator_popup_posts_area_title": "Abgerufene Beiträge",
"creator_popup_posts_search_placeholder": "Abgerufene Beiträge nach Titel suchen...",
"no_posts_fetched_yet_status": "Noch keine Beiträge abgerufen.",
@@ -2365,6 +2415,14 @@ translations ["zh_CN"].update ({
"cookie_help_dialog_title":"Cookie 文件说明",
"cookie_help_instruction_intro":"<p>要使用 cookie您通常需要浏览器中的 <b>cookies.txt</b> 文件。</p>",
"cookie_help_how_to_get_title":"<p><b>如何获取 cookies.txt</b></p>",
"download_history_dialog_title_first_processed": "首次处理文件历史记录",
"first_files_processed_header": "此会话中首次处理的 {count} 个文件:",
"history_file_label": "文件:",
"history_from_post_label": "来自帖子:",
"history_post_uploaded_label": "帖子上传于:",
"history_file_downloaded_label": "文件下载于:",
"download_history_dialog_title_empty": "下载历史记录(空)",
"no_download_history_header": "尚无下载",
"cookie_help_step1_extension_intro":"<li>为您的基于 Chrome 的浏览器安装“Get cookies.txt LOCALLY”扩展程序<br><a href=\"https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc\" style=\"color: #87CEEB;\">在 Chrome 网上应用店获取 Get cookies.txt LOCALLY</a></li>",
"cookie_help_step2_login":"<li>转到网站例如kemono.su 或 coomer.su并根据需要登录。</li>",
"cookie_help_step3_click_icon":"<li>单击浏览器工具栏中的扩展程序图标。</li>",
@@ -2423,6 +2481,7 @@ translations ["zh_CN"].update ({
"help_guide_step8_content":"<html><head/><body>\n<h3>收藏模式(从您的 Kemono.su 收藏中下载)</h3>\n<p>此模式允许您直接从您在 Kemono.su 上收藏的艺术家那里下载内容。</p>\n<ul>\n<li><b>⭐ 如何启用:</b>\n<ul>\n<li>选中位于“🔗 仅链接”单选按钮旁边的<b>“⭐ 收藏模式”</b>复选框。</li>\n</ul>\n</li>\n<li><b>收藏模式下的界面更改:</b>\n<ul>\n<li>“🔗 Kemono 创建者/帖子 URL”输入区域被一条消息替换指示收藏模式已激活。</li>\n<li>标准的“开始下载”、“暂停”、“取消”按钮被替换为:\n<ul>\n<li><b>“🖼️ 收藏的艺术家”</b>按钮</li>\n<li><b>“📄 收藏的帖子”</b>按钮</li>\n</ul>\n</li>\n<li>“🍪 使用 Cookie”选项被自动启用并锁定因为获取您的收藏需要 cookie。</li>\n</ul>\n</li>\n<li><b>🖼️ 收藏的艺术家按钮:</b>\n<ul>\n<li>单击此按钮将打开一个对话框,其中列出了您在 Kemono.su 上收藏的所有艺术家。</li>\n<li>您可以从此列表中选择一个或多个艺术家以下载其内容。</li>\n</ul>\n</li>\n<li><b>📄 收藏的帖子按钮(未来功能):</b>\n<ul>\n<li>下载特定的收藏<i>帖子</i>(尤其是在它们是系列的一部分时,以类似漫画的顺序)是目前正在开发的功能。</li>\n<li>处理收藏帖子的最佳方式,特别是对于像漫画这样的顺序阅读,仍在探索中。</li>\n<li>如果您对如何下载和组织收藏帖子有具体的想法或用例(例如,从收藏中“漫画风格”),请考虑在项目的 GitHub 页面上提出问题或加入讨论。您的意见非常宝贵!</li>\n</ul>\n</li>\n<li><b>收藏下载范围(按钮):</b>\n<ul>\n<li>此按钮(在“收藏的帖子”旁边)控制从所选收藏艺术家那里下载内容的位置:\n<ul>\n<li><b><i>范围:所选位置:</i></b>所有选定的艺术家都下载到您在界面中设置的主“下载位置”。筛选器全局应用于所有内容。</li>\n<li><b><i>范围:艺术家文件夹:</i></b>对于每个选定的艺术家,将在您的主“下载位置”内自动创建一个子文件夹(以艺术家命名)。该艺术家的内容将进入其特定的子文件夹。筛选器在每个艺术家的专用文件夹内应用。</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><b>收藏模式下的筛选器:</b>\n<ul>\n<li>您在界面中设置的“🎯 按角色筛选”、“🚫 使用关键词跳过”和“筛选文件”选项仍将适用于从您选定的收藏艺术家那里下载的内容。</li>\n</ul>\n</li>\n</ul></body></html>",
"help_guide_step9_title":"⑨ 关键文件与导览",
"help_guide_step9_content":"<html><head/><body>\n<h3>应用程序使用的关键文件</h3>\n<ul>\n<li><b><code>Known.txt</code></b>\n<ul>\n<li>位于应用程序的目录中(<code>.exe</code> 或 <code>main.py</code> 所在的位置)。</li>\n<li>在启用“按名称/标题分文件夹”时,存储您已知的系列、角色或系列标题列表,用于自动文件夹组织。</li>\n<li><b>格式:</b>\n<ul>\n<li>每一行都是一个条目。</li>\n<li><b>简单名称:</b>例如,<code>我的精彩系列</code>。匹配此内容的内容将进入名为“我的精彩系列”的文件夹。</li>\n<li><b>分组别名:</b>例如,<code>(角色 A, 角色 A, 备用名 A)</code>。匹配“角色 A”、“角色 A”或“备用名 A”的内容将全部进入一个名为“角色 A 角色 A 备用名 A”的文件夹清理后。括号中的所有术语都成为该文件夹的别名。</li>\n</ul>\n</li>\n<li><b>用法:</b>如果帖子与您的活动“按角色筛选”输入不匹配,则用作文件夹命名的后备。您可以通过界面管理简单的条目,或直接编辑文件以获取复杂的别名。应用程序会在启动或下次使用时重新加载它。</li>\n</ul>\n</li>\n<li><b><code>cookies.txt</code>(可选):</b>\n<ul>\n<li>如果您使用“使用 Cookie”功能并且不提供直接的 cookie 字符串或浏览到特定文件,应用程序将在其目录中查找名为 <code>cookies.txt</code> 的文件。</li>\n<li><b>格式:</b>必须是 Netscape cookie 文件格式。</li>\n<li><b>用法:</b>允许下载器使用您的浏览器的登录会话来访问可能需要在 Kemono/Coomer 上登录的内容。</li>\n</ul>\n</li>\n</ul>\n<h3>首次用户导览</h3>\n<ul>\n<li>在首次启动时(或如果重置),会出现一个欢迎导览对话框,引导您了解主要功能。您可以跳过它或选择“不再显示此导览”。</li>\n</ul>\n<p><em>许多界面元素还具有工具提示,当您将鼠标悬停在它们上面时会出现,提供快速提示。</em></p>\n</body></html>"
})
translations ["ru"]={}
@@ -2715,6 +2774,14 @@ translations ["ru"].update ({
"cookie_help_dialog_title":"Инструкции по файлу cookie",
"cookie_help_instruction_intro":"<p>Для использования файлов cookie обычно требуется файл <b>cookies.txt</b> из вашего браузера.</p>",
"cookie_help_how_to_get_title":"<p><b>Как получить cookies.txt:</b></p>",
"download_history_dialog_title_first_processed": "История первых обработанных файлов",
"first_files_processed_header": "Первые {count} файлов, обработанных в этой сессии:",
"history_file_label": "Файл:",
"history_from_post_label": "Из поста:",
"history_post_uploaded_label": "Пост загружен:",
"history_file_downloaded_label": "Файл скачан:",
"download_history_dialog_title_empty": "История загрузок (пусто)",
"no_download_history_header": "Загрузок пока нет",
"cookie_help_step1_extension_intro":"<li>Установите расширение 'Get cookies.txt LOCALLY' для вашего браузера на основе Chrome:<br><a href=\"https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc\" style=\"color: #87CEEB;\">Получить cookies.txt LOCALLY в Chrome Web Store</a></li>",
"cookie_help_step2_login":"<li>Перейдите на веб-сайт (например, kemono.su или coomer.su) и при необходимости войдите в систему.</li>",
"cookie_help_step3_click_icon":"<li>Нажмите на значок расширения на панели инструментов вашего браузера.</li>",
@@ -3065,6 +3132,14 @@ translations ["ko"].update ({
"cookie_help_dialog_title":"쿠키 파일 지침",
"cookie_help_instruction_intro":"<p>쿠키를 사용하려면 일반적으로 브라우저에서 <b>cookies.txt</b> 파일이 필요합니다.</p>",
"cookie_help_how_to_get_title":"<p><b>cookies.txt를 얻는 방법:</b></p>",
"download_history_dialog_title_first_processed": "처음 처리된 파일 기록",
"first_files_processed_header": "이 세션에서 처음 처리된 {count}개 파일:",
"history_file_label": "파일:",
"history_from_post_label": "게시물 출처:",
"history_post_uploaded_label": "게시물 업로드 날짜:",
"history_file_downloaded_label": "파일 다운로드 날짜:",
"download_history_dialog_title_empty": "다운로드 기록 (비어 있음)",
"no_download_history_header": "아직 다운로드 없음",
"cookie_help_step1_extension_intro":"<li>Chrome 기반 브라우저용 'Get cookies.txt LOCALLY' 확장 프로그램을 설치하십시오:<br><a href=\"https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc\" style=\"color: #87CEEB;\">Chrome 웹 스토어에서 Get cookies.txt LOCALLY 받기</a></li>",
"cookie_help_step2_login":"<li>웹사이트(예: kemono.su 또는 coomer.su)로 이동하여 필요한 경우 로그인하십시오.</li>",
"cookie_help_step3_click_icon":"<li>브라우저 도구 모음에서 확장 프로그램 아이콘을 클릭하십시오.</li>",
@@ -3415,6 +3490,14 @@ Salida: 'Capítulo Uno.jpg', 'Capítulo Uno_1.png', 'Capítulo Uno_2.gif'.""",
"cookie_help_dialog_title":"Instrucciones del archivo de cookies",
"cookie_help_instruction_intro":"<p>Para usar cookies, normalmente necesita un archivo <b>cookies.txt</b> de su navegador.</p>",
"cookie_help_how_to_get_title":"<p><b>Cómo obtener cookies.txt:</b></p>",
"download_history_dialog_title_first_processed": "Historial de los primeros archivos procesados",
"first_files_processed_header": "Primeros {count} archivos procesados en esta sesión:",
"history_file_label": "Archivo:",
"history_from_post_label": "De la publicación:",
"history_post_uploaded_label": "Publicación subida el:",
"history_file_downloaded_label": "Archivo descargado el:",
"download_history_dialog_title_empty": "Historial de descargas (Vacío)",
"no_download_history_header": "Aún no hay descargas",
"cookie_help_step1_extension_intro":"<li>Instale la extensión 'Get cookies.txt LOCALLY' para su navegador basado en Chrome:<br><a href=\"https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc\" style=\"color: #87CEEB;\">Obtener cookies.txt LOCALLY en Chrome Web Store</a></li>",
"cookie_help_step2_login":"<li>Vaya al sitio web (p. ej., kemono.su o coomer.su) e inicie sesión si es necesario.</li>",
"cookie_help_step3_click_icon":"<li>Haga clic en el icono de la extensión en la barra de herramientas de su navegador.</li>",
@@ -3777,6 +3860,14 @@ Ausgabe: 'Kapitel Eins.jpg', 'Kapitel Eins_1.png', 'Kapitel Eins_2.gif'.""",
"cookie_help_dialog_title":"Anweisungen zur Cookie-Datei",
"cookie_help_instruction_intro":"<p>Um Cookies zu verwenden, benötigen Sie normalerweise eine <b>cookies.txt</b>-Datei aus Ihrem Browser.</p>",
"cookie_help_how_to_get_title":"<p><b>So erhalten Sie cookies.txt:</b></p>",
"download_history_dialog_title_first_processed": "Verlauf der zuerst verarbeiteten Dateien",
"first_files_processed_header": "Erste {count} in dieser Sitzung verarbeitete Dateien:",
"history_file_label": "Datei:",
"history_from_post_label": "Aus Beitrag:",
"history_post_uploaded_label": "Beitrag hochgeladen am:",
"history_file_downloaded_label": "Datei heruntergeladen am:",
"download_history_dialog_title_empty": "Download-Verlauf (Leer)",
"no_download_history_header": "Noch keine Downloads",
"cookie_help_step1_extension_intro":"<li>Installieren Sie die Erweiterung 'Get cookies.txt LOCALLY' für Ihren Chrome-basierten Browser:<br><a href=\"https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc\" style=\"color: #87CEEB;\">Get cookies.txt LOCALLY im Chrome Web Store</a></li>",
"cookie_help_step2_login":"<li>Gehen Sie zur Website (z. B. kemono.su oder coomer.su) und melden Sie sich bei Bedarf an.</li>",
"cookie_help_step3_click_icon":"<li>Klicken Sie auf das Erweiterungssymbol in Ihrer Browser-Symbolleiste.</li>",
@@ -4139,6 +4230,14 @@ Saída: 'Capítulo Um.jpg', 'Capítulo Um_1.png', 'Capítulo Um_2.gif'.""",
"cookie_help_dialog_title":"Instruções do Arquivo de Cookie",
"cookie_help_instruction_intro":"<p>Para usar cookies, você normalmente precisa de um arquivo <b>cookies.txt</b> do seu navegador.</p>",
"cookie_help_how_to_get_title":"<p><b>Como obter o cookies.txt:</b></p>",
"download_history_dialog_title_first_processed": "Histórico dos Primeiros Arquivos Processados",
"first_files_processed_header": "Primeiros {count} Arquivos Processados nesta Sessão:",
"history_file_label": "Arquivo:",
"history_from_post_label": "Da Publicação:",
"history_post_uploaded_label": "Publicação Enviada em:",
"history_file_downloaded_label": "Arquivo Baixado em:",
"download_history_dialog_title_empty": "Histórico de Downloads (Vazio)",
"no_download_history_header": "Nenhum Download Ainda",
"cookie_help_step1_extension_intro":"<li>Instale a extensão 'Get cookies.txt LOCALLY' para seu navegador baseado em Chrome:<br><a href=\"https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc\" style=\"color: #87CEEB;\">Obter Get cookies.txt LOCALLY na Chrome Web Store</a></li>",
"cookie_help_step2_login":"<li>Vá para o site (ex: kemono.su ou coomer.su) e faça login, se necessário.</li>",
"cookie_help_step3_click_icon":"<li>Clique no ícone da extensão na barra de ferramentas do seu navegador.</li>",
@@ -4491,6 +4590,14 @@ translations ["zh_TW"].update ({
"cookie_help_dialog_title":"Cookie 檔案說明",
"cookie_help_instruction_intro":"<p>要使用 cookie您通常需要瀏覽器中的 <b>cookies.txt</b> 檔案。</p>",
"cookie_help_how_to_get_title":"<p><b>如何取得 cookies.txt</b></p>",
"download_history_dialog_title_first_processed": "最初處理的檔案歷史記錄",
"first_files_processed_header": "此工作階段中最初處理的 {count} 個檔案:",
"history_file_label": "檔案:",
"history_from_post_label": "來自貼文:",
"history_post_uploaded_label": "貼文上傳於:",
"history_file_downloaded_label": "檔案下載於:",
"download_history_dialog_title_empty": "下載歷史記錄(空)",
"no_download_history_header": "尚無下載",
"cookie_help_step1_extension_intro":"<li>為您的 Chrome 瀏覽器安裝「Get cookies.txt LOCALLY」擴充功能<br><a href=\"https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc\" style=\"color: #87CEEB;\">在 Chrome 線上應用程式商店取得 Get cookies.txt LOCALLY</a></li>",
"cookie_help_step2_login":"<li>前往網站(例如 kemono.su 或 coomer.su並在需要時登入。</li>",
"cookie_help_step3_click_icon":"<li>點擊瀏覽器工具列中的擴充功能圖示。</li>",
@@ -4548,7 +4655,12 @@ translations ["zh_TW"].update ({
"help_guide_step8_title":"⑧ 最愛模式與未來功能",
"help_guide_step8_content":"<html><head/><body>\n<h3>最愛模式(從您在 Kemono.su 上的最愛下載)</h3>\n<p>此模式可讓您直接從您在 Kemono.su 上收藏的藝術家下載內容。</p>\n<ul>\n<li><b>⭐ 如何啟用:</b>\n<ul>\n<li>勾選<b>「⭐ 最愛模式」</b>核取方塊,位於「🔗 僅限連結」選項按鈕旁邊。</li>\n</ul>\n</li>\n<li><b>最愛模式中的 UI 變更:</b>\n<ul>\n<li>「🔗 Kemono 創作者/貼文網址」輸入區域會被一條訊息取代,表示最愛模式已啟用。</li>\n<li>標準的「開始下載」、「暫停」、「取消」按鈕會被以下按鈕取代:\n<ul>\n<li><b>「🖼️ 最愛的藝術家」</b>按鈕</li>\n<li><b>「📄 最愛的貼文」</b>按鈕</li>\n</ul>\n</li>\n<li>「🍪 使用 Cookie」選項會自動啟用並鎖定因為需要 cookie 來擷取您的最愛。</li>\n</ul>\n</li>\n<li><b>🖼️ 最愛的藝術家按鈕:</b>\n<ul>\n<li>點擊此處可開啟一個對話方塊,列出您在 Kemono.su 上收藏的所有藝術家。</li>\n<li>您可以從此列表中選擇一位或多位藝術家來下載他們的內容。</li>\n</ul>\n</li>\n<li><b>📄 最愛的貼文按鈕(未來功能):</b>\n<ul>\n<li>下載特定收藏的<i>貼文</i>(特別是如果它們是系列的一部分,則以類似漫畫的循序順序)是一項目前正在開發的功能。</li>\n<li>處理收藏貼文的最佳方式,特別是對於像漫畫這樣的循序閱讀,仍在探索中。</li>\n<li>如果您對於如何下載和組織收藏貼文有任何想法或特定用例(例如:從最愛中進行「漫畫風格」),請考慮在專案的 GitHub 頁面上提出問題或加入討論。您的意見非常寶貴!</li>\n</ul>\n</li>\n<li><b>最愛下載範圍(按鈕):</b>\n<ul>\n<li>此按鈕(位於「最愛的貼文」旁邊)控制所選最愛藝術家內容的下載位置:\n<ul>\n<li><b><i>範圍:所選位置:</i></b>所有選定的藝術家都將下載到您在 UI 中設定的主要「下載位置」。篩選器會全域應用於所有內容。</li>\n<li><b><i>範圍:藝術家資料夾:</i></b>對於每位選定的藝術家,將在您的主要「下載位置」內自動建立一個子資料夾(以藝術家姓名命名)。該藝術家的內容將進入其特定資料夾。篩選器會在每個藝術家的專用資料夾內應用。</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><b>最愛模式中的篩選器:</b>\n<ul>\n<li>您在 UI 中設定的「🎯 按角色篩選」、「🚫 使用關鍵字跳過」和「篩選檔案」選項仍將適用於從您選定的最愛藝術家下載的內容。</li>\n</ul>\n</li>\n</ul></body></html>",
"help_guide_step9_title":"⑨ 關鍵檔案與導覽",
"help_guide_step9_content":"<html><head/><body>\n<h3>應用程式使用的關鍵檔案</h3>\n<ul>\n<li><b><code>Known.txt</code></b>\n<ul>\n<li>位於應用程式目錄中(<code>.exe</code> 或 <code>main.py</code> 所在的位置)。</li>\n<li>在啟用「按名稱/標題分開資料夾」時,儲存您已知的節目、角色或系列標題列表,以便自動組織資料夾。</li>\n<li><b>格式:</b>\n<ul>\n<li>每一行都是一個條目。</li>\n<li><b>單一名稱:</b>例如:<code>我的精彩系列</code>。符合此內容的內容將進入名為「我的精彩系列」的資料夾。</li>\n<li><b>群組別名:</b>例如:<code>(角色 A, 角 A, 備用名稱 A)</code>。符合「角色 A」、「角 A」或「備用名稱 A」的內容都將進入一個名為「角色 A 角 A 備用名稱 A」的資料夾經過清理。括號中的所有術語都成為該資料夾的別名。</li>\n</ul>\n</li>\n<li><b>用途:</b>如果貼文不符合您目前作用中的「按角色篩選」輸入,則作為資料夾命名的備用選項。您可以透過 UI 管理簡單條目,或直接編輯檔案以處理複雜的別名。應用程式會在啟動或下次使用時重新載入它。</li>\n</ul>\n</li>\n<li><b><code>cookies.txt</code>(可選):</b>\n<ul>\n<li>如果您使用「使用 Cookie」功能且未提供直接的 cookie 字串或瀏覽特定檔案,應用程式將在其目錄中尋找名為 <code>cookies.txt</code> 的檔案。</li>\n<li><b>格式:</b>必須是 Netscape cookie 檔案格式。</li>\n<li><b>用途:</b>允許下載器使用您的瀏覽器登入工作階段來存取可能需要登入 Kemono/Coomer 的內容。</li>\n</ul>\n</li>\n</ul>\n<h3>首次使用者導覽</h3>\n<ul>\n<li>首次啟動時(或如果重設),會出現一個歡迎導覽對話方塊,引導您了解主要功能。您可以跳過它或選擇「不再顯示此導覽」。</li>\n</ul>\n<p><em>許多 UI 元素也有工具提示,當您將滑鼠懸停在它們上方時會出現,提供快速提示。</em></p>\n</body></html>"
"help_guide_step9_content":"<html><head/><body>\n<h3>應用程式使用的關鍵檔案</h3>\n<ul>\n<li><b><code>Known.txt</code></b>\n<ul>\n<li>位於應用程式目錄中(<code>.exe</code> 或 <code>main.py</code> 所在的位置)。</li>\n<li>在啟用「按名稱/標題分開資料夾」時,儲存您已知的節目、角色或系列標題列表,以便自動組織資料夾。</li>\n<li><b>格式:</b>\n<ul>\n<li>每一行都是一個條目。</li>\n<li><b>單一名稱:</b>例如:<code>我的精彩系列</code>。符合此內容的內容將進入名為「我的精彩系列」的資料夾。</li>\n<li><b>群組別名:</b>例如:<code>(角色 A, 角 A, 備用名稱 A)</code>。符合「角色 A」、「角 A」或「備用名稱 A」的內容都將進入一個名為「角色 A 角 A 備用名稱 A」的資料夾經過清理。括號中的所有術語都成為該資料夾的別名。</li>\n</ul>\n</li>\n<li><b>用途:</b>如果貼文不符合您目前作用中的「按角色篩選」輸入,則作為資料夾命名的備用選項。您可以透過 UI 管理簡單條目,或直接編輯檔案以處理複雜的別名。應用程式會在啟動或下次使用時重新載入它。</li>\n</ul>\n</li>\n<li><b><code>cookies.txt</code>(可選):</b>\n<ul>\n<li>如果您使用「使用 Cookie」功能且未提供直接的 cookie 字串或瀏覽特定檔案,應用程式將在其目錄中尋找名為 <code>cookies.txt</code> 的檔案。</li>\n<li><b>格式:</b>必須是 Netscape cookie 檔案格式。</li>\n<li><b>用途:</b>允許下載器使用您的瀏覽器登入工作階段來存取可能需要登入 Kemono/Coomer 的內容。</li>\n</ul>\n</li>\n</ul>\n<h3>首次使用者導覽</h3>\n<ul>\n<li>首次啟動時(或如果重設),會出現一個歡迎導覽對話方塊,引導您了解主要功能。您可以跳過它或選擇「不再顯示此導覽」。</li>\n</ul>\n<p><em>許多 UI 元素也有工具提示,當您將滑鼠懸停在它們上方時會出現,提供快速提示。</em></p>\n</body></html>",
"fetch_posts_button_text":"載入貼文",
"creator_popup_add_posts_to_queue_button":"加入所選貼文至佇列",
"posts_for_creator_header":"來自的貼文",
"untitled_post_placeholder":"未命名貼文",
"fetching_posts_for_creator_status_all_pages":"正在從 {service} 載入 {creator_name} 的所有貼文⋯⋯可能需要一些時間。",
})
def get_translation (language_code ,key ,default_text =""):

2152
main.py

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
<h1 align="center">Kemono Downloader v5.2.0</h1>
<h1 align="center">Kemono Downloader v5.4.0</h1>
<table align="center">
<tr>
@@ -80,6 +80,20 @@ Kemono Downloader offers a range of features to streamline your content download
---
## ✨ What's New in v5.3.0
- **Multi-Creator Post Fetching & Queuing:**
- The **Creator Selection popup** (🎨 icon) has been significantly enhanced.
- After selecting multiple creators, you can now click a new "**Fetch Posts**" button.
- This will retrieve and display posts from all selected creators in a new view within the popup.
- You can then browse these fetched posts (with search functionality) and select individual posts.
- A new "**Add Selected Posts to Queue**" button allows you to add your chosen posts directly to the main download queue, streamlining the process of gathering content from multiple artists.
- The traditional "**Add Selected to URL**" button is still available if you prefer to populate the main URL field with creator names.
- **Improved Favorite Download Queue Handling:**
- When items are added to the download queue from the Creator Selection popup, the main URL input field will now display a placeholder message (e.g., "{count} items in queue from popup").
- The queue is now more robustly managed, especially when interacting with the main URL input field after items have been queued from the popup.
---
## ✨ What's New in v5.1.0
- **Enhanced Error File Management**: The "Error" button now opens a dialog listing files that failed to download. This dialog includes:
- An option to **retry selected** failed downloads.