def _get_text(self):
bus = dbus.SessionBus()<EOL>try:<EOL><INDENT>self.__bus = bus.get_object(<EOL>"<STR_LIT>", "<STR_LIT>"<EOL>)<EOL>self.player = dbus.Interface(self.__bus, "<STR_LIT>")<EOL>try:<EOL><INDENT>metadata = self.player.Get("<STR_LIT>", "<STR_LIT>")<EOL>album = metadata.get("<STR_LIT>")<EOL>artist = metadata.get("<STR_LIT>")[<NUM_LIT:0>]<EOL>microtime = metadata.get("<STR_LIT>")<EOL>rtime = str(timedelta(microseconds=microtime))[:-<NUM_LIT:7>]<EOL>title = metadata.get("<STR_LIT>")<EOL>if self.sanitize_titles:<EOL><INDENT>album = self._sanitize_title(album)<EOL>title = self._sanitize_title(title)<EOL><DEDENT>playback_status = self.player.Get(<EOL>"<STR_LIT>", "<STR_LIT>"<EOL>)<EOL>if playback_status.strip() == "<STR_LIT>":<EOL><INDENT>color = self.py3.COLOR_PLAYING or self.py3.COLOR_GOOD<EOL><DEDENT>else:<EOL><INDENT>color = self.py3.COLOR_PAUSED or self.py3.COLOR_DEGRADED<EOL><DEDENT><DEDENT>except Exception:<EOL><INDENT>return (<EOL>self.format_stopped,<EOL>self.py3.COLOR_PAUSED or self.py3.COLOR_DEGRADED,<EOL>)<EOL><DEDENT>return (<EOL>self.py3.safe_format(<EOL>self.format,<EOL>dict(title=title, artist=artist, album=album, time=rtime),<EOL>),<EOL>color,<EOL>)<EOL><DEDENT>except Exception:<EOL><INDENT>return (self.format_down, self.py3.COLOR_OFFLINE or self.py3.COLOR_BAD)<EOL><DEDENT>
Get the current song metadatas (artist - title)