def get_title(self): """Get program title Return the program title, including the Series X part on the end. """ return utils.descape(self.title)
def get_thumbnail(self): """Returns the thumbnail""" if self.thumbnail: thumb = utils.descape(self.thumbnail) thumb = thumb.replace(' ', '%20') return thumb return ''
def get_description(self): description = "" if self.description: description = self.description if self.expire: expire = "Expires: %s" % self.expire.strftime('%a, %d %b %Y') description = "%s\n%s" % (description, expire) return utils.descape(description)
def get_episode_title(self): """Get episode title Return a string of the shorttitle entry, unless its not available, then we'll just use the program title instead. """ if self.episode_title: return utils.descape(self.episode_title)
def get_description(self): """Get description Return a string the program description, after running it through the descape. """ if self.description: return utils.descape(self.description)
def get_description(self): """Get description Return a string the program description, after running it through the descape. Add the expires date to the end, if available """ description = "" if self.description: description = self.description if self.expire: expire = "Expires: %s" % self.expire.strftime('%a, %d %b %Y') description = "%s\n%s" % (description, expire) return utils.descape(description)
def get_episode_title(self): if self.episode_title: return utils.descape(self.episode_title)
def get_rating(self): if self.rating: return utils.descape(self.rating)
def get_category(self): if self.category: return utils.descape(self.category)
def get_url(self): """Returns the video url""" if self.url: return utils.descape(self.url)
def get_thumbnail(self): """Returns the thumbnail""" if self.thumbnail: return utils.descape(self.thumbnail)
def get_thumb(self): """Returns the thumbnail""" if self.thumb: return utils.descape(self.thumb)
def get_thumbnail(self): if self.thumbnail: return utils.descape(self.thumbnail)
def get_category(self): """Return a string of the category. E.g. Comedy""" if self.category: return utils.descape(self.category)
def get_url(self): if self.url: return utils.descape(self.url)
def get_genre(self): """Return a string of the genre. E.g. Sport""" return utils.descape(self.genre)
def get_rating(self): """Return a string of the rating. E.g. PG, MA""" if self.rating: return utils.descape(self.rating)
def get_description(self): """Return a string the program description""" if self.description: return utils.descape(self.description) else: return self.get_title()
def get_fanart(self): """Returns the fanart""" if self.fanart: return utils.descape(self.fanart)
def get_title(self): return utils.descape(self.title)
def test_descape(self): self.assertEqual('<spam&eggs>', utils.descape('<spam&eggs>'))