def start (self): if self.app.preferences.useGnomeVfs: oper = audio.gvfsAudioMetadata(self.hints["location"]) else: url = urlutil.UrlParse(self.hints["location"]) if not url.is_local: self._send_finished_error( operations.ERROR, error=StandardError(self.hints["location"]) ) return filename = url.path oper = audio.fileAudioMetadata (filename) oper.listeners.append (self) try: oper.start() except audio.GstPlayingFailledError: self._send_finished_event( operations.ERROR, error=StandardError(self.hints["location"]) )
def start (self): oper = audio.gvfsAudioMetadata (self.hints['location']) oper.listeners.append (self) oper.start()
def start(self): oper = audio.gvfsAudioMetadata(self.hints['location']) oper.listeners.append(self) oper.start()