This PR adds support for protocol list, which is declared by the registered extractors. The behavior is similar to lavalink. For example, if you need to make youtube search, you can use ytsearch:QUERY_VALUE, which will be routed to the extractor that supports this protocol. If no extractor is found, discord-player switches back to old behavior.
Default extractors such as:
YoutubeExtractor (ytsearch, youtube)
SoundcloudExtractor (scsearch, soundcloud)
SpotifyExtractor (spsearch, spotify)
AppleMusicExtractor (amsearch, applemusic)
support protocols.
Status
[x] These changes have been tested and formatted properly.
[ ] This PR includes only documentation changes, no code change.
Changes
This PR adds support for
protocol
list, which is declared by the registered extractors. The behavior is similar to lavalink. For example, if you need to make youtube search, you can useytsearch:QUERY_VALUE
, which will be routed to the extractor that supports this protocol. If no extractor is found, discord-player switches back to old behavior.Default extractors such as:
ytsearch
,youtube
)scsearch
,soundcloud
)spsearch
,spotify
)amsearch
,applemusic
)support protocols.
Status