Lines Matching refs:now_playing

149 		now_playing = dict(((token[0] if token[0] not in ignore_levels else token[1],
152 state = _convert_state(now_playing.get('status'))
155 'album': now_playing.get('album'),
156 'artist': now_playing.get('artist'),
157 'title': now_playing.get('title'),
158 'elapsed': _convert_seconds(now_playing.get('position', 0)),
159 'total': _convert_seconds(now_playing.get('duration', 0)),
179 now_playing = run_cmd(pl, [
190 if not now_playing or now_playing.count("\n") != 3:
192 now_playing = re.match(
194 now_playing
197 'state': _convert_state(now_playing[3]),
199 'artist': now_playing[1],
200 'title': now_playing[2],
201 'elapsed': now_playing[4],
202 'total': now_playing[5]
213 now_playing = client.currentsong()
214 if not now_playing:
221 'album': now_playing.get('album'),
222 'artist': now_playing.get('artist'),
223 'title': now_playing.get('title'),
225 'total': _convert_seconds(now_playing.get('time', 0)),
459 now_playing = run_cmd(pl, [
464 if not now_playing:
466 now_playing = now_playing.split('\n')
468 'album': now_playing[0],
469 'artist': now_playing[1],
470 'title': now_playing[2],
471 'elapsed': now_playing[3],
472 'total': now_playing[4],
505 now_playing = asrun(pl, ascript)
506 if not now_playing:
508 now_playing = now_playing.split(status_delimiter)
509 if len(now_playing) != 6:
511 state = _convert_state(now_playing[5])
512 total = _convert_seconds(now_playing[4])
513 elapsed = _convert_seconds(float(now_playing[3]) * float(now_playing[4]) / 100)
515 'title': now_playing[0],
516 'artist': now_playing[1],
517 'album': now_playing[2],
555 now_playing = asrun(pl, ascript)
556 if not now_playing:
558 now_playing = now_playing.split(status_delimiter)
559 if len(now_playing) != 6:
561 title, artist, album = now_playing[0], now_playing[1], now_playing[2]
562 state = _convert_state(now_playing[5])
563 total = _convert_seconds(now_playing[4])
564 elapsed = _convert_seconds(now_playing[3])
615 now_playing = dict((
619 state = _convert_state(now_playing.get('State', 'stop'))
622 'album': now_playing.get('Album', ''),
623 'artist': now_playing.get('Artist', ''),
624 'title': now_playing.get('SongTitle', ''),
625 'elapsed': _convert_seconds(now_playing.get('CurrentSec', 0)),
626 'total': _convert_seconds(now_playing.get('TotalSec', 0)),