audioplayer. add streamripper control to record current stream

Origin commit data
------------------
Branch: ni/coolstream
Commit: 24affa8a8b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-08-17 (Thu, 17 Aug 2017)

Origin message was:
------------------
- audioplayer. add streamripper control to record current stream

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-08-17 21:13:19 +02:00
parent ceab6aafbb
commit 025b8adad6
9 changed files with 84 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);