pass if item already named after the option

This commit is contained in:
faroukbmiled 2023-09-22 23:15:51 +01:00
parent 75a45ad3d0
commit e88f2c9af8

View File

@ -414,7 +414,13 @@ class SettingsTab(ctk.CTkFrame):
continue continue
if folder_name in main_app.app.library_tab.item_block_list: if folder_name in main_app.app.library_tab.item_block_list:
continue continue
json_path = os.path.join(zone_path, "workshop.json") json_path = os.path.join(zone_path, "workshop.json")
if option == "FolderName" and folder_name == extract_json_data(json_path, option):
continue
elif option == "PublisherID" and folder_name == extract_json_data(json_path, option):
continue
if os.path.exists(json_path): if os.path.exists(json_path):
publisher_id = extract_json_data(json_path, 'PublisherID') publisher_id = extract_json_data(json_path, 'PublisherID')
folder_to_rename = os.path.join(folder_path, folder_name) folder_to_rename = os.path.join(folder_path, folder_name)