|
Greetings! I am the creator of Flowease and I require assistance regarding the proper handling of playlists. I have observed that the official extractor has linked various types such as songs, playlists, and albums to the source. However, third-party extractors do not have access to these classes. My current strategy involves generating a distinctive string and comparing it to ascertain if the request is for a playlist. However, I am open to adopting a type-based solution for easier maintenance. Thank you! |
Answered by
twlite
Jul 5, 2023
Replies: 1 comment 3 replies
|
it has import { BaseExtractor, Playlist,Track } from "discord-player" |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's up to you on what to return from your extractor.
QueryTypeconstant is for discord-player's internal implementation of extractors, which has been around for quite a while. At the moment, you cannot extendQueryTypevalues so you have to implement the validator yourself. However, you are able to target a specific extractor to execute by usingext:EXTRACTOR_IDassearchEnginevalue.