summaryrefslogtreecommitdiff
path: root/Jel/Extensions
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2024-02-22 14:13:53 -0500
committerShav Kinderlehrer <[email protected]>2024-02-22 14:13:53 -0500
commit33b07566cbc07295131e9fe0e14643fbd9c5d14a (patch)
treecfdcf1ea68a9965f6301979bb7de5a3d18f29650 /Jel/Extensions
parent1ce620567c64c92872261317863695c4660acbd0 (diff)
downloadjel-33b07566cbc07295131e9fe0e14643fbd9c5d14a.tar.gz
jel-33b07566cbc07295131e9fe0e14643fbd9c5d14a.zip
Revamp EpisodeIconView + format item.overview properly
Some metadata sources use '<br>' instead of '\n' for newlines. This fixes that for the most part.
Diffstat (limited to 'Jel/Extensions')
-rw-r--r--Jel/Extensions/BaseItemDtoExtensions.swift (renamed from Jel/Extensions/JellyfinKitExtensions.swift)8
1 files changed, 8 insertions, 0 deletions
diff --git a/Jel/Extensions/JellyfinKitExtensions.swift b/Jel/Extensions/BaseItemDtoExtensions.swift
index 197731c..27771bb 100644
--- a/Jel/Extensions/JellyfinKitExtensions.swift
+++ b/Jel/Extensions/BaseItemDtoExtensions.swift
@@ -26,3 +26,11 @@ extension BaseItemDto {
return nil
}
}
+
+extension BaseItemDto {
+ var overviewNL: String? {
+ get {
+ self.overview?.replacingOccurrences(of: "<br>", with: "\n")
+ }
+ }
+}