mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 12:42:06 +00:00
@ -22,7 +22,7 @@ const fetchFromGenius = async (metadata) => {
|
|||||||
metadata.title
|
metadata.title
|
||||||
)}`;
|
)}`;
|
||||||
let response = await fetch(
|
let response = await fetch(
|
||||||
`https://genius.com/api/search/multi?per_page=5&q=${encodeURI(queryString)}`
|
`https://genius.com/api/search/multi?per_page=5&q=${encodeURIComponent(queryString)}`
|
||||||
);
|
);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user