mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 21:33:18 -07:00
Add "Use Server Setting" as Plex update channel
This commit is contained in:
parent
31ac82ad71
commit
5f52171fc4
6 changed files with 64 additions and 27 deletions
|
@ -2586,4 +2586,15 @@ class PmsConnect(object):
|
|||
version = identity.get('version', plexpy.CONFIG.PMS_VERSION)
|
||||
|
||||
plexpy.CONFIG.__setattr__('PMS_VERSION', version)
|
||||
plexpy.CONFIG.write()
|
||||
plexpy.CONFIG.write()
|
||||
|
||||
def get_server_update_channel(self):
|
||||
if plexpy.CONFIG.PMS_UPDATE_CHANNEL == 'plex':
|
||||
update_channel_value = self.get_server_pref('ButlerUpdateChannel')
|
||||
|
||||
if update_channel_value == '8':
|
||||
return 'beta'
|
||||
else:
|
||||
return 'public'
|
||||
|
||||
return plexpy.CONFIG.PMS_UPDATE_CHANNEL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue