From 2022e98df9784c1efc48e0adcb5ddc472f7901eb Mon Sep 17 00:00:00 2001 From: Evan Harris Date: Sun, 8 Mar 2020 08:35:51 -0500 Subject: [PATCH] Disable now defunct chartlyrics lookups --- .../main/java/org/airsonic/player/ajax/LyricsService.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/airsonic-main/src/main/java/org/airsonic/player/ajax/LyricsService.java b/airsonic-main/src/main/java/org/airsonic/player/ajax/LyricsService.java index d6956339..c83103f9 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/ajax/LyricsService.java +++ b/airsonic-main/src/main/java/org/airsonic/player/ajax/LyricsService.java @@ -66,6 +66,13 @@ public class LyricsService { */ public LyricsInfo getLyrics(String artist, String song) { LyricsInfo lyrics = new LyricsInfo(); + + // chartlyrics.com has been offline for more than a year and no indications it is coming back, so to avoid + // continual fetch attempts (and errors about them in the log), bypass this pending replacement or removal + if (true) { + return lyrics; + } + try { artist = StringUtil.urlEncode(artist);