def filename(self): # FIXME: code from the old ItemInfo. Needs some serious cleanup # For daap, sent it to be the same as http as it is basically # http with a different port. def daap_handler(path, host, port): return 'http://%s:%s%s' % (host, port, path) fn = FilenameType(self.video_path) fn.set_urlize_handler(daap_handler, [self.share_info.host, self.share_info.port]) return fn
def get_directory(self): if self._files is None: # clicked Cancel return None else: return FilenameType(self._files[0])
def get_filenames(self): return [FilenameType(f) for f in self._files]