mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
Zap when recording needs CAM
Signed-off-by: GetAway <get-away@t-online.de>
This commit is contained in:
@@ -309,6 +309,7 @@ ci.ignore_msg CA Meldungen ignorieren
|
||||
ci.init_failed CAM-Init fehlgeschlagen
|
||||
ci.init_ok CAM-Init beendet
|
||||
ci.inserted CAM im Slot
|
||||
ci.rec_zapto Umschalten bei Aufnahmen mit CAM
|
||||
ci.removed CAM entfernt -> Slot
|
||||
ci.reset Reset
|
||||
ci.reset_standby Reset nach Standby
|
||||
|
@@ -309,6 +309,7 @@ ci.ignore_msg Ignore CA messages
|
||||
ci.init_failed CAM init failed
|
||||
ci.init_ok CAM init complete
|
||||
ci.inserted CAM inserted in slot
|
||||
ci.rec_zapto Zap when recording needs CAM
|
||||
ci.removed CAM removed from slot
|
||||
ci.reset Reset
|
||||
ci.reset_standby Reset after standby
|
||||
|
@@ -150,8 +150,8 @@ int CCAMMenuHandler::doMainMenu()
|
||||
}
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_IGNORE_MSG, &g_settings.ci_ignore_messages, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_SAVE_PINCODE, &g_settings.ci_save_pincode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this));
|
||||
#if 0
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_REC_ZAPTO, &g_settings.ci_rec_zapto, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this));
|
||||
#if 0
|
||||
CMenuOptionChooser *ci_mode = new CMenuOptionChooser(LOCALE_CI_MODE, &g_settings.ci_mode, OPTIONS_CI_MODE_OPTIONS, OPTIONS_CI_MODE_OPTION_COUNT, true, NULL);
|
||||
ci_mode->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_CI_MODE);
|
||||
cammenu->addItem(ci_mode);
|
||||
|
@@ -466,6 +466,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.ci_save_pincode = configfile.getInt32("ci_save_pincode", 0);
|
||||
g_settings.ci_pincode = configfile.getString("ci_pincode", "");
|
||||
g_settings.ci_tuner = configfile.getInt32("ci_tuner", -1);
|
||||
g_settings.ci_rec_zapto = configfile.getInt32("ci_rec_zapto", 0);
|
||||
|
||||
#ifndef CPU_FREQ
|
||||
g_settings.cpufreq = 0;
|
||||
@@ -1358,6 +1359,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
configfile.setInt32("ci_save_pincode", g_settings.ci_save_pincode);
|
||||
configfile.setString("ci_pincode", g_settings.ci_pincode);
|
||||
configfile.setInt32("ci_tuner", g_settings.ci_tuner);
|
||||
configfile.setInt32("ci_rec_zapto", g_settings.ci_rec_zapto);
|
||||
|
||||
configfile.setInt32( "make_hd_list", g_settings.make_hd_list);
|
||||
configfile.setInt32( "make_webtv_list", g_settings.make_webtv_list);
|
||||
@@ -3731,7 +3733,12 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
|
||||
if((eventinfo->channel_id != live_channel_id) && !(SAME_TRANSPONDER(live_channel_id, eventinfo->channel_id)))
|
||||
zapTo(eventinfo->channel_id);
|
||||
}
|
||||
|
||||
// zap to CI Channel
|
||||
if(g_settings.ci_rec_zapto){
|
||||
CZapitChannel * ch = CServiceManager::getInstance()->FindChannel(eventinfo->channel_id);
|
||||
if (ch && ch->bUseCI && (eventinfo->channel_id != live_channel_id))
|
||||
zapTo(eventinfo->channel_id);
|
||||
}
|
||||
if (g_settings.recording_type != CNeutrinoApp::RECORDING_OFF) {
|
||||
CRecordManager::getInstance()->Record(eventinfo);
|
||||
autoshift = CRecordManager::getInstance()->TimeshiftOnly();
|
||||
|
@@ -336,6 +336,7 @@ typedef enum
|
||||
LOCALE_CI_INIT_FAILED,
|
||||
LOCALE_CI_INIT_OK,
|
||||
LOCALE_CI_INSERTED,
|
||||
LOCALE_CI_REC_ZAPTO,
|
||||
LOCALE_CI_REMOVED,
|
||||
LOCALE_CI_RESET,
|
||||
LOCALE_CI_RESET_STANDBY,
|
||||
|
@@ -336,6 +336,7 @@ const char * locale_real_names[] =
|
||||
"ci.init_failed",
|
||||
"ci.init_ok",
|
||||
"ci.inserted",
|
||||
"ci.rec_zapto",
|
||||
"ci.removed",
|
||||
"ci.reset",
|
||||
"ci.reset_standby",
|
||||
|
@@ -288,8 +288,7 @@ struct SNeutrinoSettings
|
||||
int ci_ignore_messages;
|
||||
int ci_save_pincode;
|
||||
int ci_tuner;
|
||||
|
||||
|
||||
int ci_rec_zapto;
|
||||
std::string ci_pincode;
|
||||
int radiotext_enable;
|
||||
int webradio_xml_auto;
|
||||
|
Reference in New Issue
Block a user