Filter out background theme music sessions

This commit is contained in:
JonnyWong16 2020-09-04 18:29:37 -07:00
parent e014bfa63e
commit 55ffd54e5b
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -1570,6 +1570,9 @@ class PmsConnect(object):
if a.getElementsByTagName('Track'):
session_data = a.getElementsByTagName('Track')
for session_ in session_data:
# Filter out background theme music sessions
if helpers.get_xml_attr(session_, 'guid').startswith('library://'):
continue
session_output = self.get_session_each(session_, skip_cache=skip_cache)
session_list.append(session_output)
if a.getElementsByTagName('Video'):