예제 #1
0
    def __init__(self, trailer, parent):
        VideoItem.__init__(self, trailer.preview_url, parent)
        self.trailer = trailer
        self.name = trailer.title
        self.type = 'video'
        self.mplayer_options = '-user-agent QuickTime/7.5'

        self.mode = ''
        self.files = ''
        self.image = trailer.poster
        self.description = trailer.description
        self.description += _('\n\nGenres: ') + ','.join(trailer.genres)
        if trailer.release_date:
            self.description += _(
                '\n\nDate: ') + trailer.release_date.strftime(
                    config.APPLETRAILERS_DATE_FORMAT)
        else:
            self.description += _('\n\nDate: Unknown')
        if trailer.rating:
            self.description += ('\n\nRating: ') + trailer.rating
        if trailer.director:
            self.description += ('\n\nDirector: ') + trailer.director
        if trailer.runtime:
            self.description += ('\n\nRuntime: %d minutes') % trailer.runtime
        self.plot = self.description
예제 #2
0
    def __init__(self, filename, parent, item_url, results):
        """ Initialise the VPVideoItem class """
        logger.log( 9, 'VPVideoItem.__init__(filename=%r, parent=%r, item_url=%r, results=%r)', filename, parent, item_url, results)

        VideoItem.__init__(self, filename, parent)
        self.item_url = item_url
        self.results = results
예제 #3
0
파일: wwitv.py 프로젝트: freevo/freevo1
 def __init__(self, name, tv, parent):
     # VideoItem.__init__(self, url, parent)
     VideoItem.__init__(self, tv[1], parent)
     self.name = name
     self.description = "Stream: " + tv[2]
     self.description += "\nInformation: " + tv[3]
     self.description += "\nURL: " + tv[1]
     self.is_playlist = True
예제 #4
0
파일: wwitv.py 프로젝트: spartrekus/freevo1
 def __init__(self, name, tv, parent):
     #VideoItem.__init__(self, url, parent)
     VideoItem.__init__(self, tv[1], parent)
     self.name = name
     self.description = 'Stream: ' + tv[2]
     self.description += '\nInformation: ' + tv[3]
     self.description += "\nURL: " + tv[1]
     self.is_playlist = True
예제 #5
0
    def __init__(self, filename, parent, item_url, results):
        """ Initialise the VPVideoItem class """
        logger.log(
            9,
            'VPVideoItem.__init__(filename=%r, parent=%r, item_url=%r, results=%r)',
            filename, parent, item_url, results)

        VideoItem.__init__(self, filename, parent)
        self.item_url = item_url
        self.results = results
예제 #6
0
파일: rtve.py 프로젝트: golaizola/freevo1
    def __init__(self, menu_entry, programa, parent):
        VideoItem.__init__(self, programa["flv"], parent)

        self.mode = ""
        self.files = ""
        self.image = _fetch_image(programa["image"])

        if menu_entry == _("Reproducir a pantalla completa (16:9)"):
            self.mplayer_options = "-vf crop=624:351:0:58"

        self.name = menu_entry
예제 #7
0
    def __init__(self, menu_entry, programa, parent):
        VideoItem.__init__(self, programa["flv"], parent)

        self.mode = ''
        self.files = ''
        self.image = _fetch_image(programa['image'])

        if menu_entry == _("Reproducir a pantalla completa (16:9)"):
            self.mplayer_options = "-vf crop=624:351:0:58"

        self.name = menu_entry
예제 #8
0
 def __init__(self, video, id, parent):
     VideoItem.__init__(self, local_server.get_url('/youtube/%s' % id), parent)
     self.name = unicode(video.title.text)
     if video.content.type == "text" and video.content.text:
         self.description = unicode(video.content.text)
     elif video.content.type == "html":
         text = util.htmlenties2txt(unicode(video.content.text), 'unicode')
         match = re.search('<span>([^\<]*)<', text)
         if match:
             self.description = decodeAcute(match.group(1))
         else:
             self.description = text
         match = re.search('src="([^\"]*)"', text)
         if match:
             self.image = match.group(1)
     else:
         self.description = ""
     self.description += '\n' + _('User') + ': ' + video.author[0].name.text
     date = video.published.text.split('T')
     self.description += '. ' + date[0]
     self.plot = self.description
예제 #9
0
 def __init__(self, video, id, parent):
     VideoItem.__init__(self, local_server.get_url('/youtube/%s' % id),
                        parent)
     self.name = unicode(video.title.text)
     if video.content.type == "text" and video.content.text:
         self.description = unicode(video.content.text)
     elif video.content.type == "html":
         text = util.htmlenties2txt(unicode(video.content.text), 'unicode')
         match = re.search('<span>([^\<]*)<', text)
         if match:
             self.description = decodeAcute(match.group(1))
         else:
             self.description = text
         match = re.search('src="([^\"]*)"', text)
         if match:
             self.image = match.group(1)
     else:
         self.description = ""
     self.description += '\n' + _('User') + ': ' + video.author[0].name.text
     date = video.published.text.split('T')
     self.description += '. ' + date[0]
     self.plot = self.description
예제 #10
0
    def __init__(self, trailer, parent):
        VideoItem.__init__(self, trailer.preview_url, parent)
        self.trailer = trailer
        self.name = trailer.title
        self.type = 'video'
        self.mplayer_options = '-user-agent QuickTime/7.5'

        self.mode = ''
        self.files = ''
        self.image = trailer.poster
        self.description = trailer.description
        self.description += _('\nGenres: ') + ','.join(trailer.genres)
        if trailer.release_date:
            self.description += _('\nDate: ') + trailer.release_date.strftime(config.APPLETRAILERS_DATE_FORMAT)
        else:
            self.description += _('\nDate: Unknown')
        if trailer.rating:
            self.description += ('\nRating: ') + trailer.rating
        if trailer.director:
            self.description += ('\nDirector: ') + trailer.director
        if trailer.runtime:
            self.description += ('\nRuntime: %d minutes') % trailer.runtime
        self.plot = self.description
예제 #11
0
 def __init__(self, name, url, parent):
     VideoItem.__init__(self, url, parent)
     self.name = name
     self.type = 'trailers'
예제 #12
0
 def __init__(self, name, url, parent):
     VideoItem.__init__(self, url, parent)
     self.name = name
     self.type = 'trailers'
예제 #13
0
 def __init__(self, name, url, parent):
     VideoItem.__init__(self, url, parent)
     self.name = name
     self.description = "URL: " + url
예제 #14
0
 def __init__(self, name, url, parent):
     _debug_('YoutubeVideoItem.__init__(name=%r, url=%r, parent=%r)' % (name, url, parent), 2)
     VideoItem.__init__(self, url, parent)
     self.name = name
     self.type = 'youtube'
예제 #15
0
파일: cml.py 프로젝트: glyph-se/dotfiles
 def __init__(self, trailer, parent):
     VideoItem.__init__(self, trailer['url'], parent)
     self.name = "%(type)s - %(speed)s" % trailer
     self.trailer = trailer
     self.type = 'video'
예제 #16
0
 def __init__(self, name, url, parent):
     """ Initialise the VPVideoItem class """
     self.vp_url = url
     url = name
     VideoItem.__init__(self, name, parent)