Merge lp:~vthompson/music-app/remix-use-art-property-in-playlists into lp:music-app/remix

Proposed by Victor Thompson
Status: Merged
Approved by: Andrew Hayzen
Approved revision: 732
Merged at revision: 731
Proposed branch: lp:~vthompson/music-app/remix-use-art-property-in-playlists
Merge into: lp:music-app/remix
Diff against target: 13 lines (+2/-1)
1 file modified
playlists.js (+2/-1)
To merge this branch: bzr merge lp:~vthompson/music-app/remix-use-art-property-in-playlists
Reviewer Review Type Date Requested Status
Andrew Hayzen Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+241223@code.launchpad.net

Commit message

* Use art property for playlists

Description of the change

Use art property for playlists. Currently we use the album/artist lookup, but that isn't always the desired method. If the album/artist isn't found via lookup, surely the embedded cover art should be used. Matter of fact, the embedded cover art is actually the preferred source. Thus, the app shouldn't default to the album/artist lookup. This is probably the last place we have this done incorrectly (I hope).

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

I think you need to modify the find() function to respect the new changes of row?

review: Needs Fixing
731. By Victor Thompson

Update find() utility function

Revision history for this message
Victor Thompson (vthompson) wrote :

Right, right. Thanks, this has been updated.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
732. By Victor Thompson

Since the art property is always unique, still populate the author and album

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

LGTM :) Hopefully the last occurrence of not using art lol ;)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'playlists.js'
2--- playlists.js 2014-10-29 00:43:56 +0000
3+++ playlists.js 2014-11-10 03:03:38 +0000
4@@ -262,7 +262,8 @@
5 && i < (max || rs.rows.length); i++) {
6 var row = {
7 author: rs.rows.item(i).author,
8- album: rs.rows.item(i).album
9+ album: rs.rows.item(i).album,
10+ art: musicStore.lookup(rs.rows.item(i).filename).art
11 }
12
13 if (find(res, row) === null) {

Subscribers

People subscribed via source and target branches