mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
Add button to delete 3rd party API lookup info
This commit is contained in:
parent
7d31079897
commit
3380e39de2
5 changed files with 171 additions and 7 deletions
|
@ -562,7 +562,14 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
|||
notify_params['imdb_url'] = 'https://www.imdb.com/title/' + themoveidb_json['imdb_id']
|
||||
|
||||
elif notify_params.get('thetvdb_id') or notify_params.get('imdb_id'):
|
||||
themoviedb_info = lookup_themoviedb_by_id(rating_key=rating_key,
|
||||
if notify_params['media_type'] in ('episode', 'track'):
|
||||
lookup_key = notify_params['grandparent_rating_key']
|
||||
elif notify_params['media_type'] in ('season', 'album'):
|
||||
lookup_key = notify_params['parent_rating_key']
|
||||
else:
|
||||
lookup_key = rating_key
|
||||
|
||||
themoviedb_info = lookup_themoviedb_by_id(rating_key=lookup_key,
|
||||
thetvdb_id=notify_params.get('thetvdb_id'),
|
||||
imdb_id=notify_params.get('imdb_id'))
|
||||
notify_params.update(themoviedb_info)
|
||||
|
@ -570,7 +577,14 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
|||
# Get TVmaze info (for tv shows only)
|
||||
if plexpy.CONFIG.TVMAZE_LOOKUP:
|
||||
if notify_params['media_type'] in ('show', 'season', 'episode') and (notify_params.get('thetvdb_id') or notify_params.get('imdb_id')):
|
||||
tvmaze_info = lookup_tvmaze_by_id(rating_key=rating_key,
|
||||
if notify_params['media_type'] in ('episode', 'track'):
|
||||
lookup_key = notify_params['grandparent_rating_key']
|
||||
elif notify_params['media_type'] in ('season', 'album'):
|
||||
lookup_key = notify_params['parent_rating_key']
|
||||
else:
|
||||
lookup_key = rating_key
|
||||
|
||||
tvmaze_info = lookup_tvmaze_by_id(rating_key=lookup_key,
|
||||
thetvdb_id=notify_params.get('thetvdb_id'),
|
||||
imdb_id=notify_params.get('imdb_id'))
|
||||
notify_params.update(tvmaze_info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue