Skip to content

Commit

Permalink
Remove MusixMatch support.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Oct 31, 2024
1 parent 320ded4 commit 623940e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 51 deletions.
18 changes: 0 additions & 18 deletions src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,6 @@ lyrics
content = "div[class^=Lyrics__Container]"
}
}

MusixMatch
{
search
{
url = "https://www.musixmatch.com/search/%s"
json = false
select = "a.title[href*=/lyrics/]"
}
parse
{
title = "h1"
author = "h2 span a"
content = "div.mxm-lyrics > span"
}
}

MusicMatch = ${lyrics.MusixMatch}

LyricsFreak
{
Expand Down
33 changes: 0 additions & 33 deletions src/test/java/com/jagrosh/jlyrics/LyricsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,39 +88,6 @@ public void geniusTest() throws InterruptedException, ExecutionException
assertNotNull(lyrics.getSource());
}

@Test
public void musixmatchTest() throws InterruptedException, ExecutionException
{
LyricsClient client = new LyricsClient("MusixMatch");

Lyrics lyrics = client.getLyrics("ellie goulding lights").get();
assertNotNull(lyrics);
assertNotNull(lyrics.getTitle());
assertNotNull(lyrics.getAuthor());
assertNotNull(lyrics.getContent());
assertNotNull(lyrics.getSource());

lyrics = client.getLyrics("jklsjdgv89y32hr9").get();
assertNull(lyrics);

lyrics = client.getLyrics("smooth criminal").get();
assertNotNull(lyrics);
assertNotNull(lyrics.getTitle());
assertNotNull(lyrics.getAuthor());
assertNotNull(lyrics.getContent());
assertNotNull(lyrics.getSource());
}

@Test
public void musicmatchTest() throws InterruptedException, ExecutionException
{
LyricsClient client = new LyricsClient("MusicMatch");

Lyrics lyrics = client.getLyrics("smooth criminal").get();
assertNotNull(lyrics);
assertNotNull(lyrics.getTitle());
}

@Test
public void lyricsfreakTest() throws InterruptedException, ExecutionException
{
Expand Down

0 comments on commit 623940e

Please sign in to comment.