feat: improve titles

This commit is contained in:
Jan Bader 2025-04-25 11:55:28 +02:00
parent d5a20c3f80
commit 6c37ac5b95

View File

@ -74,6 +74,14 @@ func newMediaElement(p string) *mediaElement {
word := words[i]
upperWord := strings.ToUpper(word)
switch upperWord {
case "SYNCED":
fallthrough
case "BD":
fallthrough
case "DL":
fallthrough
case "TVS":
continue
case "EN":
fallthrough
case "DE":
@ -90,8 +98,12 @@ func newMediaElement(p string) *mediaElement {
element.Tags = append(element.Tags, "1080p")
case "X264":
element.Tags = append(element.Tags, "x264")
case "H264":
element.Tags = append(element.Tags, "x264")
case "X265":
element.Tags = append(element.Tags, "x265")
case "H265":
element.Tags = append(element.Tags, "x265")
default:
titleWords = append(titleWords, word)
}