Compare distro and build for pms updates

This commit is contained in:
JonnyWong16 2016-07-26 19:10:59 -07:00
parent 495659e9cd
commit 79dc190ccc
4 changed files with 15 additions and 2 deletions

View file

@ -650,7 +650,8 @@ class PlexTV(object):
# Get proper download
releases = platform_downloads.get('releases', [{}])
release = next((r for r in releases if r['build'] == plexpy.CONFIG.PMS_UPDATE_DISTRO_BUILD), releases[0])
release = next((r for r in releases if r['distro'] == plexpy.CONFIG.PMS_UPDATE_DISTRO and
r['build'] == plexpy.CONFIG.PMS_UPDATE_DISTRO_BUILD), releases[0])
download_info = {'update_available': v_new > v_old,
'platform': platform_downloads.get('name'),