diff --git a/resources/lib/kodiutils.py b/resources/lib/kodiutils.py index 7203598..170efbe 100644 --- a/resources/lib/kodiutils.py +++ b/resources/lib/kodiutils.py @@ -264,13 +264,17 @@ class progress(xbmcgui.DialogProgress, object): # pylint: disable=invalid-name, def create(self, heading, message=''): # pylint: disable=arguments-differ """Create and show a progress dialog""" if kodi_version_major() < 19: - return super(progress, self).create(heading, line1=message) + lines = message.split('\n', 2) + line1, line2, line3 = (lines + [None] * (3-len(lines))) + return super(progress, self).create(heading, line1=line1, line2=line2, line3=line3) return super(progress, self).create(heading, message=message) def update(self, percent, message=''): # pylint: disable=arguments-differ """Update the progress dialog""" if kodi_version_major() < 19: - return super(progress, self).update(percent, line1=message) + lines = message.split('\n', 2) + line1, line2, line3 = (lines + [None] * (3-len(lines))) + return super(progress, self).update(percent, line1=line1, line2=line2, line3=line3) return super(progress, self).update(percent, message=message)