mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 08:42:59 -07:00
fix cell formatting and concat of rating_key and section_id
This commit is contained in:
parent
ad4d3c30d5
commit
2689646f54
2 changed files with 7 additions and 1 deletions
|
@ -226,7 +226,7 @@ media_info_table_options = {
|
||||||
"targets": [10],
|
"targets": [10],
|
||||||
"data": "duration",
|
"data": "duration",
|
||||||
"createdCell": function (td, cellData, rowData, row, col) {
|
"createdCell": function (td, cellData, rowData, row, col) {
|
||||||
if (cellData !== null && cellData !== '') {
|
if (cellData !== null && cellData !== '' && cellData !== 0) {
|
||||||
$(td).html(humanDuration(cellData));
|
$(td).html(humanDuration(cellData));
|
||||||
} else {
|
} else {
|
||||||
if (rowData['section_type'] != 'photo' && get_file_sizes != null) {
|
if (rowData['section_type'] != 'photo' && get_file_sizes != null) {
|
||||||
|
|
|
@ -763,6 +763,9 @@ class Libraries(object):
|
||||||
rows = []
|
rows = []
|
||||||
library_count = 0
|
library_count = 0
|
||||||
|
|
||||||
|
section_id = str(section_id) if section_id else section_id
|
||||||
|
rating_key = str(rating_key) if rating_key else rating_key
|
||||||
|
|
||||||
# Import data cache from json file
|
# Import data cache from json file
|
||||||
try:
|
try:
|
||||||
inFilePath = os.path.join(plexpy.CONFIG.CACHE_DIR, (path + '_%s%s' % (section_id, ('-' + rating_key) if rating_key else '')))
|
inFilePath = os.path.join(plexpy.CONFIG.CACHE_DIR, (path + '_%s%s' % (section_id, ('-' + rating_key) if rating_key else '')))
|
||||||
|
@ -788,6 +791,9 @@ class Libraries(object):
|
||||||
if rows is None:
|
if rows is None:
|
||||||
rows = []
|
rows = []
|
||||||
|
|
||||||
|
section_id = str(section_id) if section_id else section_id
|
||||||
|
rating_key = str(rating_key) if rating_key else rating_key
|
||||||
|
|
||||||
try:
|
try:
|
||||||
outFilePath = os.path.join(plexpy.CONFIG.CACHE_DIR, (path + '_%s%s' % (section_id, ('-' + rating_key) if rating_key else '')))
|
outFilePath = os.path.join(plexpy.CONFIG.CACHE_DIR, (path + '_%s%s' % (section_id, ('-' + rating_key) if rating_key else '')))
|
||||||
with open(outFilePath, 'w') as outFile:
|
with open(outFilePath, 'w') as outFile:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue