Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

youtube issues with master git #365

Closed
roughnecks opened this issue Jun 6, 2023 · 1 comment
Closed

youtube issues with master git #365

roughnecks opened this issue Jun 6, 2023 · 1 comment

Comments

@roughnecks
Copy link

roughnecks commented Jun 6, 2023

Describe the bug
youtube search fails when setting cookie_file

[Jun 06 02:10:57 ERROR] bot: command ysearch failed with error: Traceback (most recent call last):
  File "/home/bots/botamusique.git/mumbleBot.py", line 347, in message_received
    self.cmd_handle[command_exc]['handle'](self, user, text, command_exc, argument)
  File "/home/bots/botamusique.git/command.py", line 578, in cmd_yt_search
    results = util.youtube_search(parameter)
  File "/home/bots/botamusique.git/util.py", line 327, in youtube_search
    cookie = parse_cookie_file(cookie_file) if cookie_file else {}
  File "/home/bots/botamusique.git/util.py", line 590, in parse_cookie_file
    cookies[lineFields[5]] = lineFields[6]
IndexError: list index out of range

Also the option youtube_query_cookie is not recognized as valid one.

ERROR:root:Unexpected config items '[bot] youtube_query_cookie'

Affected version
git master as of today

To Reproduce
Steps to reproduce the behavior:

  1. git clone the repo
  2. configure the bot and set both options mentioned earlier
  3. with youtube_query_cookie set, the bot doesn't start
  4. with cookie_file set the bot errors out when doing a !ysearch.

This doesn't happen with latest stable release.

Thanks

@roughnecks
Copy link
Author

The user-agent option isn't accepted as well.
I tested this even in latest release 7.2.3 and still applies.

@azlux azlux closed this as completed Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants