jagrosh / jagrosh/MusicBot

[Bug Report] Autoplaylist: Playlist only picks one song out of list

Open
#261 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
5.8k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Since version 0.2.4, bots using an autoplaylist on startup will add only one song from that playlist. This is regardless of whether the text file consists of playlists or links. If the playlist is in shuffle mode, a random song will be added; if not, only the first song in the text file will be added. If the text file consists of playlist links and is in shuffle mode, a random song from the first playlist link will be added; if not, the first song from the first playlist link will be added.

Manually adding the same playlist file after startup does not have this bug and works as expected.

**To Reproduce**
Steps to reproduce the behavior:
1. Add an autoplaylist to the bot.
2. Shut down the bot
3. Start up the bot
4. Only one song is added to the list (see description above). If Repeat Mode is On, that song is looped repeatedly.

**Expected behavior**
All songs on the autoplaylist should be added, in a random order if shuffle is enabled.

**Version Info:**
- Operating System: VPS running Slackware Linux 14.2 64-bit
- JMusicBot Version: 0.2.4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Reproduce the difference between startup autoplaylist loading and manually adding the same file, then trace those two entry points and compare how playlist items are processed. Done means startup adds every song, preserves shuffle behavior, and does not loop a single song unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
audio-video-rtc, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.