1
0
mirror of https://github.com/DigitalDevices/pvr.octonet.git synced 2023-10-10 13:36:57 +02:00

Notify on channel load error not success

Do not queue a notification when loading channels was successful, but
only when it failed. While at it make the message string translatable.

Signed-off-by: Julian Scheel <julian@jusst.de>
This commit is contained in:
Julian Scheel 2016-11-08 11:14:24 +01:00
parent 4665b282a2
commit 9abe9180b6
3 changed files with 10 additions and 2 deletions

View File

@ -19,3 +19,7 @@ msgstr ""
msgctxt "#30000"
msgid "Octonet Server Address"
msgstr ""
msgctxt "#30001"
msgid "Could not load chanellist"
msgstr ""

View File

@ -19,3 +19,7 @@ msgstr ""
msgctxt "#30000"
msgid "Octonet Server Address"
msgstr ""
msgctxt "#30001"
msgid "Could not load chanellist"
msgstr ""

View File

@ -41,8 +41,8 @@ OctonetData::OctonetData()
groups.clear();
lastEpgLoad = 0;
if (loadChannelList())
kodi->QueueNotification(QUEUE_INFO, "%d channels loaded.", channels.size());
if (!loadChannelList())
kodi->QueueNotification(QUEUE_ERROR, kodi->GetLocalizedString(30001), channels.size());
}
OctonetData::~OctonetData(void)