mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Use player product name if no title
This commit is contained in:
parent
3c1d0d3128
commit
fe210646c3
1 changed files with 2 additions and 1 deletions
|
@ -1269,6 +1269,7 @@ class PmsConnect(object):
|
||||||
# Get the player details
|
# Get the player details
|
||||||
player_info = session.getElementsByTagName('Player')[0]
|
player_info = session.getElementsByTagName('Player')[0]
|
||||||
|
|
||||||
|
# Override platform names
|
||||||
platform = helpers.get_xml_attr(player_info, 'platform')
|
platform = helpers.get_xml_attr(player_info, 'platform')
|
||||||
platform = common.PLATFORM_NAME_OVERRIDES.get(platform, platform)
|
platform = common.PLATFORM_NAME_OVERRIDES.get(platform, platform)
|
||||||
if not platform and helpers.get_xml_attr(player_info, 'product') == 'DLNA':
|
if not platform and helpers.get_xml_attr(player_info, 'product') == 'DLNA':
|
||||||
|
@ -1282,7 +1283,7 @@ class PmsConnect(object):
|
||||||
'product': helpers.get_xml_attr(player_info, 'product'),
|
'product': helpers.get_xml_attr(player_info, 'product'),
|
||||||
'product_version': helpers.get_xml_attr(player_info, 'version'),
|
'product_version': helpers.get_xml_attr(player_info, 'version'),
|
||||||
'profile': helpers.get_xml_attr(player_info, 'profile'),
|
'profile': helpers.get_xml_attr(player_info, 'profile'),
|
||||||
'player': helpers.get_xml_attr(player_info, 'title'),
|
'player': helpers.get_xml_attr(player_info, 'title') or helpers.get_xml_attr(player_info, 'product'),
|
||||||
'machine_id': helpers.get_xml_attr(player_info, 'machineIdentifier').rstrip('_Video').rstrip('_Track'),
|
'machine_id': helpers.get_xml_attr(player_info, 'machineIdentifier').rstrip('_Video').rstrip('_Track'),
|
||||||
'state': helpers.get_xml_attr(player_info, 'state'),
|
'state': helpers.get_xml_attr(player_info, 'state'),
|
||||||
'local': helpers.get_xml_attr(player_info, 'local')
|
'local': helpers.get_xml_attr(player_info, 'local')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue