mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- audioplayer. add streamripper control to record current stream
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user