Add grandparentTitle to m3u8 export

This commit is contained in:
JonnyWong16 2020-10-13 09:15:45 -07:00
commit a120f52e0d
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -1880,10 +1880,14 @@ class Export(object):
for d in data:
if d.get('locations', []):
if 'grandparentTitle' in d:
full_title = '{} - {}'.format(d.get('originalTitle') or d['grandparentTitle'], d['title'])
else:
full_title = d['title']
location = {
'ratingKey': d['ratingKey'],
'duration': d['duration'],
'title': d['title'],
'title': full_title,
'location': d['locations'][0]
}
items.append(location)