Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using albumduration in status reports last album by artist in list #884

Open
lochlainn opened this issue Mar 18, 2019 · 1 comment
Open

Comments

@lochlainn
Copy link

lochlainn commented Mar 18, 2019

When I use ${albumduration} in my statusbar, it doesn't report the duration of the current album, but the next one listed for that current artist. Interestingly, it works fine in format_trackwin_album. I tried to figure out the problem myself, but couldn't get anywhere.

  1. uname -a:
Darwin loch-pro 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64```
  1. cmus --version:
loch-pro:cmus lmacdona$ cmus --version
cmus v2.8.0
Copyright 2004-2006 Timo Hirvonen
Copyright 2008-2016 Various Authors```
  1. cmus --plugins:
Input Plugins: /usr/local/Cellar/cmus/2.8.0/lib/cmus/ip
  mad:
    Priority: 55
    File Types: mp3 mp2
    MIME Types: audio/mpeg audio/x-mp3 audio/x-mpeg
  wav:
    Priority: 50
    File Types: wav
    MIME Types:
  mp4:
    Priority: 50
    File Types: mp4 m4a m4b
    MIME Types:
  cue:
    Priority: 50
    File Types:
    MIME Types: application/x-cue
  aac:
    Priority: 50
    File Types: aac
    MIME Types: audio/aac audio/aacp
  flac:
    Priority: 50
    File Types: flac fla
    MIME Types:
  vorbis:
    Priority: 50
    File Types: ogg oga ogx
    MIME Types: application/ogg audio/x-ogg

Output Plugins: /usr/local/Cellar/cmus/2.8.0/lib/cmus/op
  coreaudio
  ao
@lochlainn
Copy link
Author

After experimenting with this a bit, albumduration seems to report the currently highlighted artist, not the currently playing one. I'll try to write a patch to fix this, but any pointers would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant