From 2f53b9b026e9d1c9c2a19f911cc21e4197e8df4e Mon Sep 17 00:00:00 2001 From: xnappo Date: Sat, 14 Mar 2015 13:17:16 -0500 Subject: [PATCH] Fix playback --- resources/lib/PlaybackUtils.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/resources/lib/PlaybackUtils.py b/resources/lib/PlaybackUtils.py index a9012fc3..6731be85 100644 --- a/resources/lib/PlaybackUtils.py +++ b/resources/lib/PlaybackUtils.py @@ -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