Skip to content

Information and Error message display idea #5

@clach04

Description

@clach04

I've been thinking about error conditions related to network (and server), e.g. network and/or server is down for what ever reason.

The current dialog that pops up must be dismissed.

Does it make sense to use Toast-style notifications for some conditions?

I've not got this bit thought out properly, but imagine the scenario where the server is on the internet. just started watching and the internet goes down so the scrobble for "start" fails but video plays as it is local. Need to dismiss the error to see the video being watched.

Does it make sense to use toast-style when playing is in progress? Maybe switch to a dialog style when not playing?

E.g. press play, get toast style. Press pause, get dialog style?

Quick and dirty hack to ONLY show toast style for 3 seconds (error text will scroll):

def show_message(self, message: str):
        # https://kodi.wiki/view/List_of_built-in_functions
        # Notification(header,message[,time,image])
        xbmc.executebuiltin('Notification(HTTP Scrobbler Toast, {}, 3000)'.format(message.replace(',', '.')))  # this works, and shows (i) icon

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions