Fix playback
This commit is contained in:
parent
0bf230d449
commit
2f53b9b026
1 changed files with 12 additions and 11 deletions
|
@ -57,7 +57,7 @@ class PlaybackUtils():
|
|||
|
||||
playurl = PlayUtils().getPlayUrl(server, id, result)
|
||||
xbmc.log("Play URL: " + playurl)
|
||||
thumbPath = API.getArtwork(result, "Primary")
|
||||
thumbPath = API().getArtwork(result, "Primary")
|
||||
listItem = xbmcgui.ListItem(path=playurl, iconImage=thumbPath, thumbnailImage=thumbPath)
|
||||
|
||||
self.setListItemProps(server, id, listItem, result)
|
||||
|
@ -129,21 +129,22 @@ class PlaybackUtils():
|
|||
eppNum = result.get("IndexNumber")
|
||||
tvshowTitle = result.get("SeriesName")
|
||||
|
||||
self.setArt(listItem,'poster', API.getArtwork(result, "Primary"))
|
||||
self.setArt(listItem,'tvshow.poster', API.getArtwork(result, "SeriesPrimary"))
|
||||
self.setArt(listItem,'clearart', API.getArtwork(result, "Art"))
|
||||
self.setArt(listItem,'tvshow.clearart', API.getArtwork(result, "Art"))
|
||||
self.setArt(listItem,'clearlogo', API.getArtwork(result, "Logo"))
|
||||
self.setArt(listItem,'tvshow.clearlogo', API.getArtwork(result, "Logo"))
|
||||
self.setArt(listItem,'discart', API.getArtwork(result, "Disc"))
|
||||
self.setArt(listItem,'fanart_image', API.getArtwork(result, "Backdrop"))
|
||||
self.setArt(listItem,'landscape', API.getArtwork(result, "Thumb"))
|
||||
self.setArt(listItem,'poster', API().getArtwork(result, "Primary"))
|
||||
self.setArt(listItem,'tvshow.poster', API().getArtwork(result, "SeriesPrimary"))
|
||||
self.setArt(listItem,'clearart', API().getArtwork(result, "Art"))
|
||||
self.setArt(listItem,'tvshow.clearart', API().getArtwork(result, "Art"))
|
||||
self.setArt(listItem,'clearlogo', API().getArtwork(result, "Logo"))
|
||||
self.setArt(listItem,'tvshow.clearlogo', API().getArtwork(result, "Logo"))
|
||||
self.setArt(listItem,'discart', API().getArtwork(result, "Disc"))
|
||||
self.setArt(listItem,'fanart_image', API().getArtwork(result, "Backdrop"))
|
||||
self.setArt(listItem,'landscape', API().getArtwork(result, "Thumb"))
|
||||
|
||||
listItem.setProperty('IsPlayable', 'true')
|
||||
listItem.setProperty('IsFolder', 'false')
|
||||
|
||||
# Process Studios
|
||||
studio = API().getStudio(result)
|
||||
studios = API().getStudios(result)
|
||||
studio = studios[0]
|
||||
listItem.setInfo('video', {'studio' : studio})
|
||||
|
||||
# play info
|
||||
|
|
Loading…
Reference in a new issue