-
Notifications
You must be signed in to change notification settings - Fork 3
Upon restarting bot, saved songs on queue will not play #13
Comments
Hi, the issue is that the song file name the bot is looking for is not existing: The queue is saved in a json file (queue.json) located in "/usr/src/musicbot/data/xxxxxxxxxxxxxxxxxx/" It might be caused by a mismatch between the file name stored in the json file and the files real name (usr/src/musicbot/audio_cache/) Would it be possible to provide me with a dump of the queue.json and list of the audio_cache content (ls > audio_cache.txt)? |
Hmm, I don't I will be able to because there is no other directories in "/usr/src". Another factor that might have caused is this is because I made it so the bot deletes the audio cache after it finishes playing the song in the queue - by restarting the bot it then caused this error since the cached files are gone. |
Seems setting As of yet, I do not have a solution. |
Alright, at least we got that issue solved. |
Queued files are now redownloaded if deleted by "SaveVideos = no".
I have pushed a fix. Try to grab the new docker image and see if it doesn't resolve the issue for you :) |
Will check it out as soon as I have free time :) |
Do you have a discord server for testing? I would be willing to help around to test new features. |
WARNING: Failed to get entry, retrying Traceback (most recent call last): File "/usr/src/musicbot/musicbot/player.py", line 346, in _play entry = await self.playlist.get_next_entry() File "/usr/src/musicbot/musicbot/playlist.py", line 397, in get_next_entry return await entry.get_ready_future() File "/usr/src/musicbot/musicbot/entry.py", line 184, in _download extractor = os.path.basename(self.expected_filename).split('-')[0] File "/usr/lib/python3.6/posixpath.py", line 144, in basename p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType Traceback (most recent call last): File "/usr/src/musicbot/musicbot/entry.py", line 184, in _download extractor = os.path.basename(self.expected_filename).split('-')[0] File "/usr/lib/python3.6/posixpath.py", line 144, in basename p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType Traceback (most recent call last): File "/usr/src/musicbot/musicbot/entry.py", line 184, in _download extractor = os.path.basename(self.expected_filename).split('-')[0] File "/usr/lib/python3.6/posixpath.py", line 144, in basename p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType Future exception was never retrieved future: <Future finished exception=TypeError('expected str, bytes or os.PathLike object, not NoneType',)> Traceback (most recent call last): File "/usr/src/musicbot/musicbot/entry.py", line 184, in _download extractor = os.path.basename(self.expected_filename).split('-')[0] File "/usr/lib/python3.6/posixpath.py", line 144, in basename p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType
The text was updated successfully, but these errors were encountered: