jagrosh / jagrosh/MusicBot

[Bug Report] Error in the console if the title is empty

Open
#711 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Java
Stars
5.8k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
(Sorry for my english, i'm french. I learn) The bot makes an error when the nowplaying command is executed, it doesn't reply if the title is empty.

**To Reproduce**
Steps to reproduce the behavior:
1. Play this link (Radio, NRJ France) : https://f5-pa6-2.nrjaudio.fm/fr/30001/mp3_128.mp3?origine=radio.net&cdn_path=adswizz_lbs7&access_token=0e72ef4e6f454f58925e29309020318d
2. Send the nowplaying command. The bot will not respond.
3. See the console
![Capture d’écran 2021-06-11 110837](https://user-images.githubusercontent.com/82811865/121612061-63efb300-caa5-11eb-8a16-70b236095507.png)

**Expected behavior**
The bot should answer the command, even if there is no title, or, give a temporary title. Like "No title".

**Screenshots**
When i add the song :
![Capture d’écran 2021-06-11 111213](https://user-images.githubusercontent.com/82811865/121612322-e6787280-caa5-11eb-8e95-6a8cdbe3fd98.png)
When i execute the np command :
![Capture d’écran 2021-06-11 110837](https://user-images.githubusercontent.com/82811865/121612061-63efb300-caa5-11eb-8a16-70b236095507.png)

**Debug Info**
```
System Properties:
java.version = 11.0.11
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.version = 11
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 11.0.11+9-Ubuntu-0ubuntu2.20.10
java.specification.version = 11
os.arch = amd64
os.name = Linux

JMusicBot Information:
Version = 0.3.4
Owner = 572651719109115904
Prefix = ;
AltPrefix = @mention
MaxSeconds = 0
NPImages = false
SongInStatus = false
StayInChannel = false
UseEval = true
UpdateAlerts = true

Dependency Information:
JDA Version = 4.2.1_253
JDA-Utilities Version = 3.0.5
Lavaplayer Version = 1.3.75

Runtime Information:
Total Memory = 37
Used Memory = 21

Discord Information:
ID = 776019442538643476
Guilds = 8
Users = 3
```

**Additional context**
none.

Thanks to everyone for contributing to this great project!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the provided NRJ France stream and the nowplaying command, then trace the command's handling of a missing title and the console error shown in the report. Done means nowplaying responds normally when the track has no title, using either a fallback title or another valid response.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
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.