# 09.06.24 import logging # External libraries import httpx from bs4 import BeautifulSoup from unidecode import unidecode # Internal utilities from Src.Util.headers import get_headers from Src.Util.table import TVShowManager from ..Template import search_domain, get_select_title # Logic class from .Core.Class.SearchType import MediaManager # Variable from .costant import SITE_NAME media_search_manager = MediaManager() table_show_manager = TVShowManager() def title_search(word_to_search: str) -> int: """ Search for titles based on a search query. Args: - title_search (str): The title to search for. Returns: int: The number of titles found. """ # Find new domain if prev dont work domain_to_use, _ = search_domain(SITE_NAME, '