Skip to content

Commit

Permalink
Change Filelions
Browse files Browse the repository at this point in the history
Add more domain & new api domain filelions
  • Loading branch information
bagasf2002 committed Nov 17, 2023
1 parent da14a76 commit f9395c6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bot/helper/mirror_utils/download_utils/direct_link_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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 [
Expand Down Expand Up @@ -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")
raise DirectDownloadLinkException("ERROR: Direct link not found")

0 comments on commit f9395c6

Please sign in to comment.