mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Add grandparentTitle to m3u8 export
This commit is contained in:
parent
962777284a
commit
a120f52e0d
1 changed files with 5 additions and 1 deletions
|
@ -1880,10 +1880,14 @@ class Export(object):
|
||||||
|
|
||||||
for d in data:
|
for d in data:
|
||||||
if d.get('locations', []):
|
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 = {
|
location = {
|
||||||
'ratingKey': d['ratingKey'],
|
'ratingKey': d['ratingKey'],
|
||||||
'duration': d['duration'],
|
'duration': d['duration'],
|
||||||
'title': d['title'],
|
'title': full_title,
|
||||||
'location': d['locations'][0]
|
'location': d['locations'][0]
|
||||||
}
|
}
|
||||||
items.append(location)
|
items.append(location)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue