• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • Happy New Year everyone! A new version (1.0.0-beta.16) is out for Linux, fixing an issue that could lock the bot up when using it with TS3. Please visit the resources section or the main page (https://www.sinusbot.com) for the new package.

could not decode downloader output: json: cannot unmarshal number 127.37 into Go struct field YTDLFormat.abr of type int

YURA DEAD

Member
были одни и те же и похожие проблемы в течение долгого времени. только что перешел на youtube-dlc и все работает как часы!

ссылка на репозиторий:
https://github.com/blackjack4494/yt-dlc

вы также можете просто установить youtube-dlc через pip:
python -m pip install --upgrade youtube-dlc

затем просто настройте его в своей конфигурации (/opt/sinusbot/config.ini):
YoutubeDLPath = "youtube-dlc"

ваше здоровье
Thank you, that worked for me as well :D
 

Makaren0

Active Member
Tuvo los mismos y similares problemas durante mucho tiempo. acaba de cambiar a youtube-dlc y todo funciona como un reloj.

enlace al repositorio:
https://github.com/blackjack4494/yt-dlc

también puede simplemente instalar youtube-dlc a través de pip:
python -m pip install --upgrade youtube-dlc

luego simplemente ajústelo en su configuración (/opt/sinusbot/config.ini):
YoutubeDLPath = "youtube-dlc"

salud
Ahora estoy usando este paquete y todo funciona bien en mi bot, solo quería agradecerle y apoyar el uso de este paquete.
 

Mansa

New Member
Use these commands using root in your sinusbot directory (should be / opt / sinusbot),

sudo apt-get update
sudo apt-get install python
cd / opt / sinusbot /
curl -L -O https://github.com/ytdl-org/youtube-dl/releases/download/2021.01.16/youtube-dl
chmod a + rx youtube-dl
chown sinusbot: sinusbot youtube-dl

If you followed the installation guide perfectly then copy and paste, if not tweak it for eg the load command.

Edit: the directories have spaces in them, remove them manually
 

MauriceR

Well-Known Member
Contributor
Use these commands using root in your sinusbot directory (should be / opt / sinusbot),



If you followed the installation guide perfectly then copy and paste, if not tweak it for eg the load command.

Edit: the directories have spaces in them, remove them manually

Probably didn't notice that it has already been solved here, or here
 

ToBoNaToR

Active Member
Finally, the fix is obsolete, at least for me. Can anyone use the sinusbot with youtube-dl-2021.01.16 or youtube-dlc at the moment?
I use the latest docker image with 1.0.0-beta.10-202ee4d and youtube-dl-2021.01.16.

I get the error "ERROR: [VIDEO ID]: Youtube said: Unable to extract video data" when I try to download a video. !yt and !qyt dont work as well, surely because of the same error. The most recent version of youtube-dl (with the fix) is incompatible with sinusbot because of the "cannot unmarshal number" bug discussed in this thread. I tried youtube-dlc (as a file, not the pip version) which is broken as well (the last commit in the github repo was 4 months ago so i don`t expect an update soon).

Youtube must`ve changed something on their end and older versions of youtube-dl don`t work anymore. Many (duplicate and closed) issues on the youtube-dl github repo with "Unable to extract video data" in the log prove this as well. (1, 2, 3, 4, 5)

Does anyone have a solution for this? At the moment Sinusbot is unusable without a working youtube-dl version and the last option seems to be a fix by the Sinusbot developer(s).
 
Last edited:

olokos

Insider
Insider
I agree, the workaround stopped working again just today, also using 2021.01.16 and beta-10 of sinusbot and it's not possible to play youtube songs anymore.

@flyth sorry for bothering, but any news about the next version? :D
 

Clubfan

New Member
The issue is caused by a slight change in youtube-dl's metadata output.
After a refactoring, it stores the 'adr' value as a floating -point number, but sinusbot expects an integer.
I patched youtube-dl and restored the old behaviour.
You can find a patched executable on github: https://github.com/Clubfan22/youtube-dl/releases/tag/2021.04.01-sinusbot
However, if you don't trust me (and really, you shouldn't just execute any code found on the internet!), you can build youtube-dl by yourself from my patched version: https://github.com/Clubfan22/youtube-dl

I don't plan on filing an upstream issue for youtube-dl because it really is a problem caused by sinusbot and should be fixed with a sinusbot update.
 

Alex0441

New Member
The issue is caused by a slight change in youtube-dl's metadata output.
After a refactoring, it stores the 'adr' value as a floating -point number, but sinusbot expects an integer.
I patched youtube-dl and restored the old behaviour.
You can find a patched executable on github: https://github.com/Clubfan22/youtube-dl/releases/tag/2021.04.01-sinusbot
However, if you don't trust me (and really, you shouldn't just execute any code found on the internet!), you can build youtube-dl by yourself from my patched version: https://github.com/Clubfan22/youtube-dl

I don't plan on filing an upstream issue for youtube-dl because it really is a problem caused by sinusbot and should be fixed with a sinusbot update.
Works flawlessly! 🙏
 

TheSinusBotOfTeo997

Donor
is awesome!
The issue is caused by a slight change in youtube-dl's metadata output.
After a refactoring, it stores the 'adr' value as a floating -point number, but sinusbot expects an integer.
I patched youtube-dl and restored the old behaviour.
You can find a patched executable on github: https://github.com/Clubfan22/youtube-dl/releases/tag/2021.04.01-sinusbot
However, if you don't trust me (and really, you shouldn't just execute any code found on the internet!), you can build youtube-dl by yourself from my patched version: https://github.com/Clubfan22/youtube-dl

I don't plan on filing an upstream issue for youtube-dl because it really is a problem caused by sinusbot and should be fixed with a sinusbot update.
Works perfectly, thanks for making that!
 

Blixary

Active Member
The issue is caused by a slight change in youtube-dl's metadata output.
After a refactoring, it stores the 'adr' value as a floating -point number, but sinusbot expects an integer.
I patched youtube-dl and restored the old behaviour.
You can find a patched executable on github: https://github.com/Clubfan22/youtube-dl/releases/tag/2021.04.01-sinusbot
However, if you don't trust me (and really, you shouldn't just execute any code found on the internet!), you can build youtube-dl by yourself from my patched version: https://github.com/Clubfan22/youtube-dl

I don't plan on filing an upstream issue for youtube-dl because it really is a problem caused by sinusbot and should be fixed with a sinusbot update.
Could you please describe how to install it?

I used
cd /usr/local/bin
curl -L https://github.com/Clubfan22/youtube-dl/releases/download/2021.04.01-sinusbot/youtube-dl --output youtube-dl-patch-new
cd /opt/sinusbot/
nano config.ini
and changed YouTubeDLPath to /usr/local/bin/youtube-dl-patch-new,
restarted sinusbot and tried to download a video over the interface, but I says "youtube-dl not available"
 

MauriceR

Well-Known Member
Contributor
Could you please describe how to install it?

I used

and changed YouTubeDLPath to /usr/local/bin/youtube-dl-patch-new,
restarted sinusbot and tried to download a video over the interface, but I says "youtube-dl not available"
chmod o+x /usr/local/bin/youtube-dl-patch-new
 

rikkuz

Member
chmod o+x /usr/local/bin/youtube-dl-patch-new
I have done all the steps but when i try to do command !yt, on the web sinusbot's interface i have an "error". Before the update of clubfan i have an other error "youtube-dl not available". Now the error is: "error". How can i resolve?
 

TeeeJaaay

New Member
The issue is caused by a slight change in youtube-dl's metadata output.
After a refactoring, it stores the 'adr' value as a floating -point number, but sinusbot expects an integer.
I patched youtube-dl and restored the old behaviour.
You can find a patched executable on github: https://github.com/Clubfan22/youtube-dl/releases/tag/2021.04.01-sinusbot
However, if you don't trust me (and really, you shouldn't just execute any code found on the internet!), you can build youtube-dl by yourself from my patched version: https://github.com/Clubfan22/youtube-dl

I don't plan on filing an upstream issue for youtube-dl because it really is a problem caused by sinusbot and should be fixed with a sinusbot update.
Even for me the patched version is working fine ... thx
 

olokos

Insider
Insider
The issue is caused by a slight change in youtube-dl's metadata output.
After a refactoring, it stores the 'adr' value as a floating -point number, but sinusbot expects an integer.
I patched youtube-dl and restored the old behaviour.
You can find a patched executable on github: https://github.com/Clubfan22/youtube-dl/releases/tag/2021.04.01-sinusbot
However, if you don't trust me (and really, you shouldn't just execute any code found on the internet!), you can build youtube-dl by yourself from my patched version: https://github.com/Clubfan22/youtube-dl

I don't plan on filing an upstream issue for youtube-dl because it really is a problem caused by sinusbot and should be fixed with a sinusbot update.
I can confirm this has worked! Thanks man!
 
Top