Androz2091 / Androz2091/discord-player

A tracks stream isnt fetched from the metadata extractor first, and it expects a URL even tho it shoudn't be necessary

Abierto
#1,993 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
638
Forks
197
Merge medio
2 min
PR fusionados (30 d)
1

Descripción

**Describe the bug**
The check for which extractor can stream doesn't prioritize the extractor used for metadata querying. It also uses the tracks URL, which might not exist for certain extractor types.

**To Reproduce**
Steps to reproduce the behavior:
Have multiple extractors, easier when one works purely with protocol

**Expected behavior**
Start first with the extractor that got the metadata, then fallback to other, and also not try to validate with query url as certain extractors don't use it.
https://github.com/Androz2091/discord-player/blob/df5744d40a3591a551a97dcf740759e841f98caa/packages/discord-player/src/queue/GuildQueuePlayerNode.ts#L985-L1003

**Screenshots**

![Image](https://github.com/user-attachments/assets/36c62e56-ef8f-49a7-9280-21ff5b55b172)

**Please complete the following information:**
- Node Version: 22.11.0
- Discord Player Version: 7.0.0+
- Discord.js Version: 14.19.3

**Additional context**

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.