fix: remove subtitle type from name unless specified
This commit is contained in:
parent
958a55ff17
commit
04dd2309c6
@ -224,7 +224,7 @@ export default class IntegrityManager {
|
|||||||
|
|
||||||
if (parts.includes("pgs")) {
|
if (parts.includes("pgs")) {
|
||||||
fields.type = "PGS"
|
fields.type = "PGS"
|
||||||
} else {
|
} else if (parts.includes("srt")) {
|
||||||
fields.type = "SRT"
|
fields.type = "SRT"
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
@ -316,7 +316,9 @@ export default class IntegrityManager {
|
|||||||
if (fields.flags.hearing_impaired) {
|
if (fields.flags.hearing_impaired) {
|
||||||
name += " SDH"
|
name += " SDH"
|
||||||
}
|
}
|
||||||
|
if (fields.type) {
|
||||||
name += " | " + fields.type
|
name += " | " + fields.type
|
||||||
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
return name
|
return name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user