diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-07-05 22:00:22 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-07-06 17:29:04 +0200 |
commit | 24ed240c865837b8c9d7c9240f6ef3ba9065b162 (patch) | |
tree | a6e0d2e26877ab899d451865fa4995f0b8bf382b /src/ui.c | |
parent | bf13c962d2db93bd09d7dd50a26978e44fb0e860 (diff) | |
download | pianobar-24ed240c865837b8c9d7c9240f6ef3ba9065b162.tar.gz pianobar-24ed240c865837b8c9d7c9240f6ef3ba9065b162.tar.bz2 pianobar-24ed240c865837b8c9d7c9240f6ef3ba9065b162.zip |
Add feature: Create new station from selected song
New keybinding āvā, new setting act_createstationfromsong.
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -611,8 +611,11 @@ void BarStationFromGenre (BarApp_t *app) { } while (curGenre == NULL); /* create station */ + PianoRequestDataCreateStation_t reqData; + reqData.token = curGenre->musicId; + reqData.type = PIANO_MUSICTYPE_INVALID; BarUiMsg (&app->settings, MSG_INFO, "Adding shared station \"%s\"... ", curGenre->name); - BarUiPianoCall (app, PIANO_REQUEST_CREATE_STATION, curGenre->musicId, &pRet, &wRet); + BarUiPianoCall (app, PIANO_REQUEST_CREATE_STATION, &reqData, &pRet, &wRet); } /* replaces format characters (%x) in format string with custom strings |