mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 16:22:57 -07:00
update naming and API doc
This commit is contained in:
parent
2b1d7b46eb
commit
e29cbdf9f9
3 changed files with 5 additions and 3 deletions
|
@ -854,7 +854,7 @@ DOCUMENTATION :: END
|
|||
};
|
||||
},
|
||||
complete: function(xhr, status) {
|
||||
$("#info-element-total-media-runtime").html(humanDuration(xhr.responseJSON.total_duration));
|
||||
$("#info-element-total-media-runtime").html(humanDuration(xhr.responseJSON.total_media_duration));
|
||||
$("#info-element-total-file-size").html(humanFileSize(xhr.responseJSON.total_file_size));
|
||||
}
|
||||
};
|
||||
|
|
|
@ -631,7 +631,7 @@ class Libraries(object):
|
|||
results = sorted(results, key=lambda k: k[sort_key].lower(), reverse=reverse)
|
||||
|
||||
total_file_size = sum([helpers.cast_to_int(d['file_size']) for d in results])
|
||||
total_duration = sum([helpers.cast_to_int(d['duration']) for d in results])
|
||||
total_media_duration = sum([helpers.cast_to_int(d['duration']) for d in results])
|
||||
|
||||
# Paginate results
|
||||
results = results[json_data['start']:(json_data['start'] + json_data['length'])]
|
||||
|
@ -645,7 +645,7 @@ class Libraries(object):
|
|||
'draw': int(json_data['draw']),
|
||||
'filtered_file_size': filtered_file_size,
|
||||
'total_file_size': total_file_size,
|
||||
'total_duration': total_duration,
|
||||
'total_media_duration': total_media_duration,
|
||||
'last_refreshed': cache_time
|
||||
}
|
||||
|
||||
|
|
|
@ -798,12 +798,14 @@ class WebInterface(object):
|
|||
"recordsFiltered": 82,
|
||||
"filtered_file_size": 2616760056742,
|
||||
"total_file_size": 2616760056742,
|
||||
"total_media_duration": 7947375522,
|
||||
"data":
|
||||
[{"added_at": "1403553078",
|
||||
"audio_channels": "",
|
||||
"audio_codec": "",
|
||||
"bitrate": "",
|
||||
"container": "",
|
||||
"duration": "",
|
||||
"file_size": 253660175293,
|
||||
"grandparent_rating_key": "",
|
||||
"last_played": 1462380698,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue