Skip to content

Commit

Permalink
fix(lyrics-plus/genius): remove encodeURIComponent (#3131)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatdahopper authored Aug 8, 2024
1 parent 3d61360 commit 7670f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CustomApps/lyrics-plus/ProviderGenius.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const ProviderGenius = (() => {
let lyrics;
let hits;
for (const title of titles) {
const query = new URLSearchParams({ per_page: 20, q: encodeURIComponent(`${title} ${info.artist}`) });
const query = new URLSearchParams({ per_page: 20, q: `${info.artist} ${title}` });
const url = `https://genius.com/api/search/song?${query.toString()}`;

const geniusSearch = await Spicetify.CosmosAsync.get(url);
Expand Down

0 comments on commit 7670f7c

Please sign in to comment.