Zap when recording needs CAM

Signed-off-by: GetAway <get-away@t-online.de>
This commit is contained in:
FlatTV
2020-01-01 12:31:33 +01:00
committed by GetAway
parent eb9d9d8481
commit fb0cdcf1e6
7 changed files with 14 additions and 4 deletions

View File

@@ -309,6 +309,7 @@ ci.ignore_msg CA Meldungen ignorieren
ci.init_failed CAM-Init fehlgeschlagen ci.init_failed CAM-Init fehlgeschlagen
ci.init_ok CAM-Init beendet ci.init_ok CAM-Init beendet
ci.inserted CAM im Slot ci.inserted CAM im Slot
ci.rec_zapto Umschalten bei Aufnahmen mit CAM
ci.removed CAM entfernt -> Slot ci.removed CAM entfernt -> Slot
ci.reset Reset ci.reset Reset
ci.reset_standby Reset nach Standby ci.reset_standby Reset nach Standby

View File

@@ -309,6 +309,7 @@ ci.ignore_msg Ignore CA messages
ci.init_failed CAM init failed ci.init_failed CAM init failed
ci.init_ok CAM init complete ci.init_ok CAM init complete
ci.inserted CAM inserted in slot ci.inserted CAM inserted in slot
ci.rec_zapto Zap when recording needs CAM
ci.removed CAM removed from slot ci.removed CAM removed from slot
ci.reset Reset ci.reset Reset
ci.reset_standby Reset after standby ci.reset_standby Reset after standby

View File

@@ -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_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)); 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)); 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); 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); ci_mode->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_CI_MODE);
cammenu->addItem(ci_mode); cammenu->addItem(ci_mode);

View File

@@ -466,6 +466,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
g_settings.ci_save_pincode = configfile.getInt32("ci_save_pincode", 0); g_settings.ci_save_pincode = configfile.getInt32("ci_save_pincode", 0);
g_settings.ci_pincode = configfile.getString("ci_pincode", ""); g_settings.ci_pincode = configfile.getString("ci_pincode", "");
g_settings.ci_tuner = configfile.getInt32("ci_tuner", -1); g_settings.ci_tuner = configfile.getInt32("ci_tuner", -1);
g_settings.ci_rec_zapto = configfile.getInt32("ci_rec_zapto", 0);
#ifndef CPU_FREQ #ifndef CPU_FREQ
g_settings.cpufreq = 0; 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.setInt32("ci_save_pincode", g_settings.ci_save_pincode);
configfile.setString("ci_pincode", g_settings.ci_pincode); configfile.setString("ci_pincode", g_settings.ci_pincode);
configfile.setInt32("ci_tuner", g_settings.ci_tuner); 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_hd_list", g_settings.make_hd_list);
configfile.setInt32( "make_webtv_list", g_settings.make_webtv_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))) if((eventinfo->channel_id != live_channel_id) && !(SAME_TRANSPONDER(live_channel_id, eventinfo->channel_id)))
zapTo(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) { if (g_settings.recording_type != CNeutrinoApp::RECORDING_OFF) {
CRecordManager::getInstance()->Record(eventinfo); CRecordManager::getInstance()->Record(eventinfo);
autoshift = CRecordManager::getInstance()->TimeshiftOnly(); autoshift = CRecordManager::getInstance()->TimeshiftOnly();

View File

@@ -336,6 +336,7 @@ typedef enum
LOCALE_CI_INIT_FAILED, LOCALE_CI_INIT_FAILED,
LOCALE_CI_INIT_OK, LOCALE_CI_INIT_OK,
LOCALE_CI_INSERTED, LOCALE_CI_INSERTED,
LOCALE_CI_REC_ZAPTO,
LOCALE_CI_REMOVED, LOCALE_CI_REMOVED,
LOCALE_CI_RESET, LOCALE_CI_RESET,
LOCALE_CI_RESET_STANDBY, LOCALE_CI_RESET_STANDBY,

View File

@@ -336,6 +336,7 @@ const char * locale_real_names[] =
"ci.init_failed", "ci.init_failed",
"ci.init_ok", "ci.init_ok",
"ci.inserted", "ci.inserted",
"ci.rec_zapto",
"ci.removed", "ci.removed",
"ci.reset", "ci.reset",
"ci.reset_standby", "ci.reset_standby",

View File

@@ -288,8 +288,7 @@ struct SNeutrinoSettings
int ci_ignore_messages; int ci_ignore_messages;
int ci_save_pincode; int ci_save_pincode;
int ci_tuner; int ci_tuner;
int ci_rec_zapto;
std::string ci_pincode; std::string ci_pincode;
int radiotext_enable; int radiotext_enable;
int webradio_xml_auto; int webradio_xml_auto;