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:
parent
4665b282a2
commit
9abe9180b6
@ -19,3 +19,7 @@ msgstr ""
|
|||||||
msgctxt "#30000"
|
msgctxt "#30000"
|
||||||
msgid "Octonet Server Address"
|
msgid "Octonet Server Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#30001"
|
||||||
|
msgid "Could not load chanellist"
|
||||||
|
msgstr ""
|
||||||
|
@ -19,3 +19,7 @@ msgstr ""
|
|||||||
msgctxt "#30000"
|
msgctxt "#30000"
|
||||||
msgid "Octonet Server Address"
|
msgid "Octonet Server Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#30001"
|
||||||
|
msgid "Could not load chanellist"
|
||||||
|
msgstr ""
|
||||||
|
@ -41,8 +41,8 @@ OctonetData::OctonetData()
|
|||||||
groups.clear();
|
groups.clear();
|
||||||
lastEpgLoad = 0;
|
lastEpgLoad = 0;
|
||||||
|
|
||||||
if (loadChannelList())
|
if (!loadChannelList())
|
||||||
kodi->QueueNotification(QUEUE_INFO, "%d channels loaded.", channels.size());
|
kodi->QueueNotification(QUEUE_ERROR, kodi->GetLocalizedString(30001), channels.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
OctonetData::~OctonetData(void)
|
OctonetData::~OctonetData(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user