コード例 #1
0
    def _initiate_find(self):
        """
        Initiate the search

        """
        self._apply_button.set_sensitive(False)
        cursor = Gdk.Cursor.new(Gdk.CursorType.WATCH)
        self._dialog.get_window().set_cursor(cursor)
        artist, title = identify_mp3(self._totem.get_current_mrl())

        if artist == None or title == None:
            self._progress.set_text("Could not identify the song file :(")
        else:
            self._get_results(artist, title)
コード例 #2
0
 def setUp(self):
     test_song = Gio.File.new_for_path("data/apev2-lyricsv2.mp3")
     link_address = test_song.get_uri()
     self.artist, self.track = identify_mp3(link_address)