From 9ce72f8df077e72bd774c55f9a58e885dfdfc0fd Mon Sep 17 00:00:00 2001 From: herby2212 <12448284+herby2212@users.noreply.github.com> Date: Sun, 26 Feb 2023 22:43:36 +0100 Subject: [PATCH] stats for collections of sub media type --- data/interfaces/default/info.html | 8 ++------ plexpy/datafactory.py | 14 +++++++------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/data/interfaces/default/info.html b/data/interfaces/default/info.html index 0aebd1f8..93541637 100644 --- a/data/interfaces/default/info.html +++ b/data/interfaces/default/info.html @@ -543,10 +543,7 @@ DOCUMENTATION :: END % endif - <% - collection_valid = data['media_type'] == 'collection' and data['sub_media_type'] in ('movie', 'show', 'artist') - %> - % if data['media_type'] in ('movie', 'show', 'season', 'episode', 'artist', 'album', 'track') or collection_valid: + % if data['media_type'] in ('movie', 'show', 'season', 'episode', 'artist', 'album', 'track', 'collection'):
@@ -854,7 +851,6 @@ DOCUMENTATION :: END <% data = defaultdict(None, **metadata) history_user_id = '' if _session['user_group'] == 'admin' else _session['user_id'] - collection_valid = data['media_type'] == 'collection' and data['sub_media_type'] in ('movie', 'show', 'artist') %> @@ -930,7 +926,7 @@ DOCUMENTATION :: END }); % endif -% if data['media_type'] in ('movie', 'show', 'season', 'episode', 'artist', 'album', 'track') or "${collection_valid}": +% if data['media_type'] in ('movie', 'show', 'season', 'episode', 'artist', 'album', 'track', 'collection'):