Comments (10)
URL encoding appears to have worked. Thanks ^^
from lavalink.
Update
There's a small work-around discovered by @Zenrac to load mixes as expected
https://youtu.be/videoid?list=playlistid
will load all tracks from a mix list, whereas the standard URL (https://youtube.com/watch?v=videoid&list=playlistid
) will only return a single track.
Tried and tested on Lavalink V3, build 562 - Lavaplayer 1.3.7
from lavalink.
~~`https://www.youtube.com/watch?v=v7Srbp8WPMY&list=RDv7Srbp8WPMY`
should normally parse to `https://www.youtube.com/watch?v=v7Srbp8WPMY`~~
from lavalink.
As far as I'm aware, that is intended behavior. When you copy-paste a video from a playlist, you get a link like that, and most of the times the intended use is to play that single video alone.
No, it's not intended
@devoxin what version are you using?
from lavalink.
The dev build you linked me in the JDA server
(https://ci.fredboat.com/viewLog.html?buildId=2252&buildTypeId=Lavalink_Build&tab=artifacts)
from lavalink.
Update: I don't think this issue is limited to mix playlists. URLs such as https://www.youtube.com/watch?v=VYz3VIQeET8&list=PL0syuOXMyw6ao11w7sAbQaLK_ARRn-jyS
only return one track, however if you change the URL to https://www.youtube.com/playlist?list=PL0syuOXMyw6ao11w7sAbQaLK_ARRn-jyS
it returns all of the tracks. RegEx issue?
from lavalink.
I assumed it was intended behavior because depending on how it's configured, it can go both ways. I self host FredBoat and dabBot and dabBot will just play the track, while FredBoat does load the playlist. It would be a regex thing up to the creator of the bot at the end of it.
from lavalink.
(Just to note this is also reproducible on Lavalink V3, Build 475 (02 Jun 18 12:34))
Lavaplayer itself (on a Java bot) loads all tracks from a mix list
from lavalink.
Try properly URL encoding the identifier.
from lavalink.
Bad call:
curl -i -H "Authorization: youshallnotpass" "127.0.0.1:2333/loadtracks?identifier=https://www.youtube.com/watch?v=c5R3lNsNjLs&list=RDc5R3lNsNjLs"
Good call:
curl -i -H "Authorization: youshallnotpass" "127.0.0.1:2333/loadtracks?identifier=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dc5R3lNsNjLs%26list%3DRDc5R3lNsNjLs"
from lavalink.
Related Issues (20)
- `pluginInfo` missing on track model in Lavalink 4.0.1 HOT 2
- Invalid status code for video page response: 400 HOT 1
- Auto delete outdated plugin files HOT 6
- Auto update plugin files HOT 9
- http requests doesnt work for me. (.mp3 urls)
- Feature-Request: "Load multiple local tracks" HOT 8
- No sound from discord bot . Bot is just ending the track HOT 4
- Why does the track get broken after a little bit of high demand? HOT 1
- StopAsync() doesnt change LavaLinkGuildConnection.Currentstate.Currenttrack to null HOT 2
- Loading search results from SoundCloud failed. HOT 1
- No mapping for GET /
- Add audio receiving features HOT 4
- Dispatch event when paused or resumed HOT 1
- Error with YouTube Music videos HOT 2
- Accept raw file from client HOT 2
- docker bug
- Im getting an error HOT 3
- ERROR Invalid status code for youtube embed video id: 500 HOT 2
- I got error While Starting Lavalink
- Issue with connecting to Lavalink 4.0.0. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lavalink.