Ejemplo n.º 1
0
    def get_title(self):
        """Get program title

        Return the program title, including the Series X part
        on the end.
        """
        return utils.descape(self.title)
Ejemplo n.º 2
0
 def get_thumbnail(self):
     """Returns the thumbnail"""
     if self.thumbnail:
         thumb = utils.descape(self.thumbnail)
         thumb = thumb.replace(' ', '%20')
         return thumb
     return ''
Ejemplo n.º 3
0
 def get_thumbnail(self):
     """Returns the thumbnail"""
     if self.thumbnail:
         thumb = utils.descape(self.thumbnail)
         thumb = thumb.replace(' ', '%20')
         return thumb
     return ''
Ejemplo n.º 4
0
    def get_title(self):
        """Get program title

        Return the program title, including the Series X part
        on the end.
        """
        return utils.descape(self.title)
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
    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)
Ejemplo n.º 7
0
 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)
Ejemplo n.º 8
0
    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)
Ejemplo n.º 9
0
    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)
Ejemplo n.º 10
0
    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)
Ejemplo n.º 11
0
    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)
Ejemplo n.º 12
0
 def get_episode_title(self):
     if self.episode_title:
         return utils.descape(self.episode_title)
Ejemplo n.º 13
0
 def get_rating(self):
     if self.rating:
         return utils.descape(self.rating)
Ejemplo n.º 14
0
 def get_category(self):
     if self.category:
         return utils.descape(self.category)
Ejemplo n.º 15
0
 def get_url(self):
     """Returns the video url"""
     if self.url:
         return utils.descape(self.url)
Ejemplo n.º 16
0
 def get_episode_title(self):
     if self.episode_title:
         return utils.descape(self.episode_title)
Ejemplo n.º 17
0
 def get_thumbnail(self):
     """Returns the thumbnail"""
     if self.thumbnail:
         return utils.descape(self.thumbnail)
Ejemplo n.º 18
0
 def get_thumb(self):
     """Returns the thumbnail"""
     if self.thumb:
         return utils.descape(self.thumb)
Ejemplo n.º 19
0
 def get_thumbnail(self):
     if self.thumbnail:
         return utils.descape(self.thumbnail)
Ejemplo n.º 20
0
 def get_category(self):
     """Return a string of the category. E.g. Comedy"""
     if self.category:
         return utils.descape(self.category)
Ejemplo n.º 21
0
 def get_rating(self):
     if self.rating:
         return utils.descape(self.rating)
Ejemplo n.º 22
0
 def get_category(self):
     if self.category:
         return utils.descape(self.category)
Ejemplo n.º 23
0
 def get_url(self):
     if self.url:
         return utils.descape(self.url)
Ejemplo n.º 24
0
 def get_category(self):
     """Return a string of the category. E.g. Comedy"""
     if self.category:
         return utils.descape(self.category)
Ejemplo n.º 25
0
 def get_genre(self):
     """Return a string of the genre. E.g. Sport"""
     return utils.descape(self.genre)
Ejemplo n.º 26
0
 def get_rating(self):
     """Return a string of the rating. E.g. PG, MA"""
     if self.rating:
         return utils.descape(self.rating)
Ejemplo n.º 27
0
 def get_description(self):
     """Return a string the program description"""
     if self.description:
         return utils.descape(self.description)
     else:
         return self.get_title()
Ejemplo n.º 28
0
 def get_fanart(self):
     """Returns the fanart"""
     if self.fanart:
         return utils.descape(self.fanart)
Ejemplo n.º 29
0
 def get_genre(self):
     """Return a string of the genre. E.g. Sport"""
     return utils.descape(self.genre)
Ejemplo n.º 30
0
 def get_thumbnail(self):
     if self.thumbnail:
         return utils.descape(self.thumbnail)
Ejemplo n.º 31
0
 def get_title(self):
     return utils.descape(self.title)
Ejemplo n.º 32
0
 def get_url(self):
     if self.url:
         return utils.descape(self.url)
Ejemplo n.º 33
0
 def get_title(self):
     return utils.descape(self.title)
Ejemplo n.º 34
0
 def get_rating(self):
     """Return a string of the rating. E.g. PG, MA"""
     if self.rating:
         return utils.descape(self.rating)
Ejemplo n.º 35
0
 def test_descape(self):
     self.assertEqual('<spam&eggs>', utils.descape('&lt;spam&amp;eggs&gt;'))
Ejemplo n.º 36
0
 def get_url(self):
     """Returns the video url"""
     if self.url:
         return utils.descape(self.url)
Ejemplo n.º 37
0
 def get_description(self):
     """Return a string the program description"""
     if self.description:
         return utils.descape(self.description)
     else:
         return self.get_title()