mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 04:49:36 -07:00
Add clip to notification posters
This commit is contained in:
parent
257ea14c59
commit
cbab7c4cbf
1 changed files with 7 additions and 0 deletions
|
@ -690,6 +690,13 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
||||||
poster_key = notify_params['parent_rating_key']
|
poster_key = notify_params['parent_rating_key']
|
||||||
poster_title = '%s - %s' % (notify_params['grandparent_title'],
|
poster_title = '%s - %s' % (notify_params['grandparent_title'],
|
||||||
notify_params['parent_title'])
|
notify_params['parent_title'])
|
||||||
|
elif notify_params['media_type'] == 'clip':
|
||||||
|
if notify_params['extra_type']:
|
||||||
|
poster_thumb = notify_params['art'].replace('/art', '/thumb') or notify_params['thumb']
|
||||||
|
else:
|
||||||
|
poster_thumb = notify_params['parent_thumb'] or notify_params['thumb']
|
||||||
|
poster_key = notify_params['rating_key']
|
||||||
|
poster_title = notify_params['title']
|
||||||
else:
|
else:
|
||||||
poster_thumb = ''
|
poster_thumb = ''
|
||||||
poster_key = ''
|
poster_key = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue