From f9395c60de4ad5269b2a1ce60609b48792790127 Mon Sep 17 00:00:00 2001 From: Bagas Firmansyah <88070476+bagasf2002@users.noreply.github.com> Date: Sat, 18 Nov 2023 01:33:52 +0700 Subject: [PATCH] Change Filelions Add more domain & new api domain filelions --- .../download_utils/direct_link_generator.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bot/helper/mirror_utils/download_utils/direct_link_generator.py b/bot/helper/mirror_utils/download_utils/direct_link_generator.py index 29b20efd39e..00cc529cc95 100644 --- a/bot/helper/mirror_utils/download_utils/direct_link_generator.py +++ b/bot/helper/mirror_utils/download_utils/direct_link_generator.py @@ -154,9 +154,11 @@ def direct_link_generator(link): elif any( x in domain for x in [ - "filelions.com", + "filelions.co", + "filelions.site", "filelions.live", "filelions.to", + "cabecabean.lol", "filelions.online", "embedwish.com", "streamwish.com", @@ -1376,10 +1378,10 @@ def filelions_and_streamwish(url): scheme = parsed_url.scheme if any( x in hostname - for x in ["filelions.com", "filelions.live", "filelions.to", "filelions.online"] + for x in ["filelions.co", "filelions.live", "filelions.to", "filelions.site", "cabecabean.lol", "filelions.online"] ): apiKey = config_dict["FILELION_API"] - apiUrl = "https://api.filelions.com" + apiUrl = "https://api.filelions.co" elif any( x in hostname for x in [ @@ -1519,4 +1521,4 @@ def pcloud(url): raise DirectDownloadLinkException(f"ERROR: {e.__class__.__name__}") if link := findall(r'.downloadlink.:..(https:.*)..', res.text): return link[0].replace('\/', '/') - raise DirectDownloadLinkException("ERROR: Direct link not found") \ No newline at end of file + raise DirectDownloadLinkException("ERROR: Direct link not found")