Merge pull request #1375 from croneter/fix-error
Fix TypeError: function missing required argument 'message'
This commit is contained in:
commit
ebda635137
3 changed files with 5 additions and 6 deletions
|
@ -125,13 +125,13 @@ class ContextMenu(object):
|
||||||
"""
|
"""
|
||||||
delete = True
|
delete = True
|
||||||
if utils.settings('skipContextMenu') != "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)
|
LOG.info("User skipped deletion for: %s", self.plex_id)
|
||||||
delete = False
|
delete = False
|
||||||
if delete:
|
if delete:
|
||||||
LOG.info("Deleting Plex item with id %s", self.plex_id)
|
LOG.info("Deleting Plex item with id %s", self.plex_id)
|
||||||
if PF.delete_item_from_pms(self.plex_id) is False:
|
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):
|
def _PMS_play(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -668,10 +668,10 @@ class InitialSetup(object):
|
||||||
|
|
||||||
# If you use several Plex libraries of one kind, e.g. "Kids Movies" and
|
# If you use several Plex libraries of one kind, e.g. "Kids Movies" and
|
||||||
# "Parents Movies", be sure to check https://goo.gl/JFtQV9
|
# "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
|
# 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
|
# Make sure that we only ask these questions upon first installation
|
||||||
utils.settings('InstallQuestionsAnswered', value='true')
|
utils.settings('InstallQuestionsAnswered', value='true')
|
||||||
|
|
||||||
|
|
|
@ -155,8 +155,7 @@ def dialog(typus, *args, **kwargs):
|
||||||
'yesno', 'ok', 'notification', 'input', 'select', 'numeric'
|
'yesno', 'ok', 'notification', 'input', 'select', 'numeric'
|
||||||
kwargs:
|
kwargs:
|
||||||
heading='{plex}' title bar (here PlexKodiConnect)
|
heading='{plex}' title bar (here PlexKodiConnect)
|
||||||
message=lang(30128), Dialog content. Don't use with 'OK', 'yesno'
|
message=lang(30128), Dialog content
|
||||||
text=str(), Dialog content for 'OK'. 'yesno'
|
|
||||||
time=5000,
|
time=5000,
|
||||||
sound=True,
|
sound=True,
|
||||||
nolabel=str(), For 'yesno' dialogs
|
nolabel=str(), For 'yesno' dialogs
|
||||||
|
|
Loading…
Reference in a new issue