Skip to content

Commit

Permalink
fix: wrap video id with quotations when searching so it doesn't fail …
Browse files Browse the repository at this point in the history
…when it starts with special characters like a '-' symbol
  • Loading branch information
talmobi committed Aug 20, 2024
1 parent d92cba2 commit 6a19118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ function _parseVideoInitialData ( responseText, callback )
if (!video.description || !video.timestamp || !video.seconds || !video.views) {
setTimeout(function () {
search( {
query: `${video.videoId}`,
query: `"${video.videoId}"`,
options: {
RETRY_INTERVAL: 1000
},
Expand Down

0 comments on commit 6a19118

Please sign in to comment.