Skip to content

Commit

Permalink
Merge pull request #131 from AlwinEsch/Nexus-change
Browse files Browse the repository at this point in the history
[Nexus] API related update
  • Loading branch information
AlwinEsch authored Jan 1, 2022
2 parents ace3380 + 79e72b0 commit 60ff545
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 32 deletions.
8 changes: 4 additions & 4 deletions pvr.hdhomerun/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.hdhomerun"
version="20.1.1"
version="20.2.0"
name="PVR HDHomeRun Client"
provider-name="Zoltan Csizmadia ([email protected])">
<requires>@ADDON_DEPENDS@</requires>
Expand All @@ -18,12 +18,12 @@
<icon>icon.png</icon>
</assets>
<summary lang="af_ZA">HDHomeRun PVR Kliënt</summary>
<summary lang="be_BY">HDHomeRun PVR кліент </summary>
<summary lang="be_BY">HDHomeRun PVR кліент</summary>
<summary lang="bg_BG">Клиент за ПВР „HDHomeRun“</summary>
<summary lang="ca_ES">Client PVR de HDHomeRun</summary>
<summary lang="cs_CZ">Klient HDHomeRun PVR</summary>
<summary lang="cy_GB">Cleiant PVR HDHomeRun</summary>
<summary lang="da_DK">HDHomeRun PVR klient</summary>
<summary lang="da_DK">HDHomeRun PVR-klient</summary>
<summary lang="de_DE">HDHomeRun PVR Client</summary>
<summary lang="el_GR">HDHomeRun PVR Client</summary>
<summary lang="en_AU">HDHomeRun PVR Client</summary>
Expand Down Expand Up @@ -70,7 +70,7 @@
<description lang="ca_ES">Client PVR de HDHomeRun</description>
<description lang="cs_CZ">Klient HDHomeRun PVR</description>
<description lang="cy_GB">Cleiant PVR HDHomeRun</description>
<description lang="da_DK">HDHomeRun PVR klient</description>
<description lang="da_DK">HDHomeRun PVR-klient</description>
<description lang="de_DE">HDHomeRun PVR Client</description>
<description lang="el_GR">HDHomeRun PVR Client</description>
<description lang="en_AU">HDHomeRun PVR Client</description>
Expand Down
4 changes: 4 additions & 0 deletions pvr.hdhomerun/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v20.2.0
- Translation updates by Weblate
- Kodi main API update to version 2.0.0

v20.1.1
- Add define to use legacy codepath for Android

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Main\n"
"Report-Msgid-Bugs-To: https://github.com/xbmc/xbmc/issues/\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: Belarusian (Belarus) (http://www.transifex.com/projects/p/kodi-main/language/be_BY/)\n"
"Language: be_BY\n"
"PO-Revision-Date: 2021-09-26 14:30+0000\n"
"Last-Translator: Christian Gade <[email protected]>\n"
"Language-Team: Belarusian <https://kodi.weblate.cloud/projects/kodi-add-ons-pvr-clients/pvr-hdhomerun/be_by/>\n"
"Language: be_by\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 4.8\n"

msgctxt "Addon Summary"
msgid "HDHomeRun PVR Client"
msgstr "HDHomeRun PVR кліент "
msgstr "HDHomeRun PVR кліент"

msgctxt "Addon Description"
msgid "HDHomeRun PVR Client"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Main\n"
"Report-Msgid-Bugs-To: https://github.com/xbmc/xbmc/issues/\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2021-07-28 22:29+0000\n"
"PO-Revision-Date: 2021-11-14 14:13+0000\n"
"Last-Translator: Christian Gade <[email protected]>\n"
"Language-Team: Danish <https://kodi.weblate.cloud/projects/kodi-add-ons-pvr-clients/pvr-hdhomerun/da_dk/>\n"
"Language: da_dk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.7.2\n"
"X-Generator: Weblate 4.9\n"

msgctxt "Addon Summary"
msgid "HDHomeRun PVR Client"
msgstr "HDHomeRun PVR klient"
msgstr "HDHomeRun PVR-klient"

msgctxt "Addon Description"
msgid "HDHomeRun PVR Client"
msgstr "HDHomeRun PVR klient"
msgstr "HDHomeRun PVR-klient"

msgctxt "#32001"
msgid "General"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Main\n"
"Report-Msgid-Bugs-To: https://github.com/xbmc/xbmc/issues/\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: German (Germany) (http://www.transifex.com/projects/p/kodi-main/language/de_DE/)\n"
"Language: de_DE\n"
"PO-Revision-Date: 2021-09-26 14:30+0000\n"
"Last-Translator: Chillbo <[email protected]>\n"
"Language-Team: German <https://kodi.weblate.cloud/projects/kodi-add-ons-pvr-clients/pvr-hdhomerun/de_de/>\n"
"Language: de_de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.8\n"

msgctxt "Addon Summary"
msgid "HDHomeRun PVR Client"
Expand All @@ -34,7 +35,7 @@ msgstr "Gesperrte Kanäle ausblenden"

msgctxt "#32003"
msgid "Enable debug logging"
msgstr "Debug-Logging aktivieren"
msgstr "Debug-Protokollierung aktivieren"

msgctxt "#32004"
msgid "Hide duplicate channels"
Expand Down
2 changes: 1 addition & 1 deletion src/HDHomeRunTuners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ADDON_STATUS HDHomeRunTuners::Create()
return ADDON_STATUS_OK;
}

ADDON_STATUS HDHomeRunTuners::SetSetting(const std::string& settingName, const kodi::CSettingValue& settingValue)
ADDON_STATUS HDHomeRunTuners::SetSetting(const std::string& settingName, const kodi::addon::CSettingValue& settingValue)
{
return SettingsType::Get().SetSetting(settingName, settingValue);
}
Expand Down
4 changes: 2 additions & 2 deletions src/HDHomeRunTuners.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <json/json.h>
#include <kodi/addon-instance/PVR.h>

class ATTRIBUTE_HIDDEN HDHomeRunTuners
class ATTR_DLL_LOCAL HDHomeRunTuners
: public kodi::addon::CAddonBase,
public kodi::addon::CInstancePVRClient
{
Expand Down Expand Up @@ -60,7 +60,7 @@ class ATTRIBUTE_HIDDEN HDHomeRunTuners
void Unlock() { m_Lock.unlock(); }

ADDON_STATUS Create() override;
ADDON_STATUS SetSetting(const std::string& settingName, const kodi::CSettingValue& settingValue) override;
ADDON_STATUS SetSetting(const std::string& settingName, const kodi::addon::CSettingValue& settingValue) override;

PVR_ERROR GetCapabilities(kodi::addon::PVRCapabilities& capabilities) override;
PVR_ERROR GetBackendName(std::string& name) override;
Expand Down
10 changes: 5 additions & 5 deletions src/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ SettingsType& SettingsType::Get()

bool SettingsType::ReadSettings()
{
bHideProtected = kodi::GetSettingBoolean("hide_protected", true);
bHideDuplicateChannels = kodi::GetSettingBoolean("hide_duplicate", true);
bMarkNew = kodi::GetSettingBoolean("mark_new", true);
bDebug = kodi::GetSettingBoolean("debug", false);
bHideProtected = kodi::addon::GetSettingBoolean("hide_protected", true);
bHideDuplicateChannels = kodi::addon::GetSettingBoolean("hide_duplicate", true);
bMarkNew = kodi::addon::GetSettingBoolean("mark_new", true);
bDebug = kodi::addon::GetSettingBoolean("debug", false);

return true;
}

ADDON_STATUS SettingsType::SetSetting(const std::string& settingName,
const kodi::CSettingValue& settingValue)
const kodi::addon::CSettingValue& settingValue)
{
if (settingName == "hide_protected")
{
Expand Down
4 changes: 2 additions & 2 deletions src/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

#include <kodi/AddonBase.h>

class ATTRIBUTE_HIDDEN SettingsType
class ATTR_DLL_LOCAL SettingsType
{
public:
static SettingsType& Get();

bool ReadSettings();
ADDON_STATUS SetSetting(const std::string& settingName, const kodi::CSettingValue& settingValue);
ADDON_STATUS SetSetting(const std::string& settingName, const kodi::addon::CSettingValue& settingValue);

bool GetHideProtected() const { return bHideProtected; }
bool GetHideDuplicateChannels() const { return bHideDuplicateChannels; }
Expand Down

0 comments on commit 60ff545

Please sign in to comment.