def createEpisodeSubtitle(sourcebase): seasonNumber = xbmclibrary.replaceEmptyItemWithHomeProperty(xbmclibrary.getItemFromHomeProperty(sourcebase + '.Season'), sourcebase + '.EpisodeSeason') episodeNumber = xbmclibrary.replaceEmptyItemWithHomeProperty(xbmclibrary.getItemFromHomeProperty(sourcebase + '.Episode'), sourcebase + '.EpisodeNumber') return xbmclibrary.joinItems( xbmclibrary.getItemFromHomeProperty(sourcebase + '.ShowTitle'), xbmclibrary.getItemFromHomeProperty(sourcebase + '.TVShowTitle'), xbmclibrary.addPrefixToItem(xbmclibrary.getLocalizedValue(20373) + ' ', xbmclibrary.getNumericValue(seasonNumber)), xbmclibrary.addPrefixToItem(xbmclibrary.getLocalizedValue(20359) + ' ', xbmclibrary.getNumericValue(episodeNumber)))
def createGenericBackgroundImage(sourcebase): result = xbmclibrary.getItemFromHomeProperty(sourcebase + '.Art(Fanart)') result = xbmclibrary.replaceEmptyItemWithHomeProperty(result, sourcebase + '.Property(Fanart_image)') result = xbmclibrary.replaceEmptyItemWithHomeProperty(result, sourcebase + '.Fanart') return result
def createGenericThumbnail(sourcebase): result = xbmclibrary.getItemFromHomeProperty(sourcebase + '.Art(poster)') result = xbmclibrary.replaceEmptyItemWithHomeProperty(result, sourcebase + '.thumb') result = xbmclibrary.replaceEmptyItemWithHomeProperty(result, sourcebase + '.Thumb') result = xbmclibrary.replaceEmptyItemWithHomeProperty(result, sourcebase + '.Icon') return result
def createGenericName(sourcebase): return xbmclibrary.replaceEmptyItemWithHomeProperty(xbmclibrary.getItemFromHomeProperty(sourcebase + '.Title'), sourcebase + '.EpisodeTitle')