Merge lp:~jamesh/unity-scope-mediascanner/disable-artist-bio into lp:unity-scope-mediascanner

Proposed by James Henstridge
Status: Merged
Approved by: James Henstridge
Approved revision: 309
Merged at revision: 309
Proposed branch: lp:~jamesh/unity-scope-mediascanner/disable-artist-bio
Merge into: lp:unity-scope-mediascanner
Diff against target: 25 lines (+8/-1)
1 file modified
src/mymusic/music-scope.cpp (+8/-1)
To merge this branch: bzr merge lp:~jamesh/unity-scope-mediascanner/disable-artist-bio
Reviewer Review Type Date Requested Status
Michi Henning (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+287125@code.launchpad.net

Commit message

Disable artist biography download, since the online service always returns an empty biography.

Description of the change

Disable artist biography download, since the online service always returns an empty biography.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michi Henning (michihenning) wrote :

Yes please!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/mymusic/music-scope.cpp'
2--- src/mymusic/music-scope.cpp 2016-02-16 10:04:27 +0000
3+++ src/mymusic/music-scope.cpp 2016-02-25 05:39:21 +0000
4@@ -602,6 +602,13 @@
5 std::string MusicQuery::fetch_biography_sync(const std::string& artist, const std::string &album) const
6 {
7 std::string bio_text;
8+ /* Biography download is currently disabled because the
9+ * dash.ubuntu.com API always returns an empty string (in turn
10+ * because 7digital doesn't return any data).
11+ *
12+ * https://bugs.launchpad.net/bugs/1549616
13+ */
14+#ifdef ENABLE_ARTIST_BIO
15 http::Request::Configuration config;
16 auto uri = core::net::make_uri(
17 "https://dash.ubuntu.com",
18@@ -641,7 +648,7 @@
19 {
20 std::cerr << "Failed to get artist info: " << e.what() << std::endl;
21 }
22-
23+#endif
24 return bio_text;
25 }
26

Subscribers

People subscribed via source and target branches

to all changes: