Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quoted search strings in yewtube causes TypeError in stream['url'] #1293

Open
oceanthunder opened this issue Oct 3, 2024 · 0 comments
Open

Comments

@oceanthunder
Copy link

oceanthunder commented Oct 3, 2024

Issue / Suggestion

When searching for a term with quotes using yewtube, an error occurs while preloading streams. The search works after pressing Ctrl+C, but without intervention, it throws a TypeError: 'NoneType' object is not subscriptable in streams.py.

Command Entered:

/its raining tacos 'topic'

The 'topic' parameter is added to get the audio version of a music file.

Expected Behavior

The search should correctly handle terms enclosed in quotes without needing to press Ctrl+C or encountering errors, and the appropriate audio stream should preload without issues.

Actual Behavior

The program throws a TypeError when trying to access stream['url'], indicating that the stream object is None. After pressing Ctrl+C, the search results are displayed correctly, but the error indicates improper handling of streams during the preloading process.

Environment

  • yewtube version: 2.10.4
  • yt_dlp version: 2024.08.06
  • Python version: 3.12.6 (main, Sep 8 2024, 13:18:56) [GCC 14.2.1 20240805]
  • Processor: x86_64
  • Machine type: x86_64
  • Architecture: 64bit, ELF
  • Platform: Linux-6.10.10-arch1-1-x86_64-with-glibc2.40
  • sys.stdout.enc: utf-8
  • default enc: utf-8
  • Config dir: /home/Sahil/.config/mps-youtube
  • dbus: None
  • glib: False
  • Terminal: Alacritty
  • Shell: /bin/bash
  • Language: en_US.UTF-8
  • OS: Arch Linux (6.10.10-arch1-1)
  • Music Player: VLC (3.0.21)

Error

2024-10-03_11-16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant