this extractor needs to implement bridge method to accept bridge requests sent by another extractor. This method receives the track object that requires bridging and the extractor that requested the bridge, just as a precaution to limit whom to accept/deny.
Pseudocode:
public async bridge(track, ext) {
const query = ext?.createBridgeQuery(track) ?? track.title;
const alt = await this.handle(query)
return this.stream(alt.tracks[0])
}
this extractor needs to implement
bridge
method to accept bridge requests sent by another extractor. This method receives the track object that requires bridging and the extractor that requested the bridge, just as a precaution to limit whom to accept/deny.Pseudocode: