Added back racaty.net support & Tidying up
Signed-off-by: breakdowns <hafitz666@outlook.co.id>
This commit is contained in:
parent
4744ef5db8
commit
a6c5fe62af
|
|
@ -49,7 +49,7 @@ tgx, yts, eztv, torlock, rarbg
|
|||
letsupload.io, hxfile.co, anonfiles.com, bayfiles.com, antfiles,
|
||||
fembed.com, fembed.net, femax20.com, layarkacaxxi.icu, fcdn.stream,
|
||||
sbplay.org, naniplay.com, naniplay.nanime.in, naniplay.nanime.biz, sbembed.com,
|
||||
streamtape.com, streamsb.net, feurl.com, pixeldrain.com,
|
||||
streamtape.com, streamsb.net, feurl.com, pixeldrain.com, racaty.net,
|
||||
1drv.ms (Only works for file not folder or business account),
|
||||
uptobox.com (Uptobox account must be premium)
|
||||
```
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ def direct_link_generator(link: str):
|
|||
elif 'github.com' in link:
|
||||
return github(link)
|
||||
elif 'hxfile.co' in link:
|
||||
return hxfile(link)
|
||||
return racaty(link)
|
||||
elif 'anonfiles.com' in link:
|
||||
return anonfiles(link)
|
||||
elif 'letsupload.io' in link:
|
||||
|
|
@ -87,6 +87,8 @@ 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}')
|
||||
|
||||
|
|
@ -221,16 +223,11 @@ def github(url: str) -> str:
|
|||
raise DirectDownloadLinkException("Error: Can't extract the link\n")
|
||||
|
||||
|
||||
def hxfile(url: str) -> str:
|
||||
""" Hxfile direct links generator
|
||||
based on https://github.com/breakdowns/slam-mirrorbot """
|
||||
dl_url = ''
|
||||
try:
|
||||
link = re.findall(r'\bhttps?://.*hxfile\.co\S+', url)[0]
|
||||
except IndexError:
|
||||
raise DirectDownloadLinkException("No Hxfile links found\n")
|
||||
def racaty(url: str) -> str:
|
||||
""" Racaty direct link generator
|
||||
Based on https://github.com/breakdowns/slam-mirrorbot """
|
||||
bypasser = lk21.Bypass()
|
||||
dl_url=bypasser.bypass_url(link)
|
||||
dl_url=bypasser.bypass_filesIm(url)
|
||||
return dl_url
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -122,9 +122,9 @@ def clear(update, context):
|
|||
|
||||
def exechelp(update, context):
|
||||
help_string = '''
|
||||
• /eval <i>Run Python Code Line | Lines</i>
|
||||
• /exec <i>Run Commands In Exec</i>
|
||||
• /clearlocals <i>Cleared locals</i>
|
||||
• <code>/eval</code> <i>Run Python Code Line | Lines</i>
|
||||
• <code>/exec</code> <i>Run Commands In Exec</i>
|
||||
• <code>/clearlocals</code> <i>Cleared locals</i>
|
||||
'''
|
||||
update.effective_message.reply_photo(IMAGE_URL, help_string, parse_mode=ParseMode.HTML)
|
||||
|
||||
|
|
|
|||
|
|
@ -319,16 +319,16 @@ for command, value in torrents_dict.items():
|
|||
|
||||
def searchhelp(update, context):
|
||||
help_string = '''
|
||||
• /nyaasi <i>[search query]</i>
|
||||
• /sukebei <i>[search query]</i>
|
||||
• /1337x <i>[search query]</i>
|
||||
• /piratebay <i>[search query]</i>
|
||||
• /tgx <i>[search query]</i>
|
||||
• /yts <i>[search query]</i>
|
||||
• /eztv <i>[search query]</i>
|
||||
• /torlock <i>[search query]</i>
|
||||
• /rarbg <i>[search query]</i>
|
||||
• /ts <i>[search query]</i>
|
||||
• <code>/nyaasi</code> <i>[search query]</i>
|
||||
• <code>/sukebei</code> <i>[search query]</i>
|
||||
• <code>/1337x</code> <i>[search query]</i>
|
||||
• <code>/piratebay</code> <i>[search query]</i>
|
||||
• <code>/tgx</code> <i>[search query]</i>
|
||||
• <code>/yts</code> <i>[search query]</i>
|
||||
• <code>/eztv</code> <i>[search query]</i>
|
||||
• <code>/torlock</code> <i>[search query]</i>
|
||||
• <code>/rarbg</code> <i>[search query]</i>
|
||||
• <code>/ts</code> <i>[search query]</i>
|
||||
'''
|
||||
update.effective_message.reply_photo(IMAGE_URL, help_string, parse_mode=ParseMode.HTML)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue