~music-app-dev/music-app/remix

« back to all changes in this revision

Viewing changes to music-app.qml

  • Committer: Tarmac
  • Author(s): Victor Thompson
  • Date: 2014-09-20 15:41:33 UTC
  • mfrom: (612.2.5 use-model-art-property)
  • Revision ID: tarmac-20140920154133-zdkjm4tx8loz89c1
Use art property to allow mediascanner2 to determine if embedded art exists.

Approved by Andrew Hayzen, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
            songsAlbumArtistModel.album = decodeURIComponent(split[1]);
218
218
 
219
219
            // Add album to recent list
220
 
            Library.addRecent(songsAlbumArtistModel.album, songsAlbumArtistModel.artist, null, songsAlbumArtistModel.album, "album")
 
220
            Library.addRecent(songsAlbumArtistModel.album, songsAlbumArtistModel.artist, songsAlbumArtistModel.art, songsAlbumArtistModel.album, "album")
221
221
            mainView.hasRecent = true
222
222
            recentModel.filterRecent()
223
223
        }
657
657
    function makeDict(model) {
658
658
        return {
659
659
            album: model.album,
660
 
            art: "image://albumart/artist=" + model.author + "&album=" + model.album,
 
660
            art: model.art,
661
661
            author: model.author,
662
662
            filename: model.filename,
663
663
            title: model.title