diff --git a/data/interfaces/default/css/tautulli.css b/data/interfaces/default/css/tautulli.css index c7d38924..6c4d6a2f 100644 --- a/data/interfaces/default/css/tautulli.css +++ b/data/interfaces/default/css/tautulli.css @@ -1419,7 +1419,7 @@ a .dashboard-activity-metadata-user-thumb:hover { } .dashboard-stats-info-item .sub-count { height: 100%; - margin-left: 10px; + margin-left: 5px; color: #f9be03; font-size: 12px; text-align: right; @@ -1430,7 +1430,7 @@ a .dashboard-activity-metadata-user-thumb:hover { } .dashboard-stats-info-item .sub-divider { height: 100%; - margin-left: 10px; + margin-left: 5px; color: #aaa; font-size: 12px; text-align: left; diff --git a/data/interfaces/default/js/tables/media_info_table.js b/data/interfaces/default/js/tables/media_info_table.js index 051e09b1..a7b342fa 100644 --- a/data/interfaces/default/js/tables/media_info_table.js +++ b/data/interfaces/default/js/tables/media_info_table.js @@ -54,7 +54,7 @@ media_info_table_options = { } else if (rowData['media_type'] === 'album') { expand_details = ''; $(td).html('
' + expand_details + ' ' + date + '
'); - } else if (rowData['media_type'] === 'photo' && rowData['parent_rating_key'] == '') { + } else if (rowData['media_type'] === 'photo_album') { expand_details = ''; $(td).html('
' + expand_details + ' ' + date + '
'); } else { @@ -77,32 +77,44 @@ media_info_table_options = { if (rowData['media_type'] === 'movie') { if (rowData['year']) { parent_info = ' (' + rowData['year'] + ')'; } media_type = ''; - thumb_popover = '' + rowData['title'] + parent_info + '' + thumb_popover = '' + rowData['title'] + parent_info + ''; $(td).html('
' + media_type + ' ' + thumb_popover + '
'); } else if (rowData['media_type'] === 'show') { media_type = ''; - thumb_popover = '' + rowData['title'] + '' + thumb_popover = '' + rowData['title'] + ''; $(td).html('
' + media_type + ' ' + thumb_popover + '
'); } else if (rowData['media_type'] === 'season') { media_type = ''; - thumb_popover = '' + rowData['title'] + '' + thumb_popover = '' + rowData['title'] + ''; $(td).html('
' + media_type + ' ' + thumb_popover + '
'); } else if (rowData['media_type'] === 'episode') { media_type = ''; - thumb_popover = 'E' + rowData['media_index'] + ' - ' + rowData['title'] + '' + thumb_popover = 'E' + rowData['media_index'] + ' - ' + rowData['title'] + ''; $(td).html('
' + media_type + ' ' + thumb_popover + '
'); } else if (rowData['media_type'] === 'artist') { media_type = ''; - thumb_popover = '' + rowData['title'] + '' + thumb_popover = '' + rowData['title'] + ''; $(td).html('
' + media_type + ' ' + thumb_popover + '
'); } else if (rowData['media_type'] === 'album') { media_type = ''; - thumb_popover = '' + rowData['title'] + '' + thumb_popover = '' + rowData['title'] + ''; $(td).html('
' + media_type + ' ' + thumb_popover + '
'); } else if (rowData['media_type'] === 'track') { media_type = ''; - thumb_popover = 'T' + rowData['media_index'] + ' - ' + rowData['title'] + '' + thumb_popover = 'T' + rowData['media_index'] + ' - ' + rowData['title'] + ''; $(td).html('
' + media_type + ' ' + thumb_popover + '
'); + } else if (rowData['media_type'] === 'photo_album') { + media_type = ''; + thumb_popover = '' + rowData['title'] + ''; + $(td).html('
' + media_type + ' ' + thumb_popover + '
'); + } else if (rowData['media_type'] === 'photo') { + media_type = ''; + thumb_popover = '' + rowData['title'] + ''; + $(td).html('
' + media_type + ' ' + thumb_popover + '
'); + } else if (rowData['media_type'] === 'clip') { + media_type = ''; + thumb_popover = '' + rowData['title'] + ''; + $(td).html('
' + media_type + ' ' + thumb_popover + '
'); } else { $(td).html(cellData); } @@ -335,7 +347,7 @@ function childTableOptionsMedia(rowData) { case 'album': section_type = 'track'; break; - case 'photo': + case 'photo_album': section_type = 'picture'; break; } diff --git a/data/interfaces/default/library_stats.html b/data/interfaces/default/library_stats.html index 6e800c19..3855eb54 100644 --- a/data/interfaces/default/library_stats.html +++ b/data/interfaces/default/library_stats.html @@ -29,7 +29,7 @@ DOCUMENTATION :: END headers = {'movie': ('Movie Libraries', ('Movies', '', '')), 'show': ('TV Show Libraries', ('Shows', 'Seasons', 'Episodes')), 'artist': ('Music Libraries', ('Artists', 'Albums', 'Tracks')), - 'photo': ('Photo Libraries', ('Albums', '', 'Photos'))} + 'photo': ('Photo Libraries', ('Albums', 'Photos', 'Videos'))} %> % for section_type in types: % if section_type in data: diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index c84b62d0..1c5980c2 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -2138,10 +2138,12 @@ class PmsConnect(object): sort_type = '&type=10' elif section_type == 'photo': sort_type = '' - elif section_type == 'photoAlbum': + elif section_type == 'photo_album': sort_type = '&type=14' elif section_type == 'picture': - sort_type = '&type=13' + sort_type = '&type=13&clusterZoomLevel=1' + elif section_type == 'clip': + sort_type = '&type=12&clusterZoomLevel=1' else: sort_type = '' @@ -2284,12 +2286,12 @@ class PmsConnect(object): library_stats.update(child_stats) if section_type == 'photo': - parent_list = self.get_library_children_details(section_id=section_id, section_type='photoAlbum', count='1') + parent_list = self.get_library_children_details(section_id=section_id, section_type='picture', count='1') if parent_list: parent_stats = {'parent_count': parent_list['library_count']} library_stats.update(parent_stats) - child_list = self.get_library_children_details(section_id=section_id, section_type='picture', count='1') + child_list = self.get_library_children_details(section_id=section_id, section_type='clip', count='1') if child_list: child_stats = {'child_count': child_list['library_count']} library_stats.update(child_stats) diff --git a/plexpy/session.py b/plexpy/session.py index 23e9b02d..4fe0d014 100644 --- a/plexpy/session.py +++ b/plexpy/session.py @@ -79,7 +79,7 @@ def get_session_library_filters_type(filters, media_type=None): filters = filters.get('filter_tv', ()) elif media_type == 'artist' or media_type == 'album' or media_type == 'track': filters = filters.get('filter_music', ()) - elif media_type == 'photo' or media_type == 'photoAlbum' or media_type == 'picture': + elif media_type == 'photo' or media_type == 'photo_album' or media_type == 'picture' or media_type == 'clip': filters = filters.get('filter_photos', ()) else: filters = filters.get('filter_all', ())