How to use the deezloader.exceptions.NoDataApi function in deezloader

To help you get started, we’ve selected a few deezloader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github An0nimia / DeezloaderAn0n_bot / dwsongs-normal.py View on Github external
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