jagrosh / jagrosh/MusicBot

[Bug Report] "Error loading: null" when passing link from Watch Later playlist

Open
#636 1 comment 0 reactions 0 assignees View on GitHub
lavaplayer
Dominant language
Java
Stars
5.8k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
YouTube URLs with the query parameter "list=WL" (User's Watch Later playlist) result in an "Error loading: null" message.

**To Reproduce**
Steps to reproduce the behavior:
1. Try the play command with any YouTube URL that has the query parameter "list=WL" in it

**Expected behavior**
The query parameter `list` should be ignored if its value is `WL`.
For example:

What the user puts in: `!p https://youtu.be/uN9tulBHr8Y?list=WL`
Should be processed as if he put in: `!p https://youtu.be/uN9tulBHr8Y`

You could use a regex to remove the query parameter from the URL before it gets processed further
Regex: `(?:\?|&)list=WL`

**Screenshots**
![image](https://user-images.githubusercontent.com/40198445/111037610-2ab39280-8425-11eb-89f2-3489b67a02ca.png)

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

JMusicBot Information:
Version = 0.3.3
Owner = 237178792362246144
Prefix = !
AltPrefix = null
MaxSeconds = 0
NPImages = false
SongInStatus = false
StayInChannel = false
UseEval = false
UpdateAlerts = true

Dependency Information:
JDA Version = 4.2.0_227
JDA-Utilities Version = 3.0.5
Lavaplayer Version = 1.3.67

Runtime Information:
Total Memory = 171
Used Memory = 55

Discord Information:
ID = 790183313268277298
Guilds = 2
Users = 1
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the play command's URL-processing path and reproduce the issue with a YouTube URL containing `list=WL`. Trace how that query parameter is handled, then verify that the URL loads as if the parameter were absent and that other playlist parameters still behave as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.