2
import"../../common/utils.js" as Utils
8
property string name: ''
9
property string overview: ''
10
property string banner: ''
11
property string seriesid: ''
12
// property string thumb: ''
13
property int rating: -1
15
function loadDetails(seriesid, name, overview, banner, ) {
16
serie.seriesid = seriesid
18
serie.overview = overview
20
// serie.thumb = thumb
23
serieModel.load(seriesid)
29
function load(seriesId) {
30
console.log("Loading " + seriesId)
31
source = "http://thetvdb.com/api/040BCD04E3D1E109/series/" + seriesId + "/all/en.xml"
38
XmlRole { name: "seriesid"; query: "id/string()" }
40
XmlRole { name: "title"; query: "SeriesName/string()" }
42
XmlRole { name: "banner"; query: "banner/string()" }
43
XmlRole { name: "fanart"; query: "fanart/string()" }
44
XmlRole { name: "poster"; query: "poster/string()" }
45
XmlRole{name:"thumb";query:"thumb[1]/string()"}
46
XmlRole { name: "status"; query: "Status/string()" }
47
XmlRole { name: "runtime"; query: "Runtime/string()" }
48
XmlRole { name: "rating"; query: "Rating/string()" }
49
XmlRole { name: "network"; query: "Network/string()" }
50
XmlRole { name: "firstaired"; query: "FirstAired/string()" }
53
if (status == XmlListModel.Ready) {
54
if (get(0) !== undefined) {
55
console.log("Serie detailes loaded");
56
var tmp = get(0).rating;
57
if (tmp !== "") rating = tmp;
58
console.log("Rating: " + rating);
60
} else if (status == XmlListModel.Error) {
61
console.log("Error: " + errorString);
74
source: "../../dash/artwork/search_background.png"
75
width: parent.width ; height:parent.height
76
border.left: 25; border.top: 25
77
border.right: 25; border.bottom: 25
83
anchors.top: parent.top
85
//make into FlipableTvBanner
89
anchors.top: parent.top
91
anchors.left: parent.left
93
// anchors.horizontalCenter: parent.horizontalCenter
96
//fillMode: Image.PreserveAspectFit
98
source: "http://thetvdb.com/banners/_cache/" + serie.banner
99
// source: "http://thetvdb.com/banners/graphical/"+ seriesid +"-g2.jpg"
105
when: bannerImg.status == Image.Ready
112
height: bannerImg.height
116
transitions: Transition {
117
PropertyAnimation { properties: "opacity, height"; duration: 300}
129
//source: "http://thetvdb.com/banners/graphical/"+ seriesid +"-g3.jpg"
130
//fillMode: Image.PreserveAspectFit
136
//source: "http://thetvdb.com/banners/graphical/"+ seriesid +"-g2.jpg"
137
//fillMode: Image.PreserveAspectFit
141
// source: "http://thetvdb.com/banners/_cache/" + serie.banner
142
//fillMode: Image.PreserveAspectFit
148
anchors { right: flick.right; top: flick.top }
149
source: "pics/moreUpW.png"
150
opacity: flick.atYBeginning ? 0 : 1
154
anchors { right: flick.right; bottom: flick.bottom }
155
source: "pics/moreDownW.png"
156
opacity: flick.atYEnd ? 0 : 1
163
anchors.right: parent.right
164
anchors.bottom: parent.top
166
state: serie.parent.state != '' ? "Show" : ""
171
serie.parent.state = ''
179
anchors.bottom: undefined
180
anchors.top: backButton.parent.top
187
AnchorAnimation { duration: 300 }
194
visible: bannerImg.status == Image.Loading ? true : false
195
width: parent.width * 0.3; height: 10
196
anchors {bottom: parent.bottom; right: parent.right}
198
value: bannerImg.progress
208
source: "../../dash/artwork/search_background.png"
209
width: 450; height: 420
210
border.left: 25; border.top: 25
211
border.right: 25; border.bottom: 25
223
anchors.fill: informationtxt
233
// width: informationtxt.width;height:informationtxt.height
245
source: "../../dash/artwork/search_background.png"
246
width: 300; height: 420
247
border.left: 25; border.top: 25
248
border.right: 25; border.bottom: 25
260
anchors.fill: informationtxt
261
width: 280;height: 410
269
// top:informationtxt.top
270
// bottom: informationtxt.bottom
276
// width: informationtxt.width;height:informationtxt.height
289
source: "../../dash/artwork/search_background.png"
290
width: 300; height: 420
291
border.left: 25; border.top: 25
292
border.right: 25; border.bottom: 25
302
//Bottom Picture make into Marquee
306
source: "../../dash/artwork/search_background.png"
307
width: 250; height: 200
308
border.left: 25; border.top: 25
309
border.right: 25; border.bottom: 25
318
source: "http://thetvdb.com/banners/posters/"+ seriesid +"-1.jpg"
319
anchors.fill: bottompictures
326
source: "../../dash/artwork/search_background.png"
327
width: 250; height: 200
328
border.left: 25; border.top: 25
329
border.right: 25; border.bottom: 25
338
source: "http://thetvdb.com/banners/posters/"+ seriesid +"-2.jpg"
339
anchors.fill: bottompictures1
346
source: "../../dash/artwork/search_background.png"
347
width: 250; height: 200
348
border.left: 25; border.top: 25
349
border.right: 25; border.bottom: 25
358
source: "http://thetvdb.com/banners/posters/"+ seriesid +"-3.jpg"
359
anchors.fill: bottompictures2
367
source: "../../dash/artwork/search_background.png"
368
width: 250; height: 200
369
border.left: 25; border.top: 25
370
border.right: 25; border.bottom: 25
379
source: "http://thetvdb.com/banners/posters/"+ seriesid +"-4.jpg"
380
anchors.fill: bottompictures3