Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
horstle committed Aug 19, 2019
1 parent 17bd5c8 commit b2349f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/inputstreamhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,11 @@ def _install_widevine_arm(self):
cos_config = self._chromeos_config()
device = [x for x in cos_config if config.CHROMEOS_ARM_HWID in x['hwidmatch']][0]
required_diskspace = int(device['filesize']) + int(device['zipfilesize'])
if xbmcgui.Dialog().yesno(LANGUAGE(30001),
LANGUAGE(30006).format(self._sizeof_fmt(required_diskspace))) and self._widevine_eula():
dialog = xbmcgui.Dialog()
if dialog.yesno(LANGUAGE(30001),
LANGUAGE(30006).format(self._sizeof_fmt(required_diskspace))) and self._widevine_eula():
if self._os() != 'Linux':
xbmcgui.Dialog().ok(LANGUAGE(30004), LANGUAGE(30019).format(self._os()))
dialog.ok(LANGUAGE(30004), LANGUAGE(30019).format(self._os()))
return False

while required_diskspace >= self._diskspace():
Expand All @@ -544,7 +545,7 @@ def _install_widevine_arm(self):
continue
else:
dialog.ok(LANGUAGE(30004),
LANGUAGE(30018).format(self._sizeof_fmt(required_diskspace)))
LANGUAGE(30018).format(self._sizeof_fmt(required_diskspace)))
return False

if not self._cmd_exists('fdisk') and not self._cmd_exists('parted'):
Expand Down

0 comments on commit b2349f0

Please # to comment.