diff --git a/data/interfaces/default/js/tables/collections_table.js b/data/interfaces/default/js/tables/collections_table.js index 969e33e9..23ad5c1f 100644 --- a/data/interfaces/default/js/tables/collections_table.js +++ b/data/interfaces/default/js/tables/collections_table.js @@ -24,8 +24,12 @@ collections_table_options = { "data": "titleSort", "createdCell": function (td, cellData, rowData, row, col) { if (cellData !== '') { + var smart = ''; + if (rowData['smart']) { + smart = ' ' + } var thumb_popover = '' + rowData['title'] + ''; - $(td).html('' + thumb_popover + ''); + $(td).html(smart + '' + thumb_popover + ''); } }, "width": "50%", @@ -90,6 +94,11 @@ collections_table_options = { //$('html,body').scrollTop(0); $('#ajaxMsg').fadeOut(); + // Create the tooltips. + $('body').tooltip({ + selector: '[data-toggle="tooltip"]', + container: 'body' + }); $('body').popover({ selector: '[data-toggle="popover"]', html: true, diff --git a/data/interfaces/default/js/tables/playlists_table.js b/data/interfaces/default/js/tables/playlists_table.js index a15f29a8..c66a9e61 100644 --- a/data/interfaces/default/js/tables/playlists_table.js +++ b/data/interfaces/default/js/tables/playlists_table.js @@ -34,8 +34,8 @@ playlists_table_options = { } else if (rowData['librarySectionID']) { breadcrumb = '§ion_id=' + rowData['librarySectionID']; } - var thumb_popover = '' + smart + cellData + ''; - $(td).html('' + thumb_popover + ''); + var thumb_popover = '' + cellData + ''; + $(td).html(smart + '' + thumb_popover + ''); } }, "width": "60%", diff --git a/plexpy/libraries.py b/plexpy/libraries.py index 8dabfccc..ad4e9bd2 100644 --- a/plexpy/libraries.py +++ b/plexpy/libraries.py @@ -172,6 +172,7 @@ def get_collections(section_id=None): 'art': collection.art, 'childCount': collection.childCount, 'collectionMode': collection_mode, + 'collectionPublished': collection.collectionPublished, 'collectionSort': collection_sort, 'contentRating': collection.contentRating, 'guid': collection.guid, @@ -180,6 +181,7 @@ def get_collections(section_id=None): 'maxYear': collection.maxYear, 'minYear': collection.minYear, 'ratingKey': collection.ratingKey, + 'smart': collection.smart, 'subtype': collection.subtype, 'summary': collection.summary, 'thumb': collection.thumb,