Remove media_type argument from item stats API call

This commit is contained in:
JonnyWong16 2022-01-03 12:53:21 -08:00
parent 3fc2368078
commit cd59e1d4c4
No known key found for this signature in database
GPG key ID: 7A649674469E6574

View file

@ -931,7 +931,7 @@ DOCUMENTATION :: END
$.ajax({ $.ajax({
url: 'item_watch_time_stats', url: 'item_watch_time_stats',
async: true, async: true,
data: { rating_key: "${data['rating_key']}", media_type: "${data['media_type']}" }, data: { rating_key: "${data['rating_key']}" },
complete: function(xhr, status) { complete: function(xhr, status) {
$("#watch-time-stats").html(xhr.responseText); $("#watch-time-stats").html(xhr.responseText);
} }
@ -940,7 +940,7 @@ DOCUMENTATION :: END
$.ajax({ $.ajax({
url: 'item_user_stats', url: 'item_user_stats',
async: true, async: true,
data: { rating_key: "${data['rating_key']}", media_type: "${data['media_type']}" }, data: { rating_key: "${data['rating_key']}" },
complete: function(xhr, status) { complete: function(xhr, status) {
$("#user-stats").html(xhr.responseText); $("#user-stats").html(xhr.responseText);
} }