fix: remove subtitle type from name unless specified

This commit is contained in:
Louis Heredero 2025-05-12 15:50:22 +02:00
parent 958a55ff17
commit 04dd2309c6
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7

View File

@ -224,7 +224,7 @@ export default class IntegrityManager {
if (parts.includes("pgs")) {
fields.type = "PGS"
} else {
} else if (parts.includes("srt")) {
fields.type = "SRT"
}
break
@ -316,7 +316,9 @@ export default class IntegrityManager {
if (fields.flags.hearing_impaired) {
name += " SDH"
}
name += " | " + fields.type
if (fields.type) {
name += " | " + fields.type
}
break
}
return name