DuckBoss/JJMumbleBot

[Help] Not receiving any results or errors from !ytsearch

Closed this issue · 4 comments

Please have a look at the F.A.Q. for solutions to common problems before posting an issue!

Describe the bug
Not receiving any results or errors, nothing in the logs, when using !ytsearch

To Reproduce
Steps to reproduce the behavior:

  1. Install dependencies
  2. CInstall v4.3.1
  3. Configure and launch bot
  4. Attempt to use !ytsearch and get nothing

Expected behavior
Results appear

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Ubuntu 16.04 LTS
  • Version 4.3.1
  • Python Version: 3.7.9

Additional context
These screenshots were while the script were running in verbose mode, yet nothing is logged.

Youtube is constantly changing it's infrastructure which keeps breaking features related to youtube searches and streaming.
A couple months ago I had to modify and use an external library to get youtube search functionality working after an update to Youtube page loading broke the previous implementation, so I am assuming they changed it again and I will review it.

Thanks for bringing this to my attention, I'll look into it soon and try to fix it in the next update.

Can confirm this on my setup. Same behaviour.

Version information:

JJMumbleBot 4.3.1

$ python3.7 -V
Python 3.7.9

$ vlc --version
VLC media player 3.0.11 Vetinari (revision 3.0.11-0-gdc0c5ced72)

$ ffmpeg --version
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)

$ youtube-dl --version
2020.11.26
2020.12.2
2020.12.7

Absolutely nothing in the logs other than the command received, also not when launching the bot with -verbose.
Changing the youtube-dl dependency as listed in the version info doesn't change anything.

Soundboard seems to work fine. \o/

Absolutely nothing in the logs other than the command received, also not when launching the bot with -verbose.

Yes, currently logging is mostly used for core functions of the bot and hasn't been extensively used in plugins to debug
commands. This is something I'll look into and work on so that -verbose logging has more details with plugin processing.
I'll work on updating the logging for plugins sometime next week when my college exams are done.

Changing the youtube-dl dependency as listed in the version info doesn't change anything.

This isn't a problem with youtube-dl this time. It's an issue directly related to how youtube generates the web
page for searches, and I am working on updating the web parsing to fix this.

I've fixed the !ytsearch command issue in the newest PR, which will be merged and released in v4.3.2 soon.