diff --git a/HISTORY b/HISTORY index 7689974a..f5fea548 100644 --- a/HISTORY +++ b/HISTORY @@ -9130,7 +9130,7 @@ Video Disk Recorder Revision History before including tools.h in case some plugin needs to use the STL and gets error messages regarding one of the template functions defined in tools.h. -2017-06-25: Version 2.3.8 +2017-06-30: Version 2.3.8 - Updated links in the INSTALL file (thanks to Chris Mayo). - Fixed detecting whether a CAM replies to queries, which didn't work on some systems @@ -9160,3 +9160,4 @@ Video Disk Recorder Revision History UPDR is now sent to all peer VDRs, so that they will update their recordings list. This is especially useful if one VDR mounts the video directory of an other one into a subdirectory. +- SVDRP peering can now be limited to the default SVDRP host (see MANUAL for details). diff --git a/MANUAL b/MANUAL index 0234f77b..47b2fdd2 100644 --- a/MANUAL +++ b/MANUAL @@ -1085,8 +1085,16 @@ Version 2.2 connection after which the connection is automatically closed. Default is 300, a value of 0 means no timeout. - SVDRP peering = no Activates automatic connections between VDRs in the same - network. + SVDRP peering = off Activates automatic connections between VDRs in the same + network. If set to "any hosts" this VDR will establish + connections with any available hosts. If set to "only + default host" this VDR will only connect to the VDR with + the name defined in "SVDRP default host". If no default + host has been defined, the behavior is the same as with + "any hosts". To switch from "off" to "only default host", + you may need to select "any hosts" first and confirm the + dialog by pressing "Ok" in order to be able to select a + default host. SVDRP host name The name of this VDR, which is used when connecting VDRs via SVDRP. By default, the machine's host name is used. diff --git a/menu.c b/menu.c index 98e0f1e9..c2c12dd8 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 4.40 2017/06/25 10:02:09 kls Exp $ + * $Id: menu.c 4.41 2017/06/30 09:49:39 kls Exp $ */ #include "menu.h" @@ -4023,6 +4023,7 @@ void cMenuSetupReplay::Store(void) class cMenuSetupMisc : public cMenuSetupBase { private: + const char *svdrpPeeringModeTexts[3]; const char *showChannelNamesWithSourceTexts[3]; cStringList svdrpServerNames; void Set(void); @@ -4034,6 +4035,9 @@ public: cMenuSetupMisc::cMenuSetupMisc(void) { SetMenuCategory(mcSetupMisc); + svdrpPeeringModeTexts[0] = tr("off"); + svdrpPeeringModeTexts[1] = tr("any hosts"); + svdrpPeeringModeTexts[2] = tr("only default host"); showChannelNamesWithSourceTexts[0] = tr("off"); showChannelNamesWithSourceTexts[1] = tr("type"); showChannelNamesWithSourceTexts[2] = tr("full"); @@ -4048,7 +4052,7 @@ void cMenuSetupMisc::Set(void) Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Min. event timeout (min)"), &data.MinEventTimeout)); Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Min. user inactivity (min)"), &data.MinUserInactivity)); Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$SVDRP timeout (s)"), &data.SVDRPTimeout)); - Add(new cMenuEditBoolItem(tr("Setup.Miscellaneous$SVDRP peering"), &data.SVDRPPeering)); + Add(new cMenuEditStraItem(tr("Setup.Miscellaneous$SVDRP peering"), &data.SVDRPPeering, 3, svdrpPeeringModeTexts)); if (data.SVDRPPeering) { Add(new cMenuEditStrItem( tr("Setup.Miscellaneous$SVDRP host name"), data.SVDRPHostName, sizeof(data.SVDRPHostName))); if (GetSVDRPServerNames(&svdrpServerNames)) { diff --git a/po/ar.po b/po/ar.po index 267d5184..f8b03947 100644 --- a/po/ar.po +++ b/po/ar.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2008-10-16 11:16-0400\n" "Last-Translator: Osama Alrawab \n" "Language-Team: Arabic \n" @@ -1302,6 +1302,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "رقم المواصلة" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/ca_ES.po b/po/ca_ES.po index 42b2bc56..285f7e3d 100644 --- a/po/ca_ES.po +++ b/po/ca_ES.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2008-03-02 19:02+0100\n" "Last-Translator: Luca Olivetti \n" "Language-Team: Catalan \n" @@ -1301,6 +1301,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "ID de Continuar" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/cs_CZ.po b/po/cs_CZ.po index 8036f12c..3defcbd1 100644 --- a/po/cs_CZ.po +++ b/po/cs_CZ.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2010-05-06 11:00+0200\n" "Last-Translator: Aleš Juřík \n" "Language-Team: Czech \n" @@ -1301,6 +1301,12 @@ msgstr "Velikost skoku za použití tlačítek Zelená/Žlutá při opakování msgid "Setup.Replay$Resume ID" msgstr "ID obnovení" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/da_DK.po b/po/da_DK.po index 5c3f870f..906aa61c 100644 --- a/po/da_DK.po +++ b/po/da_DK.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2007-08-12 14:17+0200\n" "Last-Translator: Mogens Elneff \n" "Language-Team: Danish \n" @@ -1298,6 +1298,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "Genoptagelses ID" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/de_DE.po b/po/de_DE.po index 7b1ac5ea..d7e6576e 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-10 13:45+0100\n" "Last-Translator: Klaus Schmidinger \n" "Language-Team: German \n" @@ -1299,6 +1299,12 @@ msgstr "Sprungweite mit Taste Gr msgid "Setup.Replay$Resume ID" msgstr "Wiedergabe-ID" +msgid "any hosts" +msgstr "mit jeder Maschine" + +msgid "only default host" +msgstr "nur mit der Standardmaschine" + msgid "type" msgstr "Typ" diff --git a/po/el_GR.po b/po/el_GR.po index b64518aa..db382e80 100644 --- a/po/el_GR.po +++ b/po/el_GR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2007-08-12 14:17+0200\n" "Last-Translator: Dimitrios Dimitrakos \n" "Language-Team: Greek \n" @@ -1298,6 +1298,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "ID " +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/es_ES.po b/po/es_ES.po index a010c3fe..e61ed66d 100644 --- a/po/es_ES.po +++ b/po/es_ES.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-19 23:00+0100\n" "Last-Translator: Gabriel Bonich \n" "Language-Team: Spanish \n" @@ -1299,6 +1299,12 @@ msgstr "Saltar distancia con teclas verde/amarillo en la repetici msgid "Setup.Replay$Resume ID" msgstr "ID de continuacin" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/et_EE.po b/po/et_EE.po index 40260987..e58f97e7 100644 --- a/po/et_EE.po +++ b/po/et_EE.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2007-08-12 14:17+0200\n" "Last-Translator: Arthur Konovalov \n" "Language-Team: Estonian \n" @@ -1298,6 +1298,12 @@ msgstr "Klahvide Roheline/Kollane korduv hüpe (s)" msgid "Setup.Replay$Resume ID" msgstr "Taasesituse tunnus" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/fi_FI.po b/po/fi_FI.po index 6ed0af2a..964d8d0f 100644 --- a/po/fi_FI.po +++ b/po/fi_FI.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2007-08-15 15:52+0200\n" "Last-Translator: Matti Lehtimäki \n" "Language-Team: Finnish \n" @@ -1302,6 +1302,12 @@ msgstr "Toistohypyn kesto värinäppäimillä (s)" msgid "Setup.Replay$Resume ID" msgstr "Tallenteen paluutunniste" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/fr_FR.po b/po/fr_FR.po index 3a04653b..e3c7e084 100644 --- a/po/fr_FR.po +++ b/po/fr_FR.po @@ -18,7 +18,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-18 20:16+0100\n" "Last-Translator: Bernard Jaulin \n" "Language-Team: French \n" @@ -1309,6 +1309,12 @@ msgstr "Durée du saut pour les touches Verte/Jaune en répétition (s)" msgid "Setup.Replay$Resume ID" msgstr "ID résumé" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/hr_HR.po b/po/hr_HR.po index f7b3dd39..c70a5c33 100644 --- a/po/hr_HR.po +++ b/po/hr_HR.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2008-03-17 19:00+0100\n" "Last-Translator: Adrian Caval \n" "Language-Team: Croatian \n" @@ -1300,6 +1300,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "ID nastavka" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/hu_HU.po b/po/hu_HU.po index 91749940..d1f80b7f 100644 --- a/po/hu_HU.po +++ b/po/hu_HU.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-13 09:36+0200\n" "Last-Translator: István Füley \n" "Language-Team: Hungarian \n" @@ -1303,6 +1303,12 @@ msgstr "Ismételt ugrástáv a Zöld/Sárga gombokkal (mp)" msgid "Setup.Replay$Resume ID" msgstr "Lejátszás azonosító" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/it_IT.po b/po/it_IT.po index fc6ce583..5e214c53 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2017-06-23 00:00+0100\n" "Last-Translator: Diego Pierotto \n" "Language-Team: Italian \n" @@ -1304,6 +1304,12 @@ msgstr "Durata spostamento con tasti Verde/Giallo in sequenza (s)" msgid "Setup.Replay$Resume ID" msgstr "ID di ripristino" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "tipo" diff --git a/po/lt_LT.po b/po/lt_LT.po index 46e4618a..2c1f3d72 100644 --- a/po/lt_LT.po +++ b/po/lt_LT.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-11 14:02+0200\n" "Last-Translator: Valdemaras Pipiras \n" "Language-Team: Lithuanian \n" @@ -1298,6 +1298,12 @@ msgstr "Praleisti atkarpą pakartojime (s) su Žaliu/Geltonu mygtukais" msgid "Setup.Replay$Resume ID" msgstr "Kūrinio ID" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/mk_MK.po b/po/mk_MK.po index 69cf47f0..d07af181 100644 --- a/po/mk_MK.po +++ b/po/mk_MK.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-08 15:18+0100\n" "Last-Translator: Dimitar Petrovski \n" "Language-Team: Macedonian \n" @@ -1299,6 +1299,12 @@ msgstr "Дистанца на скокање со Зелено/Жолто коп msgid "Setup.Replay$Resume ID" msgstr "ID на продолжеток" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/nl_NL.po b/po/nl_NL.po index 6a984e26..ed6223e8 100644 --- a/po/nl_NL.po +++ b/po/nl_NL.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-10 19:43+0100\n" "Last-Translator: Erik Oomen \n" "Language-Team: Dutch \n" @@ -1304,6 +1304,12 @@ msgstr "Spoel sprong met groene en gele toesten in repeteerstand (s)" msgid "Setup.Replay$Resume ID" msgstr "Hervattings ID" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/nn_NO.po b/po/nn_NO.po index 15c25ec6..37eb9069 100644 --- a/po/nn_NO.po +++ b/po/nn_NO.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2007-08-12 14:17+0200\n" "Last-Translator: Truls Slevigen \n" "Language-Team: Norwegian Nynorsk \n" @@ -1299,6 +1299,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "Resume ID" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/pl_PL.po b/po/pl_PL.po index b9077a2c..3a6ec654 100644 --- a/po/pl_PL.po +++ b/po/pl_PL.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-12 00:59+0100\n" "Last-Translator: Tomasz Maciej Nowak \n" "Language-Team: Polish \n" @@ -1301,6 +1301,12 @@ msgstr "Pomi msgid "Setup.Replay$Resume ID" msgstr "ID wznowienia" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/pt_PT.po b/po/pt_PT.po index 972419b9..ae37d28f 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2010-03-28 22:49+0100\n" "Last-Translator: Cris Silva \n" "Language-Team: Portuguese \n" @@ -1299,6 +1299,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "ID de resumo" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/ro_RO.po b/po/ro_RO.po index 78c4f32c..69364c16 100644 --- a/po/ro_RO.po +++ b/po/ro_RO.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-11 22:26+0100\n" "Last-Translator: Lucian Muresan \n" "Language-Team: Romanian \n" @@ -1300,6 +1300,12 @@ msgstr "Durata sărită cu tastele Verde/Galben la repetiție (s)" msgid "Setup.Replay$Resume ID" msgstr "Identificator continuare" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/ru_RU.po b/po/ru_RU.po index 0223d0ad..f907ccc6 100644 --- a/po/ru_RU.po +++ b/po/ru_RU.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2016-12-27 17:13+0100\n" "Last-Translator: Pridvorov Andrey \n" "Language-Team: Russian \n" @@ -1299,6 +1299,12 @@ msgstr "Пропуск интервала Зелёный/Жёлтый в пов msgid "Setup.Replay$Resume ID" msgstr "ID воспроизведения" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/sk_SK.po b/po/sk_SK.po index 8ddbeb46..d5a70e3d 100644 --- a/po/sk_SK.po +++ b/po/sk_SK.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-17 18:59+0100\n" "Last-Translator: Milan Hrala \n" "Language-Team: Slovak \n" @@ -1299,6 +1299,12 @@ msgstr "Opakovan msgid "Setup.Replay$Resume ID" msgstr "ident. slo obnovenia prehrvania" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/sl_SI.po b/po/sl_SI.po index 0a6a289e..d2e46300 100644 --- a/po/sl_SI.po +++ b/po/sl_SI.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2013-03-04 12:46+0100\n" "Last-Translator: Matjaz Thaler \n" "Language-Team: Slovenian \n" @@ -1299,6 +1299,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "ID za predvajanje" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/sr_RS.po b/po/sr_RS.po index ba1fd189..069c1ec6 100644 --- a/po/sr_RS.po +++ b/po/sr_RS.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2013-03-16 15:05+0100\n" "Last-Translator: Zoran Turalija \n" "Language-Team: Serbian \n" @@ -1299,6 +1299,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "ID reprodukcije" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/sv_SE.po b/po/sv_SE.po index 78f689d8..ded70cf0 100644 --- a/po/sv_SE.po +++ b/po/sv_SE.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-12 21:58+0100\n" "Last-Translator: Magnus Sirvi \n" "Language-Team: Swedish \n" @@ -1303,6 +1303,12 @@ msgstr "Tid f msgid "Setup.Replay$Resume ID" msgstr "terupptagnings-ID" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/tr_TR.po b/po/tr_TR.po index 5cfac45c..749ca47c 100644 --- a/po/tr_TR.po +++ b/po/tr_TR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2008-02-28 00:33+0100\n" "Last-Translator: Oktay Yolgeen \n" "Language-Team: Turkish \n" @@ -1298,6 +1298,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "Gsteri ID'si" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/uk_UA.po b/po/uk_UA.po index f9b18b35..d9f15cac 100644 --- a/po/uk_UA.po +++ b/po/uk_UA.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2015-02-13 18:14+0100\n" "Last-Translator: Yarema aka Knedlyk \n" "Language-Team: Ukrainian \n" @@ -1299,6 +1299,12 @@ msgstr "Інтервал пропуску з Зеленою/Жовтою кно msgid "Setup.Replay$Resume ID" msgstr "ID продовження" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/po/zh_CN.po b/po/zh_CN.po index 5ae75557..dbeea3f6 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: VDR 2.2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 17:19+0200\n" +"POT-Creation-Date: 2017-06-30 11:46+0200\n" "PO-Revision-Date: 2013-03-04 14:52+0800\n" "Last-Translator: NFVDR \n" "Language-Team: Chinese (simplified) \n" @@ -1300,6 +1300,12 @@ msgstr "" msgid "Setup.Replay$Resume ID" msgstr "恢复 ID" +msgid "any hosts" +msgstr "" + +msgid "only default host" +msgstr "" + msgid "type" msgstr "" diff --git a/svdrp.c b/svdrp.c index 924acd36..37695758 100644 --- a/svdrp.c +++ b/svdrp.c @@ -10,7 +10,7 @@ * and interact with the Video Disk Recorder - or write a full featured * graphical interface that sits on top of an SVDRP connection. * - * $Id: svdrp.c 4.21 2017/06/25 12:31:13 kls Exp $ + * $Id: svdrp.c 4.22 2017/06/30 09:49:39 kls Exp $ */ #include "svdrp.h" @@ -549,7 +549,7 @@ cSVDRPClient *cSVDRPClientHandler::GetClientForServer(const char *ServerName) void cSVDRPClientHandler::SendDiscover(const char *Address) { cMutexLock MutexLock(&mutex); - cString Dgram = cString::sprintf("SVDRP:discover name:%s port:%d vdrversion:%d apiversion:%d timeout:%d", Setup.SVDRPHostName, tcpPort, VDRVERSNUM, APIVERSNUM, Setup.SVDRPTimeout); + cString Dgram = cString::sprintf("SVDRP:discover name:%s port:%d vdrversion:%d apiversion:%d timeout:%d%s", Setup.SVDRPHostName, tcpPort, VDRVERSNUM, APIVERSNUM, Setup.SVDRPTimeout, (Setup.SVDRPPeering == spmOnly && *Setup.SVDRPDefaultHost) ? *cString::sprintf(" host:%s", Setup.SVDRPDefaultHost) : ""); udpSocket.SendDgram(Dgram, udpSocket.Port(), Address); } @@ -580,6 +580,11 @@ void cSVDRPClientHandler::HandleClientConnection(void) } cString ServerName = strgetval(NewDiscover, "name", ':'); if (*ServerName) { + if (Setup.SVDRPPeering == spmOnly && strcmp(ServerName, Setup.SVDRPDefaultHost) != 0) + return; // we only want to peer with the default host, but this isn't the default host + cString HostName = strgetval(NewDiscover, "host", ':'); + if (*HostName && strcmp(HostName, Setup.SVDRPHostName) != 0) + return; // the remote VDR requests a specific host, but it's not us cString t = strgetval(NewDiscover, "timeout", ':'); if (*t) { int Timeout = atoi(t); diff --git a/svdrp.h b/svdrp.h index 700a1300..e0d3616e 100644 --- a/svdrp.h +++ b/svdrp.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: svdrp.h 4.6 2017/06/25 12:27:57 kls Exp $ + * $Id: svdrp.h 4.7 2017/06/30 09:49:39 kls Exp $ */ #ifndef __SVDRP_H @@ -12,6 +12,12 @@ #include "tools.h" +enum eSvdrpPeerModes { + spmOff = 0, + spmAny = 1, + spmOnly = 2, + }; + enum eSvdrpFetchFlags { sffNone = 0b0000, sffTimers = 0b0001,