antoniouaa / spotify_bot Goto Github PK
View Code? Open in Web Editor NEWA discord bot that queries the Spotify API for playlists
License: GNU General Public License v3.0
A discord bot that queries the Spotify API for playlists
License: GNU General Public License v3.0
Loading a playlist into the queue does not seem to have the bot play the songs in sequence.
play_from alex newrock
loaded 17 songs
The second song in the queue never started playing, I had to force it by using skip
The exception is thrown when the command $play_from
is called
$yt motherlover
is supposed to play Motherlover by thelonelyisland, link here
What it does instead is error out and spits out
ERROR: motherlover: YouTube said: Unable to extract video data
Ignoring exception in command yt:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 532, in extract
ie_result = self._real_extract(url)
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/youtube.py", line 1910, in _real_extract
'YouTube said: %s' % unavailable_message, expected=True, video_id=video_id)
youtube_dl.utils.ExtractorError: motherlover: YouTube said: Unable to extract video data
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/usr/src/music_bot/music_bot/cogs/music.py", line 110, in yt
await self.playYT(ctx)
File "/usr/src/music_bot/music_bot/cogs/music.py", line 83, in playYT
self.playQueue[0], loop=self.bot.loop
File "/usr/src/music_bot/music_bot/cogs/music.py", line 44, in from_url
None, lambda: ytdl.extract_info(url, download=not stream)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/music_bot/music_bot/cogs/music.py", line 44, in <lambda>
None, lambda: ytdl.extract_info(url, download=not stream)
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 820, in extract_info
self.report_error(compat_str(e), e.format_traceback())
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 625, in report_error
self.trouble(error_message, tb)
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 595, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: motherlover: YouTube said: Unable to extract video data
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/discord/ext/commands/bot.py", line 903, in invoke
await ctx.command.invoke(ctx)
File "/usr/local/lib/python3.6/dist-packages/discord/ext/commands/core.py", line 859, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/usr/local/lib/python3.6/dist-packages/discord/ext/commands/core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: DownloadError: ERROR: motherlover: YouTube said: Unable to extract video data
The playlist <user> <playlist name>
command looks for a playlist whose name contains the substring <playlist name>
, not for exact matches.
It should return a list of playlists containing the substring instead.
The bot downloads a video, plays it back in the voice channel and then leaves it in the root dir. This creates clutter and takes up space needlessly.
Delete the video after playback and do general clean up to free up space.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.