diff --git a/scrapers/mediafusion.py b/scrapers/mediafusion.py index b2a2ca6..793dcf7 100644 --- a/scrapers/mediafusion.py +++ b/scrapers/mediafusion.py @@ -43,7 +43,7 @@ class MediafusionScraper(StremioScraper): def parse_stream_title(self, stream: dict) -> dict: description = stream["description"].splitlines() - torrent_name = description[0].removeprefix("📂 ") + torrent_name = description[0].removeprefix("📂 ").split(" ┈➤ ")[0] metadata = PTT.parse_title(torrent_name, True) source = stream["name"].split()[0].title() diff --git a/utils/parser.py b/utils/parser.py index b4ee7ce..f81efc2 100644 --- a/utils/parser.py +++ b/utils/parser.py @@ -320,8 +320,8 @@ async def parse_stream_data( if show_full_torrent_name: torrent_name = ( - f"{stream_data.torrent_name}/{episode_data.title or episode_data.filename or ''}" - if episode_data + f"{stream_data.torrent_name} ┈➤ {episode_data.filename}" + if episode_data and episode_data.filename else stream_data.torrent_name ) torrent_name = "📂 " + torrent_name.replace(".torrent", "").replace(