- audioplayer. add streamripper control to record current stream

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-08-17 21:13:19 +02:00
committed by Thilo Graf
parent e142bb008c
commit 2a910092ad
9 changed files with 87 additions and 2 deletions

View File

@@ -80,6 +80,15 @@ int CAudioPlayerSetup::exec(CMenuTarget* parent, const std::string &actionKey)
return res;
}
if(actionKey == "streamripperdir")
{
CFileBrowser b;
b.Dir_Mode=true;
if (b.exec(g_settings.network_nfs_streamripperdir.c_str()))
g_settings.network_nfs_streamripperdir = b.getSelectedFile()->Name;
return res;
}
res = showAudioPlayerSetup();
return res;
@@ -136,6 +145,10 @@ int CAudioPlayerSetup::showAudioPlayerSetup()
mf->setHint("", LOCALE_MENU_HINT_AUDIOPLAYER_DEFDIR);
audioplayerSetup->addItem(mf);
mf = new CMenuForwarder(LOCALE_AUDIOPLAYER_STREAMRIPPER_DIR, true, g_settings.network_nfs_streamripperdir, this, "streamripperdir");
mf->setHint("", LOCALE_MENU_HINT_AUDIOPLAYER_STREAMRIPPER_DIR);
audioplayerSetup->addItem(mf);
mc = new CMenuOptionChooser(LOCALE_AUDIOPLAYER_ENABLE_SC_METADATA, &g_settings.audioplayer_enable_sc_metadata, MESSAGEBOX_NO_YES_OPTIONS, MESSAGEBOX_NO_YES_OPTION_COUNT, true);
mc->setHint("", LOCALE_MENU_HINT_AUDIOPLAYER_SC_METADATA);
audioplayerSetup->addItem(mc);