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"
|
||||
msgid "Octonet Server Address"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#30001"
|
||||
msgid "Could not load chanellist"
|
||||
msgstr ""
|
||||
|
@ -19,3 +19,7 @@ msgstr ""
|
||||
msgctxt "#30000"
|
||||
msgid "Octonet Server Address"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#30001"
|
||||
msgid "Could not load chanellist"
|
||||
msgstr ""
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user