@@ -25,7 +25,9 @@ DashPreview {
25 property var item
25 property var item
26 property alias ready: nfo.ready
26 property alias ready: nfo.ready
27 property bool playable: false
27 property bool playable: false
28+ property string filePath: fileUri != ""
28 readonly property url fileUri: item ? item.fileUri : ""
29 readonly property url fileUri: item ? item.fileUri : ""
30+ property url url: item ? item.nfoUri.replace(/\.nfo$/, "-fanart.jpg") : ""
30 VideoInfo {
32 VideoInfo {
@@ -33,9 +35,7 @@ DashPreview {
35 title: nfo.ready ? nfo.video.title : ""
37 title: nfo.ready ? nfo.video.title : ""
36− url: item ? item.nfoUri.replace(/\.nfo$/, "-fanart.jpg") : ""
37 previewWidthRatio: 0.6
38 previewWidthRatio: 0.6
38− playable: fileUri != ""
40 onPreviewImageClicked: {
40 onPreviewImageClicked: {
41 if (playable) {
41 if (playable) {
@@ -64,7 +64,7 @@ DashPreview {
64 readonly property bool bigButton: parent.width > units.gu(40)
64 readonly property bool bigButton: parent.width > units.gu(40)
65 width: bigButton ? units.gu(8) : units.gu(4.5)
65 width: bigButton ? units.gu(8) : units.gu(4.5)
66 height: width
66 height: width
67− source: "graphics/play_button%1%2.png".arg(previewImageMouseArea.pressed ? "_active" : "").arg(bigButton ? "_big" : "")
67+ source: "../graphics/play_button%1%2.png".arg(previewImageMouseArea.pressed ? "_active" : "").arg(bigButton ? "_big" : "")
70 MouseArea {
70 MouseArea {