def __init__(self, parent, flux_name, flux_location): VideoItem.__init__(self, flux_location, parent) self.network_play = True self.parent = parent self.location = flux_location self.name = flux_name.decode('utf8') self.type = 'video' self.force_player = 'vlc'
def __init__(self, parent, gip_type, index, pid, name, episode, desc, thumbnail): """ Create a new program instance. @param parent: Parent item. @param gip_type: get_iplayer type. @param index: get_iplayer index. @param pid: get_iplayter pid. @param name: Name of the program. @param epsiode: Name of the episode. @param desc: Description of the program. @param thumbnail: URL for the thumbnail. """ VideoItem.__init__(self, "http://127.0.0.1:%d/%s/%s/video.mov" % (IPLAYER_WEB_PORT, gip_type, pid), parent) self.gip_type = gip_type self.pid = pid self.index = index self.name = Unicode(name) self.info["title"] = self.name self.info["tagline"] = episode self.info["plot"] = desc self.image = thumbnail
def __init__(self, parent, gip_type, index, pid, name, episode, desc, thumbnail): """ Create a new program instance. @param parent: Parent item. @param gip_type: get_iplayer type. @param index: get_iplayer index. @param pid: get_iplayter pid. @param name: Name of the program. @param epsiode: Name of the episode. @param desc: Description of the program. @param thumbnail: URL for the thumbnail. """ VideoItem.__init__( self, 'http://127.0.0.1:%d/%s/%s/video.mov' % (IPLAYER_WEB_PORT, gip_type, pid), parent) self.gip_type = gip_type self.pid = pid self.index = index self.name = Unicode(name) self.info['title'] = self.name self.info['tagline'] = episode self.info['plot'] = desc self.image = thumbnail
def __init__(self, name, video_item): VideoItem.__init__(self, url=video_item.url, parent=video_item.parent) self.file_ops_no_delete_info = True self.update_item(name, video_item)