diff --git a/comet/utils/general.py b/comet/utils/general.py index 28ebb4f..d45b25a 100644 --- a/comet/utils/general.py +++ b/comet/utils/general.py @@ -401,13 +401,13 @@ async def get_torrentio(log_name: str, type: str, full_id: str): ).json() for torrent in get_torrentio["streams"]: - title = torrent["title"] - title_full = title.split("\nšŸ‘¤")[0] - tracker = title.split("āš™ļø ")[1].split("\n")[0] + title_full = torrent["title"] + title = title_full.split("\n")[0] + tracker = title_full.split("āš™ļø ")[1] results.append( { - "Title": title_full, + "Title": title, "InfoHash": torrent["infoHash"], "Size": None, "Tracker": f"Torrentio|{tracker}", @@ -442,8 +442,8 @@ async def get_mediafusion(log_name: str, type: str, full_id: str): for torrent in get_mediafusion["streams"]: title_full = torrent["description"] - title = title_full.split("\n")[0] if "\n" in title_full else title_full - tracker = title_full.split("šŸ”— ")[1] if "šŸ”—" in title_full else "Unknown" + title = title_full.split("\n")[0].replace("šŸ“‚ ", "").replace("/", "") + tracker = title_full.split("šŸ”— ")[1] results.append( {