mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 00:32:58 -07:00
Alias platform Tizen to Samsung
This commit is contained in:
parent
274a7e5827
commit
5fc182dcc2
2 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue