*sLyrics<<"Error while fetching lyrics: "<<curl_easy_strerror(code);
sLyrics->Flush();
if(wCurrent==sLyrics)
sLyrics->Refresh();
lyrics_downloader=0;
lyrics_ready=1;
pthread_exit(NULL);
}
@ -330,10 +314,7 @@ void *GetLyrics(void *song)
if(result=="Not found")
{
*sLyrics<<result;
sLyrics->Flush();
if(wCurrent==sLyrics)
sLyrics->Refresh();
lyrics_downloader=0;
lyrics_ready=1;
pthread_exit(NULL);
}
@ -354,17 +335,11 @@ void *GetLyrics(void *song)
output<<result;
output.close();
}
sLyrics->Flush();
if(wCurrent==sLyrics)
sLyrics->Refresh();
lyrics_downloader=0;
lyrics_ready=1;
pthread_exit(NULL);
# else
else
*sLyrics<<"Local lyrics not found. As ncmpcpp has been compiled without curl support, you can put appropriate lyrics into ~/.lyrics directory (file syntax is \"ARTIST - TITLE.txt\") or recompile ncmpcpp with curl support.";