Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

play not working from example code #37

Open
args-s opened this issue Nov 15, 2021 · 1 comment
Open

play not working from example code #37

args-s opened this issue Nov 15, 2021 · 1 comment

Comments

@args-s
Copy link

args-s commented Nov 15, 2021

When using the default music code in Readme I get 2 exceptions when using play(). Upates to both youtube and discord.py seem to be the issues for this.

1)

\DiscordUtils\Music.py", line 196, in play
source = discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(self.music.queue[self.ctx.guild.id][0].source, **self.ffmpeg_opts))

A symptom of an exception from discord.py but it's broken the play function in Music.py.

2) Dislike Count

site-packages\DiscordUtils\Music.py", line 92, in get_video_data
dislikes = data["dislike_count"]
KeyError: 'dislike_count'

Stupid youtube updates.

@pintermor9
Copy link

I've made a fixed fork, if you want to use it: https://github.com/pintermor9/disutils

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants