Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
else:
sendMessage(chat_id, not_supported_links % link)
else:
sendMessage(chat_id, not_supported_links % link)
except FileNotFoundError:
sendMessage(
chat_id, "Resend link please...",
reply_to_message_id = message_id
)
except error.TimedOut:
sendMessage(chat_id, "Retry after a few minutes")
except exceptions.QuotaExceeded:
sendMessage(chat_id, "Please send the link %s again :(" % link)
except exceptions.AlbumNotFound:
sendMessage(chat_id, "Album %s didn't find on Deezer :(" % link)
sendMessage(chat_id, "Try to search it throught inline mode or search the link on Deezer")
except Exception as a:
logging.error(a)
logging.error(quality)
logging.error(link)
sendMessage(
chat_id, "OPS :( Something went wrong please send to @An0nimia this link: {} {}, if this happens again".format(link, quality)
)
if done == 1:
return
image = image_resize(
check_image(url, ids, kind), 90
)
mode = downloa.download_trackdee
z = mode(
link,
quality = quality,
recursive_quality = True,
recursive_download = True,
not_interface = not_interface
)
except (exceptions.TrackNotFound, exceptions.NoDataApi):
sendMessage(chat_id, "Track doesn't %s exist on Deezer or maybe it isn't readable, it'll be downloaded from YouTube..." % link)
try:
if "spotify" in link:
mode = dwytsongs.download_trackspo
elif "deezer" in link:
mode = dwytsongs.download_trackdee
z = mode(
link,
recursive_download = True,
not_interface = not_interface
)
youtube = True