Skip to content

Commit

Permalink
Merge pull request #85 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 2, 2022
2 parents c18f4e3 + 33a4d51 commit eef6059
Show file tree
Hide file tree
Showing 23 changed files with 46 additions and 43 deletions.
8 changes: 4 additions & 4 deletions pvr.njoy/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.njoy"
version="20.0.0"
version="20.2.0"
name="Njoy N7 PVR Client"
provider-name="Team Kodi">
<requires>@ADDON_DEPENDS@</requires>
Expand All @@ -23,7 +23,7 @@
<summary lang="ca_ES">Client PVR Njoy N7</summary>
<summary lang="cs_CZ">Klient nahrávače Njoy N7</summary>
<summary lang="cy_GB">Rhaglen Rhaglenni Njoy N7</summary>
<summary lang="da_DK">Njoy N7 PVR Klient</summary>
<summary lang="da_DK">Njoy N7 PVR-klient</summary>
<summary lang="de_DE">Njoy N7 PVR Client</summary>
<summary lang="el_GR">Πελάτης PVR του Njoy N7</summary>
<summary lang="en_AU">Njoy N7 PVR Client</summary>
Expand All @@ -48,7 +48,7 @@
<summary lang="ko_KR">Njoy N7 PVR 클라이언트</summary>
<summary lang="lt_LT">Njoy N7 PVR klientas</summary>
<summary lang="lv_LV">Njoy N7 PVR klients</summary>
<summary lang="mk_MK"> Njoy N7 PVR клиент</summary>
<summary lang="mk_MK">Njoy N7 PVR клиент</summary>
<summary lang="ms_MY">Klien PVR Njoy N7</summary>
<summary lang="mt_MT">Njoy N7 PVR Client</summary>
<summary lang="my_MM">Njoy N7 PVR Client</summary>
Expand All @@ -59,7 +59,7 @@
<summary lang="pt_PT">Cliente PVR Njoy N7</summary>
<summary lang="ro_RO">Client PVR Njoy N7</summary>
<summary lang="ru_RU">Njoy N7 PVR Клиент</summary>
<summary lang="si_LK">Njoy N7 PVR සේවාග්‍රාහකයා </summary>
<summary lang="si_LK">Njoy N7 PVR සේවාග්‍රාහකයා</summary>
<summary lang="sk_SK">Njoy N7 PVR Klient</summary>
<summary lang="sl_SI">Odjemalec PVR Njoy N7</summary>
<summary lang="sr_RS">Njoy N7 PVR Клијент</summary>
Expand Down
4 changes: 4 additions & 0 deletions pvr.njoy/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.0
- Kodi API to 8.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"

msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ msgstr ""
"Project-Id-Version: KODI Main\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 13:07+0000\n"
"Last-Translator: Christian Gade <[email protected]>\n"
"Language-Team: Danish <https://kodi.weblate.cloud/projects/kodi-add-ons-pvr-clients/pvr-njoy/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.8.1\n"

msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr "Njoy N7 PVR Klient"
msgstr "Njoy N7 PVR-klient"

msgctxt "#30000"
msgid "N7 IP"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
13 changes: 7 additions & 6 deletions pvr.njoy/resources/language/resource.language.mk_mk/strings.po
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: Macedonian (Macedonia) (http://www.transifex.com/projects/p/kodi-main/language/mk_MK/)\n"
"Language: mk_MK\n"
"PO-Revision-Date: 2021-11-05 03:16+0000\n"
"Last-Translator: Christian Gade <[email protected]>\n"
"Language-Team: Macedonian <https://kodi.weblate.cloud/projects/kodi-add-ons-pvr-clients/pvr-njoy/mk_mk/>\n"
"Language: mk_mk\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 % 10 == 1 && n % 100 != 11) ? 0 : 1;\n"
"X-Generator: Weblate 4.8.1\n"

msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr " Njoy N7 PVR клиент"
msgstr "Njoy N7 PVR клиент"

msgctxt "#30000"
msgid "N7 IP"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +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: 2021-06-27 10:29+0000\n"
"PO-Revision-Date: 2021-09-25 08:30+0000\n"
"Last-Translator: Christian Gade <[email protected]>\n"
"Language-Team: Sinhala (Sri Lanka) <https://kodi.weblate.cloud/projects/kodi-add-ons-pvr-clients/pvr-njoy/si_lk/>\n"
"Language: si_lk\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\n"
"X-Generator: Weblate 4.8\n"

msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr "Njoy N7 PVR සේවාග්‍රාහකයා "
msgstr "Njoy N7 PVR සේවාග්‍රාහකයා"

msgctxt "#30000"
msgid "N7 IP"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgctxt "Addon Summary"
msgid "Njoy N7 PVR Client"
msgstr ""

#settings labels
# settings labels
msgctxt "#30000"
msgid "N7 IP"
msgstr ""
Expand Down
6 changes: 3 additions & 3 deletions src/N7Xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ N7Xml::N7Xml()
{
kodi::Log(ADDON_LOG_DEBUG, "Creating N7 PVR-Client");

m_strHostname = kodi::GetSettingString("n7host", DEFAULT_HOST);
m_iPort = kodi::GetSettingInt("n7port", DEFAULT_PORT);
m_strHostname = kodi::addon::GetSettingString("n7host", DEFAULT_HOST);
m_iPort = kodi::addon::GetSettingInt("n7port", DEFAULT_PORT);

list_channels();
}

ADDON_STATUS N7Xml::SetSetting(const std::string& settingName,
const kodi::CSettingValue& settingValue)
const kodi::addon::CSettingValue& settingValue)
{
if (settingName == "n7host")
{
Expand Down
6 changes: 3 additions & 3 deletions src/N7Xml.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ class CCurlFile
bool Get(const std::string& strURL, std::string& strResult);
};

class ATTRIBUTE_HIDDEN N7Xml : public kodi::addon::CAddonBase,
public kodi::addon::CInstancePVRClient
class ATTR_DLL_LOCAL N7Xml : public kodi::addon::CAddonBase,
public kodi::addon::CInstancePVRClient

{
public:
N7Xml();
~N7Xml() override = default;

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

PVR_ERROR GetCapabilities(kodi::addon::PVRCapabilities& capabilities) override;
PVR_ERROR GetBackendName(std::string& name) override;
Expand Down

0 comments on commit eef6059

Please sign in to comment.