[Bug Report] bot can't play shorts video
- Dominant language
- Java
- Stars
- 5.8k
- Forks
- 2.8k
- PR merge metrics
- No merged PRs in 30d
Description
### Bug Description
bot can't play shorts video.
This sounds like a really simple issue since YouTube Shorts were released few ~~years~~ months ago, but I couldn't find a same issue by searching "short" or "shorts". so I'm reporting this.
Sorry if there's already the same issue that I missed.
### Steps to Reproduce
1. !play https://www.youtube.com/shorts/V6Qipms13VE
2. bot says "Error loading: Unknown file format."
### Expected Result
bot starts playing shorts video just like usual YouTube video.
### Debug Output
```
System Properties:
java.version = 11.0.13
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.version = 11
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 11.0.13+8-Ubuntu-0ubuntu1.20.04
java.specification.version = 11
os.arch = amd64
os.name = Linux
JMusicBot Information:
Version = 0.3.6
Owner = 241578268749201408
Prefix = !
AltPrefix = null
MaxSeconds = 0
NPImages = false
SongInStatus = false
StayInChannel = true
UseEval = false
UpdateAlerts = true
Dependency Information:
JDA Version = 4.3.0_324
JDA-Utilities Version = 3.0.5
Lavaplayer Version = 1.3.78
Runtime Information:
Total Memory = 17
Used Memory = 13
Discord Information:
ID = 418666605262798848
Guilds = 12
Users = 5
```
### Additional Info
You can workaround this issue by changing the URL like following:
https://www.youtube.com/shorts/V6Qipms13VE
-> https://www.youtube.com/watch?v=V6Qipms13VE
### Checklist
- [X] I have looked for information about this [within the documentation](https://jmusicbot.com/)
- [X] I have searched for similar issues [on the issues page](https://github.com/jagrosh/MusicBot/issues?q=is%3Aissue)
- [X] I am running the latest version of the bot: 
Contributor guide
No contributing guide indexed for this repository
Research direction
Begin with the !play command's URL handling and the Lavaplayer integration; reproduce the failure with the supplied Shorts URL and compare it with the watch URL workaround. Done means the supplied /shorts URL loads and plays through the bot without requiring URL conversion, with existing playback behavior preserved.
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
- 45/100