Merge lp:~vthompson/music-app/fix-blank-cover-art-and-misc into lp:music-app/trusty

Proposed by Victor Thompson
Status: Merged
Approved by: Daniel Holm
Approved revision: 34
Merged at revision: 33
Proposed branch: lp:~vthompson/music-app/fix-blank-cover-art-and-misc
Merge into: lp:music-app/trusty
Diff against target: 72 lines (+10/-5)
4 files modified
LibraryLoader.qml (+7/-2)
MusicTracks.qml (+1/-1)
debian/changelog (+1/-1)
music-app.qml (+1/-1)
To merge this branch: bzr merge lp:~vthompson/music-app/fix-blank-cover-art-and-misc
Reviewer Review Type Date Requested Status
Daniel Holm Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+170721@code.launchpad.net

Commit message

Changes:
* Fix icons and images when cover art is not available.
* Fix issue with scrobble that prevented the next track from being played.
* Place the current path at the bottom of the screen in the LibraryLoader so it is always visible.

Description of the change

Changes:
* Fix icons and images when cover art is not available.
* Fix issue with scrobble that prevented the next track from being played.
* Place the current path at the bottom of the screen in the LibraryLoader so it is always visible.

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)
34. By Victor Thompson

for some reason extracting deb files do not like invalid email addresses.

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
Daniel Holm (danielholm) wrote :

It looks great.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'LibraryLoader.qml'
2--- LibraryLoader.qml 2013-06-16 17:09:19 +0000
3+++ LibraryLoader.qml 2013-06-21 00:55:29 +0000
4@@ -100,7 +100,6 @@
5 ListView {
6 id: folderSelecterList
7 anchors.fill: parent
8- anchors.topMargin: units.gu(3)
9
10 model: folderModel
11 delegate: folderSelecterDelegate
12@@ -178,7 +177,11 @@
13 Component.onCompleted: {
14 if (!model.isDir) {
15 console.log("Debug: Scanner fileDelegate onComplete")
16- Library.setMetadata(filePath, trackTitle, trackArtist, trackAlbum, "image://cover-art/" + filePath, trackYear, trackNumber, trackLength)
17+ if ("" === trackCover) {
18+ Library.setMetadata(filePath, trackTitle, trackArtist, trackAlbum, "", trackYear, trackNumber, trackLength)
19+ } else {
20+ Library.setMetadata(filePath, trackTitle, trackArtist, trackAlbum, "image://cover-art/" + filePath, trackYear, trackNumber, trackLength)
21+ }
22 }
23 }
24 }
25@@ -189,6 +192,8 @@
26 Rectangle {
27 width: parent.width
28 height: units.gu(3)
29+ anchors.bottom: parent.bottom
30+ anchors.bottomMargin: units.gu(8)
31 Label {
32 id: currentpath
33 text: folderModel.path
34
35=== modified file 'MusicTracks.qml'
36--- MusicTracks.qml 2013-06-19 12:08:44 +0000
37+++ MusicTracks.qml 2013-06-21 00:55:29 +0000
38@@ -177,7 +177,7 @@
39 property string cover: model.cover
40 property string length: model.length
41 property string file: model.file
42- icon: cover === "" ? (file.match("\\.mp3") ? Qt.resolvedUrl("images/audio-x-mpeg.png") : Qt.resolvedUrl("images/audio-x-vorbis+ogg.png")) : "image://cover-art/"+file
43+ icon: track.cover === "" ? (track.file.match("\\.mp3") ? Qt.resolvedUrl("images/audio-x-mpeg.png") : Qt.resolvedUrl("images/audio-x-vorbis+ogg.png")) : "image://cover-art/"+file
44 iconFrame: false
45 Label {
46 id: trackTitle
47
48=== modified file 'debian/changelog'
49--- debian/changelog 2013-06-18 12:49:22 +0000
50+++ debian/changelog 2013-06-21 00:55:29 +0000
51@@ -21,7 +21,7 @@
52
53 * Changing name of application to ubuntu-music-app
54
55- -- Daniel Holm <daniel@daniel-laptop> Tue, 04 Jun 2013 16:43:32 +0200
56+ -- Daniel Holm <d.holmen@gmail.com> Tue, 04 Jun 2013 16:43:32 +0200
57
58 music-app (0.2) raring; urgency=low
59
60
61=== modified file 'music-app.qml'
62--- music-app.qml 2013-06-19 12:08:44 +0000
63+++ music-app.qml 2013-06-21 00:55:29 +0000
64@@ -132,7 +132,7 @@
65 if (status == MediaPlayer.EndOfMedia) {
66 // scrobble it
67 if (Settings.getSetting("scrobble") === "1") {
68- scrobblemodel.scrobble(player.source,artist,timestamp)
69+ Scrobble.scrobble(player.source,artist,timestamp)
70 }
71 else {
72 console.debug("Debug: no scrobbling")

Subscribers

People subscribed via source and target branches

to status/vote changes: