Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
JuK
Commits
b89e8234
Commit
b89e8234
authored
Mar 28, 2021
by
Michael Pyne
Browse files
lyrics: Disable lyrics requests as the site seems to be down.
parent
a581c9f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
lyricswidget.cpp
View file @
b89e8234
...
...
@@ -75,8 +75,16 @@ void LyricsWidget::makeLyricsRequest()
return
;
}
m_title
=
m_playingFile
.
tag
()
->
artist
()
+
" – "
+
m_playingFile
.
tag
()
->
title
();
setHtml
(
i18n
(
"<i>Loading...</i>"
));
// lyrics.fandom.com seems to be unavailable as well now so give a better error message
// and stop pinging the server
if
(
1
)
{
setHtml
(
i18n
(
"<i>Lyrics are currently unavailable for %1 (no available lyrics provider)</i>"
).
arg
(
m_title
));
return
;
}
QUrl
listUrl
=
BASE_LYRICS_URL
;
listUrl
.
setPath
(
"/api.php"
);
...
...
@@ -88,7 +96,6 @@ void LyricsWidget::makeLyricsRequest()
listUrlQuery
.
addQueryItem
(
"song"
,
m_playingFile
.
tag
()
->
title
());
listUrl
.
setQuery
(
listUrlQuery
);
m_title
=
m_playingFile
.
tag
()
->
artist
()
+
" – "
+
m_playingFile
.
tag
()
->
title
();
connect
(
m_networkAccessManager
,
SIGNAL
(
finished
(
QNetworkReply
*
)),
this
,
SLOT
(
receiveListReply
(
QNetworkReply
*
)));
m_networkAccessManager
->
get
(
QNetworkRequest
(
listUrl
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment