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", "name": "ripster-backend",
"version": "0.10.2-11", "version": "0.10.2-12",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ripster-backend", "name": "ripster-backend",
"version": "0.10.2-11", "version": "0.10.2-12",
"dependencies": { "dependencies": {
"archiver": "^7.0.1", "archiver": "^7.0.1",
"cors": "^2.8.5", "cors": "^2.8.5",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "ripster-backend", "name": "ripster-backend",
"version": "0.10.2-11", "version": "0.10.2-12",
"private": true, "private": true,
"type": "commonjs", "type": "commonjs",
"scripts": { "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 = {}) { function parseHandBrakeSelectedTitleInfo(scanJson, options = {}) {
const titleList = pickScanTitleList(scanJson); const titleList = pickScanTitleList(scanJson);
if (!Array.isArray(titleList) || titleList.length === 0) { if (!Array.isArray(titleList) || titleList.length === 0) {
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "ripster-frontend", "name": "ripster-frontend",
"version": "0.10.2-11", "version": "0.10.2-12",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ripster-frontend", "name": "ripster-frontend",
"version": "0.10.2-11", "version": "0.10.2-12",
"dependencies": { "dependencies": {
"primeicons": "^7.0.0", "primeicons": "^7.0.0",
"primereact": "^10.9.2", "primereact": "^10.9.2",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "ripster-frontend", "name": "ripster-frontend",
"version": "0.10.2-11", "version": "0.10.2-12",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "ripster", "name": "ripster",
"version": "0.10.2-11", "version": "0.10.2-12",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ripster", "name": "ripster",
"version": "0.10.2-11", "version": "0.10.2-12",
"devDependencies": { "devDependencies": {
"concurrently": "^9.1.2" "concurrently": "^9.1.2"
} }
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "ripster", "name": "ripster",
"private": true, "private": true,
"version": "0.10.2-11", "version": "0.10.2-12",
"scripts": { "scripts": {
"dev": "concurrently \"npm run dev --prefix backend\" \"npm run dev --prefix frontend\"", "dev": "concurrently \"npm run dev --prefix backend\" \"npm run dev --prefix frontend\"",
"dev:backend": "npm run dev --prefix backend", "dev:backend": "npm run dev --prefix backend",