From b8b95f61edd10111c3eb2c13b0f44709c8615f71 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Mon, 17 Jun 2019 14:55:37 +0200 Subject: [PATCH] Add more options to cRecMenuSearchTimerEdit --- po/ca_ES.po | 148 ++++++++++++++++++++++++++--------- po/de_DE.po | 180 +++++++++++++++++++++++++++++++----------- po/it_IT.po | 180 +++++++++++++++++++++++++++++++----------- po/ru_RU.po | 148 ++++++++++++++++++++++++++--------- po/sk_SK.po | 148 ++++++++++++++++++++++++++--------- recmenus.c | 221 ++++++++++++++++++++++++++++++++++------------------ recmenus.h | 9 +++ 7 files changed, 762 insertions(+), 272 deletions(-) diff --git a/po/ca_ES.po b/po/ca_ES.po index 1ffe8de..624ec35 100644 --- a/po/ca_ES.po +++ b/po/ca_ES.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-tvguide 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-17 11:52+0200\n" +"POT-Creation-Date: 2019-06-17 15:58+0200\n" "PO-Revision-Date: 2013-09-21 17:49+0200\n" "Last-Translator: My friend Thanks David \n" "Language-Team: \n" @@ -303,57 +303,33 @@ msgstr "" msgid "Save Search Timer" msgstr "" -msgid "Search String" +msgid "Search term" msgstr "" msgid "Active" msgstr "" -msgid "Search Mode" -msgstr "Mode de cerca" - -msgid "Use Title" -msgstr "Utilitza títol" - -msgid "Use Subtitle" -msgstr "Utilitza subtítol" - -msgid "Use Description" -msgstr "Utilitza descripció" - -msgid "Limit Channels" -msgstr "Canals restringits" - -msgid "Use Time" -msgstr "Utilitza temps" - -msgid "Limit Days of the Week" +msgid "Search mode" msgstr "" -msgid "Time margin for start in minutes" +msgid "Tolerance" msgstr "" -msgid "Time margin for stop in minutes" +msgid "Match case" msgstr "" -msgid "Series Recording" +msgid "Use title" msgstr "" -msgid "Folder" +msgid "Use subtitle" msgstr "" -msgid "Use VPS" +msgid "Use description" msgstr "" -msgid "Avoid Repeats" +msgid "Use channel" msgstr "" -msgid "Use in Favorites" -msgstr "" - -msgid "Display Results for Search Timer" -msgstr "Mostra resultats de la cerca" - msgid "Start Channel" msgstr "Inicia canal" @@ -363,16 +339,70 @@ msgstr "Atura canal" msgid "Channel Group" msgstr "" +msgid "Use time" +msgstr "" + msgid "Start after" msgstr "Comença després" msgid "Start before" msgstr "Comença abans" -msgid "Select Days" +msgid "Use duration" msgstr "" -msgid "Number of allowed repeats" +msgid "Min. duration" +msgstr "" + +msgid "Max. duration" +msgstr "" + +msgid "Use day of week" +msgstr "" + +msgid "Day of week" +msgstr "" + +msgid "Use in Favorites" +msgstr "" + +msgid "Use as search timer" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Switch ... minutes before start" +msgstr "" + +msgid "Unmute sound" +msgstr "" + +msgid "Ask ... minutes before start" +msgstr "" + +msgid "Series Recording" +msgstr "" + +msgid "Directory" +msgstr "" + +msgid "Delete recordings after ... days" +msgstr "" + +msgid "Keep ... recordings" +msgstr "" + +msgid "Pause when ... recordings exist" +msgstr "" + +msgid "Avoid Repeats" +msgstr "" + +msgid "Allowed repeats" +msgstr "" + +msgid "Only repeats within ... days" msgstr "" msgid "Compare Title" @@ -384,6 +414,33 @@ msgstr "" msgid "Compare Description" msgstr "" +msgid "Min. match in %" +msgstr "" + +msgid "Compare date" +msgstr "" + +msgid "Time margin for start in minutes" +msgstr "" + +msgid "Time margin for stop in minutes" +msgstr "" + +msgid "Use VPS" +msgstr "" + +msgid "Auto delete" +msgstr "" + +msgid "after ... recordings" +msgstr "" + +msgid "after ... days after first rec." +msgstr "" + +msgid "Display Results for Search Timer" +msgstr "Mostra resultats de la cerca" + msgid "Really delete Search Timer" msgstr "" @@ -459,6 +516,9 @@ msgstr "No s'ha creat el canvi de temporitzador" msgid "Switch Timer deleted" msgstr "Canvi de temporitzador esborrat" +msgid "Search Mode" +msgstr "Mode de cerca" + msgid "Channel to Search" msgstr "Canal a cercar" @@ -822,6 +882,9 @@ msgstr "" msgid "Folder for instant Recordings" msgstr "" +msgid "Folder" +msgstr "" + msgid "Use Remotetimers" msgstr "Utilitza temporitzadors remots" @@ -993,6 +1056,21 @@ msgstr "" msgid "TheMovieDB Vote Average" msgstr "" +#~ msgid "Use Title" +#~ msgstr "Utilitza títol" + +#~ msgid "Use Subtitle" +#~ msgstr "Utilitza subtítol" + +#~ msgid "Use Description" +#~ msgstr "Utilitza descripció" + +#~ msgid "Limit Channels" +#~ msgstr "Canals restringits" + +#~ msgid "Use Time" +#~ msgstr "Utilitza temps" + #~ msgid "RERUNS OF THIS SHOW" #~ msgstr "REEMISSIONS" diff --git a/po/de_DE.po b/po/de_DE.po index 1cef253..6b12bf2 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-tvguide 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-17 11:52+0200\n" +"POT-Creation-Date: 2019-06-17 15:58+0200\n" "PO-Revision-Date: 2012-08-25 17:49+0200\n" "Last-Translator: Horst\n" "Language-Team: \n" @@ -300,56 +300,32 @@ msgstr "Suchtimer konfigurieren" msgid "Save Search Timer" msgstr "Suchtimer speichern" -msgid "Search String" -msgstr "Suchbegriff" +msgid "Search term" +msgstr "" msgid "Active" msgstr "Aktiv" -msgid "Search Mode" -msgstr "Suchmodus" +msgid "Search mode" +msgstr "" -msgid "Use Title" -msgstr "Titel benutzen" +msgid "Tolerance" +msgstr "" -msgid "Use Subtitle" -msgstr "Untertitel benutzen" +msgid "Match case" +msgstr "" -msgid "Use Description" -msgstr "Beschreibung benutzen" +msgid "Use title" +msgstr "" -msgid "Limit Channels" -msgstr "Kanäle einschränken" +msgid "Use subtitle" +msgstr "" -msgid "Use Time" -msgstr "Zeit benutzen" +msgid "Use description" +msgstr "" -msgid "Limit Days of the Week" -msgstr "Wochentage beschränken" - -msgid "Time margin for start in minutes" -msgstr "Zeit vor Start in Minuten" - -msgid "Time margin for stop in minutes" -msgstr "Zeit nach Ende in Minuten" - -msgid "Series Recording" -msgstr "Serienaufnahme" - -msgid "Folder" -msgstr "Verzeichnis" - -msgid "Use VPS" -msgstr "VPS benutzen" - -msgid "Avoid Repeats" -msgstr "Wiederholungen vermeiden" - -msgid "Use in Favorites" -msgstr "Als Favorit benutzen" - -msgid "Display Results for Search Timer" -msgstr "Ergebnisse für Suchtimer anzeigen" +msgid "Use channel" +msgstr "" msgid "Start Channel" msgstr "Startkanal" @@ -360,17 +336,71 @@ msgstr "Stopkanal" msgid "Channel Group" msgstr "Kanalgruppe" +msgid "Use time" +msgstr "" + msgid "Start after" msgstr "Beginn nach" msgid "Start before" msgstr "Beginn vor" -msgid "Select Days" -msgstr "Tage bestimmen" +msgid "Use duration" +msgstr "" -msgid "Number of allowed repeats" -msgstr "Anzahl erlaubter Wiederholungen" +msgid "Min. duration" +msgstr "" + +msgid "Max. duration" +msgstr "" + +msgid "Use day of week" +msgstr "" + +msgid "Day of week" +msgstr "" + +msgid "Use in Favorites" +msgstr "Als Favorit benutzen" + +msgid "Use as search timer" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Switch ... minutes before start" +msgstr "" + +msgid "Unmute sound" +msgstr "" + +msgid "Ask ... minutes before start" +msgstr "" + +msgid "Series Recording" +msgstr "Serienaufnahme" + +msgid "Directory" +msgstr "" + +msgid "Delete recordings after ... days" +msgstr "" + +msgid "Keep ... recordings" +msgstr "" + +msgid "Pause when ... recordings exist" +msgstr "" + +msgid "Avoid Repeats" +msgstr "Wiederholungen vermeiden" + +msgid "Allowed repeats" +msgstr "" + +msgid "Only repeats within ... days" +msgstr "" msgid "Compare Title" msgstr "Titel vergleichen" @@ -381,6 +411,33 @@ msgstr "Untertitel vergleichen" msgid "Compare Description" msgstr "Beschreibung vergleichen" +msgid "Min. match in %" +msgstr "" + +msgid "Compare date" +msgstr "" + +msgid "Time margin for start in minutes" +msgstr "Zeit vor Start in Minuten" + +msgid "Time margin for stop in minutes" +msgstr "Zeit nach Ende in Minuten" + +msgid "Use VPS" +msgstr "VPS benutzen" + +msgid "Auto delete" +msgstr "" + +msgid "after ... recordings" +msgstr "" + +msgid "after ... days after first rec." +msgstr "" + +msgid "Display Results for Search Timer" +msgstr "Ergebnisse für Suchtimer anzeigen" + msgid "Really delete Search Timer" msgstr "Suchtimer wirklich löschen" @@ -456,6 +513,9 @@ msgstr "Umschalttimer NICHT erfolgreich angelegt" msgid "Switch Timer deleted" msgstr "Umschalttimer gelöscht" +msgid "Search Mode" +msgstr "Suchmodus" + msgid "Channel to Search" msgstr "Suche auf Kanal" @@ -819,6 +879,9 @@ msgstr "Festes Verzeichnis benutzen" msgid "Folder for instant Recordings" msgstr "Verzeichnis für Sofortaufnahmen" +msgid "Folder" +msgstr "Verzeichnis" + msgid "Use Remotetimers" msgstr "RemoteTimers benutzen" @@ -990,6 +1053,33 @@ msgstr "TheMovieDB Popularität" msgid "TheMovieDB Vote Average" msgstr "TheMovieDB durchschnittliche Bewertung" +#~ msgid "Search String" +#~ msgstr "Suchbegriff" + +#~ msgid "Use Title" +#~ msgstr "Titel benutzen" + +#~ msgid "Use Subtitle" +#~ msgstr "Untertitel benutzen" + +#~ msgid "Use Description" +#~ msgstr "Beschreibung benutzen" + +#~ msgid "Limit Channels" +#~ msgstr "Kanäle einschränken" + +#~ msgid "Use Time" +#~ msgstr "Zeit benutzen" + +#~ msgid "Limit Days of the Week" +#~ msgstr "Wochentage beschränken" + +#~ msgid "Select Days" +#~ msgstr "Tage bestimmen" + +#~ msgid "Number of allowed repeats" +#~ msgstr "Anzahl erlaubter Wiederholungen" + #~ msgid "Display advanced Options" #~ msgstr "Erweiterte Optionen anzeigen" diff --git a/po/it_IT.po b/po/it_IT.po index 855b33c..09d08d0 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-tvguide 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-17 11:52+0200\n" +"POT-Creation-Date: 2019-06-17 15:58+0200\n" "PO-Revision-Date: 2012-08-25 17:49+0200\n" "Last-Translator: fiveten_59\n" "Language-Team: \n" @@ -300,56 +300,32 @@ msgstr "Configura le opzione del Search Timer" msgid "Save Search Timer" msgstr "Salva il Search Timer" -msgid "Search String" -msgstr "Suchbegriff" +msgid "Search term" +msgstr "" msgid "Active" msgstr "Attivo" -msgid "Search Mode" -msgstr "Modalità di ricerca" +msgid "Search mode" +msgstr "" -msgid "Use Title" -msgstr "Usa Titolo" +msgid "Tolerance" +msgstr "" -msgid "Use Subtitle" -msgstr "Usa Sottotitolo" +msgid "Match case" +msgstr "" -msgid "Use Description" -msgstr "Usa Descrizione" +msgid "Use title" +msgstr "" -msgid "Limit Channels" -msgstr "Limite Canale" +msgid "Use subtitle" +msgstr "" -msgid "Use Time" -msgstr "Utilizza Time" +msgid "Use description" +msgstr "" -msgid "Limit Days of the Week" -msgstr "Limite dei giorni della settimana" - -msgid "Time margin for start in minutes" -msgstr "Margine di tempo per l'avvio in minuti" - -msgid "Time margin for stop in minutes" -msgstr "Margine di tempo per lo stop in minuti" - -msgid "Series Recording" -msgstr "Serie di registrazioni" - -msgid "Folder" -msgstr "Cartella" - -msgid "Use VPS" -msgstr "Utilizza VPS" - -msgid "Avoid Repeats" -msgstr "Evita ripetizioni" - -msgid "Use in Favorites" -msgstr "Utilizza nei favoriti" - -msgid "Display Results for Search Timer" -msgstr "Mostra risultati per il Search Timer" +msgid "Use channel" +msgstr "" msgid "Start Channel" msgstr "Avvia il Canale" @@ -360,17 +336,71 @@ msgstr "Ferma il Canale" msgid "Channel Group" msgstr "" +msgid "Use time" +msgstr "" + msgid "Start after" msgstr "Avvia dopo" msgid "Start before" msgstr "Avvia prima" -msgid "Select Days" -msgstr "Seleziona i giorni" +msgid "Use duration" +msgstr "" -msgid "Number of allowed repeats" -msgstr "Numero di ripetizioni permesse" +msgid "Min. duration" +msgstr "" + +msgid "Max. duration" +msgstr "" + +msgid "Use day of week" +msgstr "" + +msgid "Day of week" +msgstr "" + +msgid "Use in Favorites" +msgstr "Utilizza nei favoriti" + +msgid "Use as search timer" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Switch ... minutes before start" +msgstr "" + +msgid "Unmute sound" +msgstr "" + +msgid "Ask ... minutes before start" +msgstr "" + +msgid "Series Recording" +msgstr "Serie di registrazioni" + +msgid "Directory" +msgstr "" + +msgid "Delete recordings after ... days" +msgstr "" + +msgid "Keep ... recordings" +msgstr "" + +msgid "Pause when ... recordings exist" +msgstr "" + +msgid "Avoid Repeats" +msgstr "Evita ripetizioni" + +msgid "Allowed repeats" +msgstr "" + +msgid "Only repeats within ... days" +msgstr "" msgid "Compare Title" msgstr "Confonta Titolo" @@ -381,6 +411,33 @@ msgstr "Confonta Sottotitolo" msgid "Compare Description" msgstr "Confonta Descrizione" +msgid "Min. match in %" +msgstr "" + +msgid "Compare date" +msgstr "" + +msgid "Time margin for start in minutes" +msgstr "Margine di tempo per l'avvio in minuti" + +msgid "Time margin for stop in minutes" +msgstr "Margine di tempo per lo stop in minuti" + +msgid "Use VPS" +msgstr "Utilizza VPS" + +msgid "Auto delete" +msgstr "" + +msgid "after ... recordings" +msgstr "" + +msgid "after ... days after first rec." +msgstr "" + +msgid "Display Results for Search Timer" +msgstr "Mostra risultati per il Search Timer" + msgid "Really delete Search Timer" msgstr "Veramente eliminare il Search Timer" @@ -456,6 +513,9 @@ msgstr "Switch Timer NON creato" msgid "Switch Timer deleted" msgstr "Switch Timer eliminato" +msgid "Search Mode" +msgstr "Modalità di ricerca" + msgid "Channel to Search" msgstr "Canale da cercare" @@ -819,6 +879,9 @@ msgstr "Usa cartella fissa" msgid "Folder for instant Recordings" msgstr "Cartella per la registrazione immediata" +msgid "Folder" +msgstr "Cartella" + msgid "Use Remotetimers" msgstr "Usa Remotetimers" @@ -990,6 +1053,33 @@ msgstr "TheMovieDB Popularità" msgid "TheMovieDB Vote Average" msgstr "Voto medio di TheMovieDB" +#~ msgid "Search String" +#~ msgstr "Suchbegriff" + +#~ msgid "Use Title" +#~ msgstr "Usa Titolo" + +#~ msgid "Use Subtitle" +#~ msgstr "Usa Sottotitolo" + +#~ msgid "Use Description" +#~ msgstr "Usa Descrizione" + +#~ msgid "Limit Channels" +#~ msgstr "Limite Canale" + +#~ msgid "Use Time" +#~ msgstr "Utilizza Time" + +#~ msgid "Limit Days of the Week" +#~ msgstr "Limite dei giorni della settimana" + +#~ msgid "Select Days" +#~ msgstr "Seleziona i giorni" + +#~ msgid "Number of allowed repeats" +#~ msgstr "Numero di ripetizioni permesse" + #~ msgid "Display advanced Options" #~ msgstr "Mostra Opzioni avanzate" diff --git a/po/ru_RU.po b/po/ru_RU.po index db7014a..d1e102c 100644 --- a/po/ru_RU.po +++ b/po/ru_RU.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-tvguide 1.0.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-17 11:52+0200\n" +"POT-Creation-Date: 2019-06-17 15:58+0200\n" "PO-Revision-Date: 2013-09-25 17:49+0400\n" "Last-Translator: AmiD, ilya\n" "Language-Team: Russia-Cherepovets(wm.amid@gmail.com)\n" @@ -300,57 +300,33 @@ msgstr "" msgid "Save Search Timer" msgstr "" -msgid "Search String" +msgid "Search term" msgstr "" msgid "Active" msgstr "" -msgid "Search Mode" -msgstr "Режим поиска" - -msgid "Use Title" -msgstr "Искать в названиях" - -msgid "Use Subtitle" -msgstr "Искать в эпизодах" - -msgid "Use Description" -msgstr "Искать в описаниях" - -msgid "Limit Channels" -msgstr "Ограничить список каналов" - -msgid "Use Time" -msgstr "Время" - -msgid "Limit Days of the Week" +msgid "Search mode" msgstr "" -msgid "Time margin for start in minutes" +msgid "Tolerance" msgstr "" -msgid "Time margin for stop in minutes" +msgid "Match case" msgstr "" -msgid "Series Recording" +msgid "Use title" msgstr "" -msgid "Folder" +msgid "Use subtitle" msgstr "" -msgid "Use VPS" +msgid "Use description" msgstr "" -msgid "Avoid Repeats" +msgid "Use channel" msgstr "" -msgid "Use in Favorites" -msgstr "" - -msgid "Display Results for Search Timer" -msgstr "Тест" - msgid "Start Channel" msgstr "С канала" @@ -360,16 +336,70 @@ msgstr "По канал" msgid "Channel Group" msgstr "" +msgid "Use time" +msgstr "" + msgid "Start after" msgstr "С" msgid "Start before" msgstr "До" -msgid "Select Days" +msgid "Use duration" msgstr "" -msgid "Number of allowed repeats" +msgid "Min. duration" +msgstr "" + +msgid "Max. duration" +msgstr "" + +msgid "Use day of week" +msgstr "" + +msgid "Day of week" +msgstr "" + +msgid "Use in Favorites" +msgstr "" + +msgid "Use as search timer" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Switch ... minutes before start" +msgstr "" + +msgid "Unmute sound" +msgstr "" + +msgid "Ask ... minutes before start" +msgstr "" + +msgid "Series Recording" +msgstr "" + +msgid "Directory" +msgstr "" + +msgid "Delete recordings after ... days" +msgstr "" + +msgid "Keep ... recordings" +msgstr "" + +msgid "Pause when ... recordings exist" +msgstr "" + +msgid "Avoid Repeats" +msgstr "" + +msgid "Allowed repeats" +msgstr "" + +msgid "Only repeats within ... days" msgstr "" msgid "Compare Title" @@ -381,6 +411,33 @@ msgstr "" msgid "Compare Description" msgstr "" +msgid "Min. match in %" +msgstr "" + +msgid "Compare date" +msgstr "" + +msgid "Time margin for start in minutes" +msgstr "" + +msgid "Time margin for stop in minutes" +msgstr "" + +msgid "Use VPS" +msgstr "" + +msgid "Auto delete" +msgstr "" + +msgid "after ... recordings" +msgstr "" + +msgid "after ... days after first rec." +msgstr "" + +msgid "Display Results for Search Timer" +msgstr "Тест" + msgid "Really delete Search Timer" msgstr "" @@ -456,6 +513,9 @@ msgstr "Таймер переключения НЕ был создан!" msgid "Switch Timer deleted" msgstr "Таймер переключения удален" +msgid "Search Mode" +msgstr "Режим поиска" + msgid "Channel to Search" msgstr "Канал для поиска" @@ -819,6 +879,9 @@ msgstr "" msgid "Folder for instant Recordings" msgstr "" +msgid "Folder" +msgstr "" + msgid "Use Remotetimers" msgstr "RemoteTimers benutzen" @@ -990,6 +1053,21 @@ msgstr "" msgid "TheMovieDB Vote Average" msgstr "" +#~ msgid "Use Title" +#~ msgstr "Искать в названиях" + +#~ msgid "Use Subtitle" +#~ msgstr "Искать в эпизодах" + +#~ msgid "Use Description" +#~ msgstr "Искать в описаниях" + +#~ msgid "Limit Channels" +#~ msgstr "Ограничить список каналов" + +#~ msgid "Use Time" +#~ msgstr "Время" + #~ msgid "RERUNS OF THIS SHOW" #~ msgstr "ПОВТОРЫ ЭТОЙ ПЕРЕДАЧИ" diff --git a/po/sk_SK.po b/po/sk_SK.po index 9b30a92..573d19c 100644 --- a/po/sk_SK.po +++ b/po/sk_SK.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-tvguide 1.1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-17 11:52+0200\n" +"POT-Creation-Date: 2019-06-17 15:58+0200\n" "PO-Revision-Date: 2013-09-15 00:12+0100\n" "Last-Translator: Milan Hrala \n" "Language-Team: \n" @@ -300,57 +300,33 @@ msgstr "" msgid "Save Search Timer" msgstr "" -msgid "Search String" +msgid "Search term" msgstr "" msgid "Active" msgstr "" -msgid "Search Mode" -msgstr "Reim vyhadvania" - -msgid "Use Title" -msgstr "Poui nzov" - -msgid "Use Subtitle" -msgstr "Poui titulky" - -msgid "Use Description" -msgstr "Poui popis" - -msgid "Limit Channels" -msgstr "Obmedzi kanly" - -msgid "Use Time" -msgstr "Poui as" - -msgid "Limit Days of the Week" +msgid "Search mode" msgstr "" -msgid "Time margin for start in minutes" +msgid "Tolerance" msgstr "" -msgid "Time margin for stop in minutes" +msgid "Match case" msgstr "" -msgid "Series Recording" +msgid "Use title" msgstr "" -msgid "Folder" +msgid "Use subtitle" msgstr "" -msgid "Use VPS" +msgid "Use description" msgstr "" -msgid "Avoid Repeats" +msgid "Use channel" msgstr "" -msgid "Use in Favorites" -msgstr "" - -msgid "Display Results for Search Timer" -msgstr "Pozrie vsledky pre vyhadvanie plnov" - msgid "Start Channel" msgstr "Od kanlu" @@ -360,16 +336,70 @@ msgstr "Po kan msgid "Channel Group" msgstr "" +msgid "Use time" +msgstr "" + msgid "Start after" msgstr "Zaiatok po" msgid "Start before" msgstr "Zaiatok pred" -msgid "Select Days" +msgid "Use duration" msgstr "" -msgid "Number of allowed repeats" +msgid "Min. duration" +msgstr "" + +msgid "Max. duration" +msgstr "" + +msgid "Use day of week" +msgstr "" + +msgid "Day of week" +msgstr "" + +msgid "Use in Favorites" +msgstr "" + +msgid "Use as search timer" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Switch ... minutes before start" +msgstr "" + +msgid "Unmute sound" +msgstr "" + +msgid "Ask ... minutes before start" +msgstr "" + +msgid "Series Recording" +msgstr "" + +msgid "Directory" +msgstr "" + +msgid "Delete recordings after ... days" +msgstr "" + +msgid "Keep ... recordings" +msgstr "" + +msgid "Pause when ... recordings exist" +msgstr "" + +msgid "Avoid Repeats" +msgstr "" + +msgid "Allowed repeats" +msgstr "" + +msgid "Only repeats within ... days" msgstr "" msgid "Compare Title" @@ -381,6 +411,33 @@ msgstr "" msgid "Compare Description" msgstr "" +msgid "Min. match in %" +msgstr "" + +msgid "Compare date" +msgstr "" + +msgid "Time margin for start in minutes" +msgstr "" + +msgid "Time margin for stop in minutes" +msgstr "" + +msgid "Use VPS" +msgstr "" + +msgid "Auto delete" +msgstr "" + +msgid "after ... recordings" +msgstr "" + +msgid "after ... days after first rec." +msgstr "" + +msgid "Display Results for Search Timer" +msgstr "Pozrie vsledky pre vyhadvanie plnov" + msgid "Really delete Search Timer" msgstr "" @@ -456,6 +513,9 @@ msgstr "Pl msgid "Switch Timer deleted" msgstr "Pln prepnutia vymazan" +msgid "Search Mode" +msgstr "Reim vyhadvania" + msgid "Channel to Search" msgstr "Hada na kanle" @@ -819,6 +879,9 @@ msgstr "" msgid "Folder for instant Recordings" msgstr "" +msgid "Folder" +msgstr "" + msgid "Use Remotetimers" msgstr "Poui vzdialen plnova" @@ -990,6 +1053,21 @@ msgstr "" msgid "TheMovieDB Vote Average" msgstr "" +#~ msgid "Use Title" +#~ msgstr "Poui nzov" + +#~ msgid "Use Subtitle" +#~ msgstr "Poui titulky" + +#~ msgid "Use Description" +#~ msgstr "Poui popis" + +#~ msgid "Limit Channels" +#~ msgstr "Obmedzi kanly" + +#~ msgid "Use Time" +#~ msgstr "Poui as" + #~ msgid "RERUNS OF THIS SHOW" #~ msgstr "Reprza tohto programu" diff --git a/recmenus.c b/recmenus.c index 21949bc..7eeda14 100644 --- a/recmenus.c +++ b/recmenus.c @@ -723,25 +723,26 @@ int cRecMenuSearchTimers::GetTotalNumMenuItems(void) { // --- cRecMenuSearchTimerEdit --------------------------------------------------------- cRecMenuSearchTimerEdit::cRecMenuSearchTimerEdit(cTVGuideSearchTimer searchTimer, std::vector channelGroups) { - init = true; + init = true; deleteMenuItems = false; this->searchTimer = searchTimer; + this->sT = searchTimer; this->channelGroups = channelGroups; - strncpy(searchString, searchTimer.searchString.c_str(), TEXTINPUTLENGTH); + strncpy(searchString, sT.searchString.c_str(), TEXTINPUTLENGTH); channelgroupIndex = -1; - std::string dir = searchTimer.directory; + std::string dir = sT.directory; strncpy(directory, dir.c_str(), TEXTINPUTLENGTH); - searchTimer.GetSearchModes(&searchModes); - searchTimer.GetUseChannelModes(&useChannelModes); - searchTimer.GetCompareDateModes(&compareDateModes); - searchTimer.GetSearchTimerModes(&searchTimerModes); - searchTimer.GetDelModes(&delModes); + sT.GetSearchModes(&searchModes); + sT.GetUseChannelModes(&useChannelModes); + sT.GetCompareDateModes(&compareDateModes); + sT.GetSearchTimerModes(&searchTimerModes); + sT.GetDelModes(&delModes); channelgroupIndex = SplitChannelGroups(&channelGroups, &channelgroups); SetWidthPercent(70); cString infoText; - if (searchTimer.GetID() > -1) { + if (sT.GetID() > -1) { infoText = tr("Configure Search Timer Options"); } else { infoText = tr("Create Search Timer"); @@ -771,7 +772,7 @@ int cRecMenuSearchTimerEdit::SplitChannelGroups(std::vector *channe std::vector::iterator ito = value.begin(); channelgroups->push_back(*ito); std::string b = *ito; - if (b.compare(searchTimer.channelGroup) == 0) + if (b.compare(sT.channelGroup) == 0) j = i; i++; } @@ -792,54 +793,97 @@ void cRecMenuSearchTimerEdit::CreateMenuItems(void) { mainMenuItems.clear(); } - mainMenuItems.push_back(new cRecMenuItemText(tr("Search String"), searchString, TEXTINPUTLENGTH, false, searchString)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Active"), searchTimer.useAsSearchTimer, true, false, &searchTimer.useAsSearchTimer, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemSelect(tr("Search Mode"), searchModes, searchTimer.mode, false, &searchTimer.mode, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Use Title"), searchTimer.useTitle, false, false, &searchTimer.useTitle, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Use Subtitle"), searchTimer.useSubtitle, false, false, &searchTimer.useSubtitle, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Use Description"), searchTimer.useDescription, false, false, &searchTimer.useDescription, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemSelect(tr("Limit Channels"), useChannelModes, searchTimer.useChannel, false, &searchTimer.useChannel, rmsSearchTimerSave, true)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Use Time"), searchTimer.useTime, true, false, &searchTimer.useTime, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Limit Days of the Week"), searchTimer.useDayOfWeek, true, false, &searchTimer.useDayOfWeek, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemInt(tr("Priority"), searchTimer.priority, 0, 99, false, &searchTimer.priority, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemInt(tr("Lifetime"), searchTimer.lifetime, 0, 99, false, &searchTimer.lifetime, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemInt(tr("Time margin for start in minutes"), searchTimer.marginStart, 0, 30, false, &searchTimer.marginStart, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemInt(tr("Time margin for stop in minutes"), searchTimer.marginStop, 0, 30, false, &searchTimer.marginStop, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Series Recording"), searchTimer.useEpisode, false, false, &searchTimer.useEpisode, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemSelectDirectory(tr("Folder"), std::string(directory), false, directory, rmsSearchTimerSave, true)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Use VPS"), searchTimer.useVPS, false, false, &searchTimer.useVPS, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Avoid Repeats"), searchTimer.avoidRepeats, true, false, &searchTimer.avoidRepeats, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Use in Favorites"), searchTimer.useInFavorites, false, false, &searchTimer.useInFavorites, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemButton(tr("Display Results for Search Timer"), rmsSearchTimerTest, false)); - - if (searchTimer.useChannel == 1) { - startChannel = (searchTimer.channelMin) ? searchTimer.channelMin->Number() : 0; - stopChannel = (searchTimer.channelMax) ? searchTimer.channelMax->Number() : 0; + mainMenuItems.push_back(new cRecMenuItemText(tr("Search term"), searchString, TEXTINPUTLENGTH, init, searchString)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Active"), sT.useAsSearchTimer, true, false, &sT.useAsSearchTimer, rmsSearchTimerSave)); + mainMenuItems.push_back(new cRecMenuItemSelect(tr("Search mode"), searchModes, sT.mode, false, &sT.mode, rmsSearchTimerSave, true)); + if (sT.mode == 5) { + mainMenuItems.push_back(new cRecMenuItemInt(tr("Tolerance"), sT.fuzzyTolerance, 1, 9, false, &sT.fuzzyTolerance, rmsSearchTimerSave, 1)); + } + mainMenuItems.push_back(new cRecMenuItemBool(tr("Match case"), sT.useCase, false, false, &sT.useCase, rmsSearchTimerSave)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Use title"), sT.useTitle, false, false, &sT.useTitle, rmsSearchTimerSave)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Use subtitle"), sT.useSubtitle, false, false, &sT.useSubtitle, rmsSearchTimerSave)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Use description"), sT.useDescription, false, false, &sT.useDescription, rmsSearchTimerSave)); +// mainMenuItems.push_back(new cRecMenuItemBool(tr("Use content descriptor"), sT.useContentDescriptors, false, false, &sT.useContentDescriptors, rmsSearchTimerSave)); + mainMenuItems.push_back(new cRecMenuItemSelect(tr("Use channel"), useChannelModes, sT.useChannel, false, &sT.useChannel, rmsSearchTimerSave, true)); + if (sT.useChannel == 1) { + startChannel = (sT.channelMin) ? sT.channelMin->Number() : 0; + stopChannel = (sT.channelMax) ? sT.channelMax->Number() : 0; if (startChannel == 0) startChannel = 1; if (stopChannel == 0) stopChannel = 1; #if VDRVERSNUM >= 20301 { LOCK_CHANNELS_READ; - mainMenuItems.push_back(new cRecMenuItemChannelChooser(tr("Start Channel"), Channels->GetByNumber(startChannel), false, &startChannel, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemChannelChooser(tr("Stop Channel"), Channels->GetByNumber(stopChannel), false, &stopChannel, rmsSearchTimerSave)); + mainMenuItems.push_back(new cRecMenuItemChannelChooser(tr("from channel"), Channels->GetByNumber(startChannel), false, &startChannel, rmsSearchTimerSave, 1)); + mainMenuItems.push_back(new cRecMenuItemChannelChooser(tr("to channel"), Channels->GetByNumber(stopChannel), false, &stopChannel, rmsSearchTimerSave, 1)); } #else - mainMenuItems.push_back(new cRecMenuItemChannelChooser(tr("Start Channel"), Channels.GetByNumber(startChannel), false, &startChannel, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemChannelChooser(tr("Stop Channel"), Channels.GetByNumber(stopChannel), false, &stopChannel, rmsSearchTimerSave)); + mainMenuItems.push_back(new cRecMenuItemChannelChooser(tr("from channel"), Channels.GetByNumber(startChannel), false, &startChannel, rmsSearchTimerSave, 1)); + mainMenuItems.push_back(new cRecMenuItemChannelChooser(tr("to channel"), Channels.GetByNumber(stopChannel), false, &stopChannel, rmsSearchTimerSave, 1)); #endif } - else if ((searchTimer.useChannel == 2) && (channelgroups.size() > 0)) { - mainMenuItems.push_back(new cRecMenuItemSelect(tr("Channel Group"), channelgroups, channelgroupIndex, false, &channelgroupIndex, rmsSearchTimerSave)); + else if ((sT.useChannel == 2) && (channelgroups.size() > 0)) { + mainMenuItems.push_back(new cRecMenuItemSelect(tr("Channel group"), channelgroups, channelgroupIndex, false, &channelgroupIndex, rmsSearchTimerSave, false, 1)); } - - mainMenuItems.push_back(new cRecMenuItemTime(tr("Start after"), searchTimer.startTime, false, &searchTimer.startTime, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemTime(tr("Start before"), searchTimer.stopTime, false, &searchTimer.stopTime, rmsSearchTimerSave)); - - mainMenuItems.push_back(new cRecMenuItemDayChooser(tr("Select Days"), searchTimer.dayOfWeek, false, &searchTimer.dayOfWeek)); - mainMenuItems.push_back(new cRecMenuItemInt(tr("Number of allowed repeats"), searchTimer.allowedRepeats, 0, 30, false, &searchTimer.allowedRepeats, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Compare Title"), searchTimer.compareTitle, false, false, &searchTimer.compareTitle, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Compare Subtitle"), searchTimer.compareSubtitle, false, false, &searchTimer.compareSubtitle, rmsSearchTimerSave)); - mainMenuItems.push_back(new cRecMenuItemBool(tr("Compare Description"), searchTimer.compareSummary, false, false, &searchTimer.compareSummary, rmsSearchTimerSave)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Use time"), sT.useTime, true, false, &sT.useTime, rmsSearchTimerSave)); + if (sT.useTime) { + mainMenuItems.push_back(new cRecMenuItemTime(tr("Start after"), sT.startTime, false, &sT.startTime, rmsSearchTimerSave, 1)); + mainMenuItems.push_back(new cRecMenuItemTime(tr("Start before"), sT.stopTime, false, &sT.stopTime, rmsSearchTimerSave, 1)); + } + mainMenuItems.push_back(new cRecMenuItemBool(tr("Use duration"), sT.useDuration, true, false, &sT.useDuration, rmsSearchTimerSave)); + if (sT.useDuration) { + mainMenuItems.push_back(new cRecMenuItemTime(tr("Min. duration"), sT.minDuration, false, &sT.minDuration, rmsSearchTimerSave, 1)); + mainMenuItems.push_back(new cRecMenuItemTime(tr("Max. duration"), sT.maxDuration, false, &sT.maxDuration, rmsSearchTimerSave, 1)); + } + mainMenuItems.push_back(new cRecMenuItemBool(tr("Use day of week"), sT.useDayOfWeek, true, false, &sT.useDayOfWeek, rmsSearchTimerSave)); + if (sT.useDayOfWeek) + mainMenuItems.push_back(new cRecMenuItemDayChooser(tr("Day of week"), sT.dayOfWeek, false, &sT.dayOfWeek, 1)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Use in Favorites"), sT.useInFavorites, false, false, &sT.useInFavorites, rmsSearchTimerSave)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Use as search timer"), sT.useAsSearchTimer, true, false, &sT.useAsSearchTimer, rmsSearchTimerSave)); + if (sT.useAsSearchTimer) { + mainMenuItems.push_back(new cRecMenuItemSelect(tr("Action"), searchTimerModes, sT.action, false, &sT.action, rmsSearchTimerSave, true, 1)); + if (sT.action == searchTimerActionSwitchOnly) { + mainMenuItems.push_back(new cRecMenuItemInt(tr("Switch ... minutes before start"), sT.switchMinsBefore, 0, 99, false, &sT.switchMinsBefore, rmsSearchTimerSave, 2)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Unmute sound"), sT.unmuteSoundOnSwitch, false, false, &sT.unmuteSoundOnSwitch, rmsSearchTimerSave, 2)); + } + if (sT.action == searchTimerActionAnnounceAndSwitch) { + mainMenuItems.push_back(new cRecMenuItemInt(tr("Ask ... minutes before start"), sT.switchMinsBefore, 0, 99, false, &sT.switchMinsBefore, rmsSearchTimerSave, 2)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Unmute sound"), sT.unmuteSoundOnSwitch, false, false, &sT.unmuteSoundOnSwitch, rmsSearchTimerSave, 2)); + } + if ((sT.action == searchTimerActionRecord) || (sT.action == searchTimerActionInactiveRecord)) { + mainMenuItems.push_back(new cRecMenuItemBool(tr("Series Recording"), sT.useEpisode, false, false, &sT.useEpisode, rmsSearchTimerSave, 2)); + mainMenuItems.push_back(new cRecMenuItemSelectDirectory(tr("Directory"), std::string(directory), false, directory, rmsSearchTimerSave, true, 2)); + mainMenuItems.push_back(new cRecMenuItemInt(tr("Delete recordings after ... days"), sT.delAfterDays, 0, 999, false, &sT.delAfterDays, rmsSearchTimerSave, 2)); + if (sT.delAfterDays > 0) { + mainMenuItems.push_back(new cRecMenuItemInt(tr("Keep ... recordings"), sT.recordingsKeep, 0, 999, false, &sT.recordingsKeep, rmsSearchTimerSave, 3)); + } + mainMenuItems.push_back(new cRecMenuItemInt(tr("Pause when ... recordings exist"), sT.pauseOnNrRecordings, 0, 999, false, &sT.pauseOnNrRecordings, rmsSearchTimerSave, 2)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Avoid Repeats"), sT.avoidRepeats, true, false, &sT.avoidRepeats, rmsSearchTimerSave, 2)); + if (sT.avoidRepeats) { + mainMenuItems.push_back(new cRecMenuItemInt(tr("Allowed repeats"), sT.allowedRepeats, 0, 99, false, &sT.allowedRepeats, rmsSearchTimerSave, 3)); + if (sT.allowedRepeats > 0) { + mainMenuItems.push_back(new cRecMenuItemInt(tr("Only repeats within ... days"), sT.repeatsWithinDays, 0, 999, false, &sT.repeatsWithinDays, rmsSearchTimerSave, 4)); + } + mainMenuItems.push_back(new cRecMenuItemBool(tr("Compare Title"), sT.compareTitle, false, false, &sT.compareTitle, rmsSearchTimerSave, 3)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Compare Subtitle"), sT.compareSubtitle, false, false, &sT.compareSubtitle, rmsSearchTimerSave, 3)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Compare Description"), sT.compareSummary, true, false, &sT.compareSummary, rmsSearchTimerSave, 3)); + if (sT.compareSummary) { + mainMenuItems.push_back(new cRecMenuItemInt(tr("Min. match in %"), sT.compareSummaryMatchInPercent, 1, 100, false, &sT.compareSummaryMatchInPercent, rmsSearchTimerSave, 4)); + } + mainMenuItems.push_back(new cRecMenuItemSelect(tr("Compare date"), compareDateModes, sT.compareDate, false, &sT.compareDate, rmsSearchTimerSave, false, 3)); + } + mainMenuItems.push_back(new cRecMenuItemInt(tr("Priority"), sT.priority, 0, 99, false, &sT.priority, rmsSearchTimerSave, 2)); + mainMenuItems.push_back(new cRecMenuItemInt(tr("Lifetime"), sT.lifetime, 0, 99, false, &sT.lifetime, rmsSearchTimerSave, 2)); + mainMenuItems.push_back(new cRecMenuItemInt(tr("Time margin for start in minutes"), sT.marginStart, 0, 30, false, &sT.marginStart, rmsSearchTimerSave, 2)); + mainMenuItems.push_back(new cRecMenuItemInt(tr("Time margin for stop in minutes"), sT.marginStop, 0, 30, false, &sT.marginStop, rmsSearchTimerSave, 2)); + mainMenuItems.push_back(new cRecMenuItemBool(tr("Use VPS"), sT.useVPS, false, false, &sT.useVPS, rmsSearchTimerSave, 2)); + mainMenuItems.push_back(new cRecMenuItemSelect(tr("Auto delete"), delModes, sT.delMode, false, &sT.delMode, rmsSearchTimerSave, true, 2)); + if (sT.delMode == 1) + mainMenuItems.push_back(new cRecMenuItemInt(tr("after ... recordings"), sT.delAfterCountRecs, 0, 999, false, &sT.delAfterCountRecs, rmsSearchTimerSave, 3)); + else if (sT.delMode == 2) + mainMenuItems.push_back(new cRecMenuItemInt(tr("after ... days after first rec."), sT.delAfterDaysOfFirstRec, 0, 999, false, &sT.delAfterDaysOfFirstRec, rmsSearchTimerSave, 3)); + } + } + mainMenuItems.push_back(new cRecMenuItemButton(tr("Display Results for Search Timer"), rmsSearchTimerTest, false)); bool reDraw = false; if (GetCurrentNumMenuItems() > 0) { @@ -869,50 +913,73 @@ void cRecMenuSearchTimerEdit::CreateMenuItems(void) { cTVGuideSearchTimer cRecMenuSearchTimerEdit::GetSearchTimer(void) { dsyslog ("%s %s %d\n", __FILE__, __func__, __LINE__); searchTimer.SetSearchString(searchString); - searchTimer.SetSearchMode(searchTimer.mode); - searchTimer.SetUseTitle(searchTimer.useTitle); - searchTimer.SetUseSubtitle(searchTimer.useSubtitle); - searchTimer.SetUseDesription(searchTimer.useDescription); - if (searchTimer.useChannel == 1) { + searchTimer.SetSearchMode(sT.mode); + searchTimer.SetFuzzyTolerance(sT.fuzzyTolerance); + searchTimer.SetUseCase(sT.useCase); + searchTimer.SetUseTitle(sT.useTitle); + searchTimer.SetUseSubtitle(sT.useSubtitle); + searchTimer.SetUseDesription(sT.useDescription); + if (sT.useChannel == 1) { searchTimer.SetStartChannel(startChannel); searchTimer.SetStopChannel(stopChannel); } - if (searchTimer.useChannel == 2) { + if (sT.useChannel == 2) { if (channelgroups.size() > 0) { std::string & channelGroup = channelgroups[channelgroupIndex]; searchTimer.SetChannelGroup(channelGroup); } else { - searchTimer.useChannel = 0; + sT.useChannel = 0; } } - searchTimer.SetUseChannel(searchTimer.useChannel); - searchTimer.SetUseTime(searchTimer.useTime); - if (searchTimer.useTime) { - searchTimer.SetStartTime(searchTimer.startTime); - searchTimer.SetStopTime(searchTimer.stopTime); + searchTimer.SetUseChannel(sT.useChannel); + searchTimer.SetUseTime(sT.useTime); + if (sT.useTime) { + searchTimer.SetStartTime(sT.startTime); + searchTimer.SetStopTime(sT.stopTime); } - searchTimer.SetUseDayOfWeek(searchTimer.useDayOfWeek); - if (searchTimer.useDayOfWeek) { - searchTimer.SetDayOfWeek(searchTimer.dayOfWeek); + searchTimer.SetUseDuration(sT.useDuration); + if (sT.useDuration) { + searchTimer.SetMinDuration(sT.minDuration); + searchTimer.SetMaxDuration(sT.maxDuration); } - searchTimer.SetUseAsSearchTimer(searchTimer.useAsSearchTimer); - searchTimer.SetPriority(searchTimer.priority); - searchTimer.SetLifetime(searchTimer.lifetime); - searchTimer.SetUseEpisode(searchTimer.useEpisode); + searchTimer.SetUseDayOfWeek(sT.useDayOfWeek); + if (sT.useDayOfWeek) { + searchTimer.SetDayOfWeek(sT.dayOfWeek); + } + searchTimer.SetUseAsSearchTimer(sT.useAsSearchTimer); + searchTimer.SetAction(sT.action); + searchTimer.SetSwitchMinsBefore(sT.switchMinsBefore); + searchTimer.SetUnmuteSoundOnSwitch(sT.unmuteSoundOnSwitch); + searchTimer.SetPriority(sT.priority); + searchTimer.SetLifetime(sT.lifetime); + searchTimer.SetUseEpisode(sT.useEpisode); std::string dir(directory); std::replace(dir.begin(), dir.end(), '/', '~'); searchTimer.SetDirectory(dir); - searchTimer.SetMarginStart(searchTimer.marginStart); - searchTimer.SetMarginStop(searchTimer.marginStop); - searchTimer.SetUseVPS(searchTimer.useVPS); - searchTimer.SetAvoidRepeats(searchTimer.avoidRepeats); - if (searchTimer.avoidRepeats) { - searchTimer.SetAllowedRepeats(searchTimer.allowedRepeats); - searchTimer.SetCompareTitle(searchTimer.compareTitle); - searchTimer.SetCompareSubtitle(searchTimer.compareSubtitle); - searchTimer.SetCompareSummary(searchTimer.compareSummary); + searchTimer.SetDelAfterDays(sT.delAfterDays); + searchTimer.SetRecordingsKeep(sT.recordingsKeep); + searchTimer.SetPauseOnNrRecordings(sT.pauseOnNrRecordings); + searchTimer.SetMarginStart(sT.marginStart); + searchTimer.SetMarginStop(sT.marginStop); + searchTimer.SetUseVPS(sT.useVPS); + searchTimer.SetAvoidRepeats(sT.avoidRepeats); + if (sT.avoidRepeats) { + searchTimer.SetAllowedRepeats(sT.allowedRepeats); + if (sT.repeatsWithinDays > 0) { + searchTimer.SetRepeatsWithinDays(sT.repeatsWithinDays); + } + searchTimer.SetCompareTitle(sT.compareTitle); + searchTimer.SetCompareSubtitle(sT.compareSubtitle); + searchTimer.SetCompareSummary(sT.compareSummary); + if (sT.compareSummary) { + searchTimer.SetCompareSummaryMatchInPercent(sT.compareSummaryMatchInPercent); + } + searchTimer.SetCompareDate(sT.compareDate); } - searchTimer.SetUseInFavorites(searchTimer.useInFavorites); + searchTimer.SetUseInFavorites(sT.useInFavorites); + searchTimer.SetDelMode(sT.delMode); + searchTimer.SetDelAfterCountRecs(sT.delAfterCountRecs); + searchTimer.SetDelAfterDaysOfFirstRec(sT.delAfterDaysOfFirstRec); return searchTimer; } diff --git a/recmenus.h b/recmenus.h index 84c756f..156f423 100644 --- a/recmenus.h +++ b/recmenus.h @@ -10,6 +10,15 @@ #include "switchtimer.h" #include "recmanager.h" +typedef enum { + searchTimerActionRecord = 0, + searchTimerActionAnnounceViaOSD, + searchTimerActionSwitchOnly, + searchTimerActionAnnounceAndSwitch, + searchTimerActionAnnounceViaMail, + searchTimerActionInactiveRecord +} searchTimerAction; + // --- cRecMenuMain --------------------------------------------------------- class cRecMenuMain : public cRecMenu { public: