Skip to content

Commit

Permalink
refactor(lyrics-plus): unneeded interpolation (#2524)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 authored Aug 29, 2023
1 parent 55a7a30 commit c1dca3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CustomApps/lyrics-plus/ProviderNetease.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ProviderNetease = (function () {
* @throw "Cannot find track"
*/
async function search(info) {
const searchURL = `https://pyncmd.apis.imouto.in/api/pyncm?module=cloudsearch&method=GetSearchResult&keyword=`;
const searchURL = "https://pyncmd.apis.imouto.in/api/pyncm?module=cloudsearch&method=GetSearchResult&keyword=";

const cleanTitle = Utils.removeExtraInfo(Utils.removeSongFeat(Utils.normalize(info.title)));
const finalURL = searchURL + encodeURIComponent(`${cleanTitle} ${info.artist}`);
Expand Down Expand Up @@ -66,7 +66,7 @@ const ProviderNetease = (function () {
* }}
*/
async function findLyrics(info) {
const lyricURL = `https://pyncmd.apis.imouto.in/api/pyncm?module=track&method=GetTrackLyrics&song_id=`;
const lyricURL = "https://pyncmd.apis.imouto.in/api/pyncm?module=track&method=GetTrackLyrics&song_id=";

const searchResponse = await search(info);
const songID = searchResponse.id;
Expand Down

0 comments on commit c1dca3e

Please sign in to comment.