From 64ac1f53493eda1e1c6ec7ac23bc0c9afd420703 Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 1 Mar 2021 10:39:17 +0100 Subject: [PATCH] Fix TypeError: function missing required argument 'message' --- resources/lib/context_entry.py | 4 ++-- resources/lib/initialsetup.py | 4 ++-- resources/lib/utils.py | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/resources/lib/context_entry.py b/resources/lib/context_entry.py index 9f7970fc..8195016b 100644 --- a/resources/lib/context_entry.py +++ b/resources/lib/context_entry.py @@ -125,13 +125,13 @@ class ContextMenu(object): """ delete = True if utils.settings('skipContextMenu') != "true": - if not utils.dialog("yesno", heading="{plex}", text=utils.lang(33041)): + if not utils.dialog("yesno", heading="{plex}", message=utils.lang(33041)): LOG.info("User skipped deletion for: %s", self.plex_id) delete = False if delete: LOG.info("Deleting Plex item with id %s", self.plex_id) if PF.delete_item_from_pms(self.plex_id) is False: - utils.dialog("ok", heading="{plex}", text=utils.lang(30414)) + utils.dialog("ok", heading="{plex}", message=utils.lang(30414)) def _PMS_play(self): """ diff --git a/resources/lib/initialsetup.py b/resources/lib/initialsetup.py index 52a0816e..af04de73 100644 --- a/resources/lib/initialsetup.py +++ b/resources/lib/initialsetup.py @@ -668,10 +668,10 @@ class InitialSetup(object): # If you use several Plex libraries of one kind, e.g. "Kids Movies" and # "Parents Movies", be sure to check https://goo.gl/JFtQV9 - # dialog.ok(heading=utils.lang(29999), text=utils.lang(39076)) + # dialog.ok(heading=utils.lang(29999), message=utils.lang(39076)) # Need to tell about our image source for collections: themoviedb.org - # dialog.ok(heading=utils.lang(29999), text=utils.lang(39717)) + # dialog.ok(heading=utils.lang(29999), message=utils.lang(39717)) # Make sure that we only ask these questions upon first installation utils.settings('InstallQuestionsAnswered', value='true') diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 97b4393f..a3c46ecd 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -155,8 +155,7 @@ def dialog(typus, *args, **kwargs): 'yesno', 'ok', 'notification', 'input', 'select', 'numeric' kwargs: heading='{plex}' title bar (here PlexKodiConnect) - message=lang(30128), Dialog content. Don't use with 'OK', 'yesno' - text=str(), Dialog content for 'OK'. 'yesno' + message=lang(30128), Dialog content time=5000, sound=True, nolabel=str(), For 'yesno' dialogs