Alias platform Tizen to Samsung

This commit is contained in:
JonnyWong16 2018-06-26 21:02:20 -07:00
parent 274a7e5827
commit 5fc182dcc2
2 changed files with 2 additions and 2 deletions

View file

@ -88,6 +88,7 @@ PLATFORM_NAMES = {
'samsung': 'samsung', 'samsung': 'samsung',
'synclounge': 'synclounge', 'synclounge': 'synclounge',
'tivo': 'tivo', 'tivo': 'tivo',
'tizen': 'samsung',
'tvos': 'atv', 'tvos': 'atv',
'vizio': 'opera', 'vizio': 'opera',
'wiiu': 'wiiu', 'wiiu': 'wiiu',

View file

@ -660,8 +660,7 @@ class DataFactory(object):
platform = common.PLATFORM_NAME_OVERRIDES.get(item['platform'], item['platform']) platform = common.PLATFORM_NAME_OVERRIDES.get(item['platform'], item['platform'])
platform_name = next((v for k, v in common.PLATFORM_NAMES.iteritems() if k in platform.lower()), 'default') platform_name = next((v for k, v in common.PLATFORM_NAMES.iteritems() if k in platform.lower()), 'default')
row = {'platform': item['platform'], row = {'total_plays': item['total_plays'],
'total_plays': item['total_plays'],
'total_duration': item['total_duration'], 'total_duration': item['total_duration'],
'last_play': item['last_watch'], 'last_play': item['last_watch'],
'platform': platform, 'platform': platform,