Update msg
Signed-off-by: breakdowns <hafitz666@outlook.co.id>
This commit is contained in:
parent
551c8b6f69
commit
1c04c6f728
|
|
@ -42,8 +42,8 @@ tgx, yts, eztv, torlock, rarbg
|
||||||
letsupload.io, hxfile.co, anonfiles.com, fembed.com, fembed.net, femax20.com,
|
letsupload.io, hxfile.co, anonfiles.com, fembed.com, fembed.net, femax20.com,
|
||||||
layarkacaxxi.icu, fcdn.stream, sbplay.org, naniplay.com, naniplay.nanime.in,
|
layarkacaxxi.icu, fcdn.stream, sbplay.org, naniplay.com, naniplay.nanime.in,
|
||||||
naniplay.nanime.biz, sbembed.com, streamsb.net, feurl.com, pixeldrain.com,
|
naniplay.nanime.biz, sbembed.com, streamsb.net, feurl.com, pixeldrain.com,
|
||||||
uptobox.com (Uptobox account must be premium),
|
1drv.ms (Only works for file not folder or business account),
|
||||||
1drv.ms (Only works for file not folder or business account)
|
uptobox.com (Uptobox account must be premium)
|
||||||
```
|
```
|
||||||
## From Original Repos
|
## From Original Repos
|
||||||
- Mirroring direct download links, Torrent, and Telegram files to Google Drive
|
- Mirroring direct download links, Torrent, and Telegram files to Google Drive
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,7 @@ def bot_help(update, context):
|
||||||
|
|
||||||
/tshelp: Get help for Torrent search module
|
/tshelp: Get help for Torrent search module
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if CustomFilters.sudo_user(update) or CustomFilters.owner_filter(update):
|
if CustomFilters.sudo_user(update) or CustomFilters.owner_filter(update):
|
||||||
sendMessage(help_string_adm, context.bot, update)
|
sendMessage(help_string_adm, context.bot, update)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ def direct_link_generator(link: str):
|
||||||
if not link:
|
if not link:
|
||||||
raise DirectDownloadLinkException("`No links found!`")
|
raise DirectDownloadLinkException("`No links found!`")
|
||||||
elif 'youtube.com' in link or 'youtu.be' in link:
|
elif 'youtube.com' in link or 'youtu.be' in link:
|
||||||
raise DirectDownloadLinkException(f"Youtube Link use /{BotCommands.WatchCommand} or /{BotCommands.TarWatchCommand}")
|
raise DirectDownloadLinkException(f"Use /{BotCommands.WatchCommand} to mirror Youtube link\nUse /{BotCommands.TarWatchCommand} to make tar of Youtube playlist")
|
||||||
elif 'zippyshare.com' in link:
|
elif 'zippyshare.com' in link:
|
||||||
return zippy_share(link)
|
return zippy_share(link)
|
||||||
elif 'yadi.sk' in link:
|
elif 'yadi.sk' in link:
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ class GoogleDriveHelper:
|
||||||
try:
|
try:
|
||||||
file_id = self.getIdFromUrl(link)
|
file_id = self.getIdFromUrl(link)
|
||||||
except (KeyError,IndexError):
|
except (KeyError,IndexError):
|
||||||
msg = "Google drive ID could not be found in the provided link"
|
msg = "Google Drive ID could not be found in the provided link"
|
||||||
return msg
|
return msg
|
||||||
msg = ''
|
msg = ''
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ def list_drive(update, context):
|
||||||
if button:
|
if button:
|
||||||
editMessage(msg, reply, button)
|
editMessage(msg, reply, button)
|
||||||
else:
|
else:
|
||||||
editMessage('No result found', reply, button)
|
editMessage(f'No result found for <b>{search}</b>', reply, button)
|
||||||
|
|
||||||
except IndexError:
|
except IndexError:
|
||||||
sendMessage('Send a search key along with command', context.bot, update)
|
sendMessage('Send a search key along with command', context.bot, update)
|
||||||
|
|
|
||||||
|
|
@ -292,14 +292,14 @@ def _mirror(bot, update, isTar=False, extract=False):
|
||||||
sendMessage(f"{e}", bot, update)
|
sendMessage(f"{e}", bot, update)
|
||||||
return
|
return
|
||||||
if "Youtube" in str(e):
|
if "Youtube" in str(e):
|
||||||
sendMessage(f"ERROR: {e}", bot, update)
|
sendMessage(f"{e}", bot, update)
|
||||||
return
|
return
|
||||||
|
|
||||||
listener = MirrorListener(bot, update, pswd, isTar, tag, extract)
|
listener = MirrorListener(bot, update, pswd, isTar, tag, extract)
|
||||||
|
|
||||||
if bot_utils.is_gdrive_link(link):
|
if bot_utils.is_gdrive_link(link):
|
||||||
if not isTar and not extract:
|
if not isTar and not extract:
|
||||||
sendMessage(f"Use /{BotCommands.CloneCommand} To Copy Google Drive File/Folder", bot, update)
|
sendMessage(f"Use /{BotCommands.CloneCommand} to clone Google Drive file/folder\nUse /{BotCommands.TarMirrorCommand} to make tar of Google Drive folder\nUse /{BotCommands.UnzipMirrorCommand} to extracts archive Google Drive file", bot, update)
|
||||||
return
|
return
|
||||||
res, size, name = gdriveTools.GoogleDriveHelper().clonehelper(link)
|
res, size, name = gdriveTools.GoogleDriveHelper().clonehelper(link)
|
||||||
if res != "":
|
if res != "":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue