mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-26 15:56:00 +03:00
[GH-ISSUE #683] Error with queries starting with '-' #451
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#451
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tekbreak on GitHub (Dec 6, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/683
Describe the bug
When executing:
it returns an empty array as the result due to the dash symbol (-) in the beginning of the query string.
As a workaround, I am doubling the dash when it is the first char in the string, so the youtube id "-YkyPojasM" (sample1) is converted to "--YkyPojasM" (sample2)
To Reproduce
Steps to reproduce the behavior:
Additional context
Tested on versions 1.8.1 and 1.8.2
@sigma67 commented on GitHub (Dec 6, 2024):
this is not a ytmusicapi issue. web search returns the same result