GithubHelp home page GithubHelp logo

antoniouaa / spotify_bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 120 KB

A discord bot that queries the Spotify API for playlists

License: GNU General Public License v3.0

Python 96.65% Dockerfile 3.35%

spotify_bot's People

Contributors

antoniouaa avatar erikoui avatar

Watchers

 avatar  avatar

Forkers

erikoui

spotify_bot's Issues

`play_from` doesn't seem to play queued songs

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

`yt` command errors when given a single argument

$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

`playlist` command only returns first result

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.

Clear videos downloaded after the song has played

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.