Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Commit

Permalink
Small Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
1nikolas committed Sep 11, 2020
1 parent 5f90549 commit 3cf6518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function getSongInfo() {
currentSong = p.mainWindowTitle;

console.log(p.mainWindowTitle);
getMusixmatchLyricUrl(currentSong.replace("?", "*"));
getMusixmatchLyricUrl(currentSong.replaceAll("?", "*"));
setLyrics("", "Loading...")
}

Expand All @@ -112,6 +112,7 @@ function getSongInfo() {
function getMusixmatchLyricUrl(songName) {
request({ uri: "https://www.musixmatch.com/search/" + songName },
function (error, response, body) {
console.log("https://www.musixmatch.com/search/" + songName)
if (error != null) {
//error
console.log('getMusixmatchLyricUrl error')
Expand Down

0 comments on commit 3cf6518

Please sign in to comment.