def _get_text(self):
if self._data.get("<STR_LIT:state>") == PLAYING:<EOL><INDENT>color = self.py3.COLOR_PLAYING or self.py3.COLOR_GOOD<EOL>state_symbol = self.state_play<EOL><DEDENT>elif self._data.get("<STR_LIT:state>") == PAUSED:<EOL><INDENT>color = self.py3.COLOR_PAUSED or self.py3.COLOR_DEGRADED<EOL>state_symbol = self.state_pause<EOL><DEDENT>else:<EOL><INDENT>color = self.py3.COLOR_STOPPED or self.py3.COLOR_BAD<EOL>state_symbol = self.state_stop<EOL><DEDENT>if self._data.get("<STR_LIT>"):<EOL><INDENT>color = self.py3.COLOR_BAD<EOL><DEDENT>try:<EOL><INDENT>ptime_ms = self._player.Position<EOL>ptime = _get_time_str(ptime_ms)<EOL><DEDENT>except Exception:<EOL><INDENT>ptime = None<EOL><DEDENT>if (<EOL>self.py3.format_contains(self.format, "<STR_LIT:time>")<EOL>and self._data.get("<STR_LIT:state>") == PLAYING<EOL>):<EOL><INDENT>update = time() + <NUM_LIT:0.5><EOL><DEDENT>else:<EOL><INDENT>update = self.py3.CACHE_FOREVER<EOL><DEDENT>placeholders = {<EOL>"<STR_LIT>": self._data.get("<STR_LIT>"),<EOL>"<STR_LIT:state>": state_symbol,<EOL>"<STR_LIT>": self._data.get("<STR_LIT>"),<EOL>"<STR_LIT>": self._data.get("<STR_LIT>"),<EOL>"<STR_LIT>": self._data.get("<STR_LIT>"),<EOL>"<STR_LIT:time>": ptime,<EOL>"<STR_LIT:title>": self._data.get("<STR_LIT:title>") or "<STR_LIT>",<EOL>"<STR_LIT>": self._player_details.get("<STR_LIT>"),  <EOL>}<EOL>return (placeholders, color, update)<EOL>
Get the current metadata