diff --git a/data/interfaces/default/js/tables/sync_table.js b/data/interfaces/default/js/tables/sync_table.js index 942e37eb..748e0c51 100644 --- a/data/interfaces/default/js/tables/sync_table.js +++ b/data/interfaces/default/js/tables/sync_table.js @@ -37,7 +37,6 @@ sync_table_options = { "data": "state", "createdCell": function (td, cellData, rowData, row, col) { if (cellData === 'pending') { - $(td).addClass('currentlyWatching'); $(td).html('Pending...'); } else { $(td).html(cellData.toProperCase()); @@ -66,7 +65,7 @@ sync_table_options = { "data": "sync_title", "createdCell": function (td, cellData, rowData, row, col) { if (cellData !== '') { - if (rowData['metadata_type'] !== '') { + if (rowData['rating_key']) { $(td).html('' + cellData + ''); } else { $(td).html(cellData); @@ -74,7 +73,7 @@ sync_table_options = { } }, "className": "datatable-wrap" -}, + }, { "targets": [4], "data": "metadata_type", @@ -150,6 +149,11 @@ sync_table_options = { "preDrawCallback": function (settings) { var msg = " Fetching rows..."; showMsg(msg, false, false, 0) + }, + "rowCallback": function (row, rowData, rowIndex) { + if (rowData['state'] === 'pending') { + $(row).addClass('current-activity-row'); + } } }; diff --git a/plexpy/webserve.py b/plexpy/webserve.py index 57804472..5ae75877 100644 --- a/plexpy/webserve.py +++ b/plexpy/webserve.py @@ -3716,6 +3716,9 @@ class WebInterface(object): @cherrypy.expose @requireAuth() def info(self, rating_key=None, source=None, query=None, **kwargs): + if rating_key and not str(rating_key).isdigit(): + raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT) + metadata = None config = {