Add attribution to wikipedia artist biographies
This commit is contained in:
parent
8ad56819b2
commit
afb7e1db36
|
@ -242,8 +242,8 @@ void ArtistBiography::FetchWikipediaArticle(int id,
|
||||||
|
|
||||||
qLog(Debug) << "Article url:" << url;
|
qLog(Debug) << "Article url:" << url;
|
||||||
|
|
||||||
NewClosure(reply, SIGNAL(finished()),
|
NewClosure(reply, SIGNAL(finished()), [this, id, reply, wikipedia_url,
|
||||||
[this, id, reply, wikipedia_url, latch]() {
|
wiki_title, latch]() {
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
|
|
||||||
QJson::Parser parser;
|
QJson::Parser parser;
|
||||||
|
@ -261,6 +261,15 @@ void ArtistBiography::FetchWikipediaArticle(int id,
|
||||||
tr("Open in your browser") + "</a></p>";
|
tr("Open in your browser") + "</a></p>";
|
||||||
|
|
||||||
text += html;
|
text += html;
|
||||||
|
|
||||||
|
text += tr("<p>This article uses material from the Wikipedia article "
|
||||||
|
"<a href=\"%1\">%2</a>, which is released under the <a "
|
||||||
|
"href=\"https://clementine-player.org/licenses/by-sa/"
|
||||||
|
"3.0/legalcode.txt\">Creative Commons Attribution-Share-Alike "
|
||||||
|
"License 3.0</a>.</p>")
|
||||||
|
.arg(wikipedia_url)
|
||||||
|
.arg(wiki_title);
|
||||||
|
|
||||||
SongInfoTextView* editor = new SongInfoTextView;
|
SongInfoTextView* editor = new SongInfoTextView;
|
||||||
editor->SetHtml(text);
|
editor->SetHtml(text);
|
||||||
data.contents_ = editor;
|
data.contents_ = editor;
|
||||||
|
|
Loading…
Reference in New Issue