diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-08-10 17:20:03 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-08-10 17:20:03 +0200 |
commit | 9f4cb080f6d1845b7879d5ace57fbdedc0e006cf (patch) | |
tree | 02bd005d6ce727f9c7c086b3c08128478b49e641 /src | |
parent | b55cf2b0641d67f9832b14285af741ef0ed9d8bf (diff) | |
download | pianobar-9f4cb080f6d1845b7879d5ace57fbdedc0e006cf.tar.gz pianobar-9f4cb080f6d1845b7879d5ace57fbdedc0e006cf.tar.bz2 pianobar-9f4cb080f6d1845b7879d5ace57fbdedc0e006cf.zip |
Print some song infos when key 'i' is pressed
Users won't need these information, but I'm interested in them ;)
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -544,6 +544,33 @@ int main (int argc, char **argv) { BarStationFromGenre (&ph); break; + case 'i': + if (curStation == NULL || curSong == NULL) { + BarUiMsg ("No song playing.\n"); + break; + } + /* print debug-alike infos */ + printf ("Song infos:\n" + "album:\t%s\n" + "artist:\t%s\n" + "audioUrl:\t%s\n" + "fileGain:\t%f\n" + "focusTraitId:\t%s\n" + "identity:\t%s\n" + "matchingSeed:\t%s\n" + "musicId:\t%s\n" + "rating:\t%i\n" + "stationId:\t%s\n" + "title:\t%s\n" + "userSeed:\t%s\n", + curSong->album, curSong->artist, curSong->audioUrl, + curSong->fileGain, curSong->focusTraitId, + curSong->identity, curSong->matchingSeed, + curSong->musicId, curSong->rating, + curSong->stationId, curSong->title, + curSong->userSeed); + break; + case 'l': if (curStation == NULL || curSong == NULL) { BarUiMsg ("No song playing.\n"); |