예제 #1
0
    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"])
            )
예제 #2
0
 def start (self):
     oper = audio.gvfsAudioMetadata (self.hints['location'])
     oper.listeners.append (self)
     oper.start()
예제 #3
0
 def start(self):
     oper = audio.gvfsAudioMetadata(self.hints['location'])
     oper.listeners.append(self)
     oper.start()