0.10.2-12 Track List

This commit is contained in:
2026-03-16 12:00:09 +00:00
parent 4ca85f6482
commit affabd3720
7 changed files with 29 additions and 9 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "ripster-backend",
"version": "0.10.2-11",
"version": "0.10.2-12",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ripster-backend",
"version": "0.10.2-11",
"version": "0.10.2-12",
"dependencies": {
"archiver": "^7.0.1",
"cors": "^2.8.5",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ripster-backend",
"version": "0.10.2-11",
"version": "0.10.2-12",
"private": true,
"type": "commonjs",
"scripts": {
+20
View File
@@ -1934,6 +1934,26 @@ function filterDtsCoreFallbackTracks(audioTracks) {
});
}
function parseHandBrakeTitleList(scanJson) {
const titleList = pickScanTitleList(scanJson);
if (!Array.isArray(titleList) || titleList.length === 0) {
return [];
}
return titleList.map((title, idx) => {
const handBrakeTitleId = normalizeScanTrackId(
title?.Index ?? title?.index ?? title?.Title ?? title?.title,
idx
);
const durationSeconds = parseHandBrakeDurationSeconds(
title?.Duration ?? title?.duration ?? title?.Length ?? title?.length
);
const audioTrackCount = Array.isArray(title?.AudioList) ? title.AudioList.length : 0;
const subtitleTrackCount = Array.isArray(title?.SubtitleList) ? title.SubtitleList.length : 0;
const sizeBytes = Number(title?.Size?.Bytes ?? title?.Bytes ?? 0) || 0;
return { handBrakeTitleId, durationSeconds, audioTrackCount, subtitleTrackCount, sizeBytes };
});
}
function parseHandBrakeSelectedTitleInfo(scanJson, options = {}) {
const titleList = pickScanTitleList(scanJson);
if (!Array.isArray(titleList) || titleList.length === 0) {