fixed desc offline

This commit is contained in:
faroukbmiled 2023-09-23 18:44:18 +01:00
parent 07ab0af109
commit 88ce63556f

View File

@ -540,6 +540,7 @@ class LibraryTab(ctk.CTkScrollableFrame):
stars_image_size = stars_image.size stars_image_size = stars_image.size
ratings_text = "Offline" ratings_text = "Offline"
description = re.sub(r'\^\w+', '', extract_json_data(json_path, "Description")) or "Not available" description = re.sub(r'\^\w+', '', extract_json_data(json_path, "Description")) or "Not available"
description = re.sub(r'\[.*?\]', '', description)
url = f"https://steamcommunity.com/sharedfiles/filedetails/?id={workshop_id}" url = f"https://steamcommunity.com/sharedfiles/filedetails/?id={workshop_id}"
self.toplevel_info_window(map_name, map_mod_type, map_size, image, image_size, date_created, self.toplevel_info_window(map_name, map_mod_type, map_size, image, image_size, date_created,