Skip to content

Commit

Permalink
Spelling error caused settings to potentially be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
mrworf committed Jun 14, 2018
1 parent aa208d4 commit b69b409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def load(self):
# Lastly, correct the tvservice field, should be "TEXT NUMBER TEXT"
# This is a little bit of a cheat
parts = self.settings['cfg']['tvservice'].split(' ')
if type(self.convertNative(parts[1])) != int and type(self.convertNative(parts[2])) == int:
if type(self.convertToNative(parts[1])) != int and type(self.convertToNative(parts[2])) == int:
logging.debug('Reordering tvservice value due to old bug')
self.settings['cfg']['tvservice'] = "%s %s %s" % (parts[0], parts[2], parts[1])
self.save()
Expand Down

0 comments on commit b69b409

Please sign in to comment.