mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix unused var and pseudorandom warnings
This commit is contained in:
parent
9077782c17
commit
ad2472e90e
19 changed files with 31 additions and 30 deletions
|
@ -60,7 +60,7 @@ function getProgramInfoHtml(item, options) {
|
|||
|
||||
miscInfo.push(text);
|
||||
} catch (e) {
|
||||
console.error('error parsing date:', item.StartDate);
|
||||
console.error('error parsing date:', item.StartDate, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ export function getMediaInfoHtml(item, options = {}) {
|
|||
text = datetime.toLocaleDateString(date);
|
||||
miscInfo.push(text);
|
||||
} catch (e) {
|
||||
console.error('error parsing date:', item.PremiereDate);
|
||||
console.error('error parsing date:', item.PremiereDate, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@ export function getMediaInfoHtml(item, options = {}) {
|
|||
miscInfo.push(text);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('error parsing date:', item.StartDate);
|
||||
console.error('error parsing date:', item.StartDate, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,7 @@ export function getMediaInfoHtml(item, options = {}) {
|
|||
text += ` - ${endYear}`;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('error parsing date:', item.EndDate);
|
||||
console.error('error parsing date:', item.EndDate, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -238,7 +238,7 @@ export function getMediaInfoHtml(item, options = {}) {
|
|||
text = globalize.translate('OriginalAirDateValue', datetime.toLocaleDateString(date));
|
||||
miscInfo.push(text);
|
||||
} catch (e) {
|
||||
console.error('error parsing date:', program.PremiereDate);
|
||||
console.error('error parsing date:', program.PremiereDate, e);
|
||||
}
|
||||
} else if (program.ProductionYear && options.year !== false ) {
|
||||
miscInfo.push(program.ProductionYear);
|
||||
|
@ -255,7 +255,7 @@ export function getMediaInfoHtml(item, options = {}) {
|
|||
text = datetime.toLocaleString(datetime.parseISO8601Date(item.PremiereDate).getFullYear(), { useGrouping: false });
|
||||
miscInfo.push(text);
|
||||
} catch (e) {
|
||||
console.error('error parsing date:', item.PremiereDate);
|
||||
console.error('error parsing date:', item.PremiereDate, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue