mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
update editAdvanced method to work with py2 drop
This commit is contained in:
parent
5045ddc04b
commit
18973e2f2d
1 changed files with 1 additions and 4 deletions
|
@ -454,10 +454,7 @@ class Show(Video):
|
|||
key = '%s/prefs?' % self.key
|
||||
preferences = {pref.id: list(pref.enumValues.keys()) for pref in self.preferences()}
|
||||
for settingID, value in kwargs.items():
|
||||
try:
|
||||
enumValues = [int(x) for x in preferences.get(settingID)]
|
||||
except ValueError:
|
||||
enumValues = [x.decode() for x in preferences.get(settingID)]
|
||||
enumValues = preferences.get(settingID)
|
||||
if value in enumValues:
|
||||
data[settingID] = value
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue