Comments (6)
I'll try to reproduce it locally, any informations about when or how it happens will help a lot
from vulkan.
Ok, so here are the setps to reproduce it:
- In the config file, set
SHOULD_AUTO_DISCONNECT_WHEN_ALONE = False
- Play 2 songs ( the ones I played where https://www.youtube.com/watch?v=hgr4b-ve6XU&ab_channel=ArthurSena & https://www.youtube.com/watch?v=h8YZMT94rR4&t=7665s&ab_channel=smugkat )
- Set Loop = all
- Wait
- At some point, the bot will stop playing music and start spamming
🎧 Song playing now
messages, skipping the songs like they were 0 minutes long.
from vulkan.
How long do you usually wait until the bot gets this behavior?
I've fixed some edge issues I've run into over the past few days, but nothing that seems to be related to your issue, and looking through the code I couldn't find a situation that causes this issue.
Maybe the problem is the music source expires, songs downloaded by the Bot don't actually get downloaded, the Bot just takes a URL to a server and passes that URL to discord to play, as you can see in this code below.
Maybe after some time that URL can become invalid and the music actually takes 0 seconds to play.
Can you download the commits I made over the past few days and try to find your error again?
Just for you to better understand how the execution works, look for the PlayerProcess.py file in the Parallelism folders, in this class there are two functions that call each other, __playNext() and __playSong(song)
The second tells Discord to play the song and after finishing the song it calls the __playNext function, this checks if there is another song to be played and calls the __playSong function
from vulkan.
This is an example of a song.source, if you look closely, there's this parameter in the URL expire=1674758495
, and if you convert that epoch value to a time, it's closer to 6 hours from now, so I think in 6 hours the Bot won't be able to play the songs, I'm going to try this theory and if it's true, I'm going to fix it.
Also, if you put this URL in your browser, you will hear a song
from vulkan.
The problem is exactly with this url, i already uploaded a patch to fix this error, in this commit
If you got any other problems, don't mind asking
from vulkan.
Thanks a lot!
Great jib!
from vulkan.
Related Issues (20)
- Bot fails to play certain Youtube videos HOT 2
- Bot does not like mobile Youtube links (m.youtube.com) HOT 1
- Bug
- Add autoplay? HOT 3
- [Enhancement]: Docker comtainerization HOT 2
- Bug HOT 2
- Bot goes to "sleeping" state immediately after starting playback HOT 3
- Bug HOT 1
- Googlevideo returning 403 forbiddenBug HOT 4
- Bug ImportError: cannot import name 'SlashCommandOptionType' from 'discord.enums' HOT 4
- Bot searches for YT Song instead of actually playing the one on Spotify. HOT 2
- bot not showing music commands HOT 2
- When I try to queue a Spotify playlist it doesn't work... HOT 3
- [Enhancement] Add custom command HOT 3
- [Suggestion] Soundcloud and Local File support HOT 2
- [Suggestion] Make the bot as administrator HOT 2
- Improper token has been passed HOT 4
- Bot won't play Deezer links gotten from the Share button HOT 5
- "This interaction failed" - Permission Issue
- Bug URL could not be processed with spotify link
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulkan.