Пример #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)
Пример #2
0
 def get_thumbnail(self):
     """Returns the thumbnail"""
     if self.thumbnail:
         thumb = utils.descape(self.thumbnail)
         thumb = thumb.replace(' ', '%20')
         return thumb
     return ''
Пример #3
0
 def get_thumbnail(self):
     """Returns the thumbnail"""
     if self.thumbnail:
         thumb = utils.descape(self.thumbnail)
         thumb = thumb.replace(' ', '%20')
         return thumb
     return ''
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #12
0
 def get_episode_title(self):
     if self.episode_title:
         return utils.descape(self.episode_title)
Пример #13
0
 def get_rating(self):
     if self.rating:
         return utils.descape(self.rating)
Пример #14
0
 def get_category(self):
     if self.category:
         return utils.descape(self.category)
Пример #15
0
 def get_url(self):
     """Returns the video url"""
     if self.url:
         return utils.descape(self.url)
Пример #16
0
 def get_episode_title(self):
     if self.episode_title:
         return utils.descape(self.episode_title)
Пример #17
0
 def get_thumbnail(self):
     """Returns the thumbnail"""
     if self.thumbnail:
         return utils.descape(self.thumbnail)
Пример #18
0
 def get_thumb(self):
     """Returns the thumbnail"""
     if self.thumb:
         return utils.descape(self.thumb)
Пример #19
0
 def get_thumbnail(self):
     if self.thumbnail:
         return utils.descape(self.thumbnail)
Пример #20
0
 def get_category(self):
     """Return a string of the category. E.g. Comedy"""
     if self.category:
         return utils.descape(self.category)
Пример #21
0
 def get_rating(self):
     if self.rating:
         return utils.descape(self.rating)
Пример #22
0
 def get_category(self):
     if self.category:
         return utils.descape(self.category)
Пример #23
0
 def get_url(self):
     if self.url:
         return utils.descape(self.url)
Пример #24
0
 def get_category(self):
     """Return a string of the category. E.g. Comedy"""
     if self.category:
         return utils.descape(self.category)
Пример #25
0
 def get_genre(self):
     """Return a string of the genre. E.g. Sport"""
     return utils.descape(self.genre)
Пример #26
0
 def get_rating(self):
     """Return a string of the rating. E.g. PG, MA"""
     if self.rating:
         return utils.descape(self.rating)
Пример #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()
Пример #28
0
 def get_fanart(self):
     """Returns the fanart"""
     if self.fanart:
         return utils.descape(self.fanart)
Пример #29
0
 def get_genre(self):
     """Return a string of the genre. E.g. Sport"""
     return utils.descape(self.genre)
Пример #30
0
 def get_thumbnail(self):
     if self.thumbnail:
         return utils.descape(self.thumbnail)
Пример #31
0
 def get_title(self):
     return utils.descape(self.title)
Пример #32
0
 def get_url(self):
     if self.url:
         return utils.descape(self.url)
Пример #33
0
 def get_title(self):
     return utils.descape(self.title)
Пример #34
0
 def get_rating(self):
     """Return a string of the rating. E.g. PG, MA"""
     if self.rating:
         return utils.descape(self.rating)
Пример #35
0
 def test_descape(self):
     self.assertEqual('<spam&eggs>', utils.descape('&lt;spam&amp;eggs&gt;'))
Пример #36
0
 def get_url(self):
     """Returns the video url"""
     if self.url:
         return utils.descape(self.url)
Пример #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()