mirror of
				https://github.com/DigitalDevices/pvr.octonet.git
				synced 2025-03-01 10:53:09 +00: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:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user