From fe2892541706f4e6194073d7d666918d84a3bd46 Mon Sep 17 00:00:00 2001 From: Hafitz Setya Date: Sun, 18 Jul 2021 06:55:40 +0700 Subject: [PATCH] Direct link generator: remove racaty coz broken Signed-off-by: breakdowns --- .../mirror_utils/download_utils/direct_link_generator.py | 6 ++---- 1 file changed, 2 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 2a52125..1a4a0a3 100644 --- a/bot/helper/mirror_utils/download_utils/direct_link_generator.py +++ b/bot/helper/mirror_utils/download_utils/direct_link_generator.py @@ -48,7 +48,7 @@ def direct_link_generator(link: str): elif 'github.com' in link: return github(link) elif 'hxfile.co' in link: - return racaty(link) + return hxfile(link) elif 'anonfiles.com' in link: return anonfiles(link) elif 'letsupload.io' in link: @@ -87,8 +87,6 @@ def direct_link_generator(link: str): return streamtape(link) elif 'bayfiles.com' in link: return anonfiles(link) - elif 'racaty.net' in link: - return racaty(link) else: raise DirectDownloadLinkException(f'No Direct link function found for {link}') @@ -223,7 +221,7 @@ def github(url: str) -> str: raise DirectDownloadLinkException("Error: Can't extract the link\n") -def racaty(url: str) -> str: +def hxfile(url: str) -> str: """ Racaty direct link generator Based on https://github.com/breakdowns/slam-mirrorbot """ bypasser = lk21.Bypass()