summaryrefslogtreecommitdiff
path: root/Jel/Models/JellyfinKitExtensions.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Jel/Models/JellyfinKitExtensions.swift')
-rw-r--r--Jel/Models/JellyfinKitExtensions.swift28
1 files changed, 0 insertions, 28 deletions
diff --git a/Jel/Models/JellyfinKitExtensions.swift b/Jel/Models/JellyfinKitExtensions.swift
deleted file mode 100644
index 197731c..0000000
--- a/Jel/Models/JellyfinKitExtensions.swift
+++ /dev/null
@@ -1,28 +0,0 @@
-//
-// JellyfinKitExtensions.swift
-// Jel
-//
-// Created by zerocool on 12/24/23.
-//
-
-import Foundation
-import JellyfinKit
-
-extension BaseItemDto {
- func getRuntime() -> String? {
- let formatter: DateComponentsFormatter = {
- let localFormatter = DateComponentsFormatter()
- localFormatter.unitsStyle = .brief
- localFormatter.allowedUnits = [.hour, .minute]
-
- return localFormatter
- }()
-
- if let runTimeTicks = self.runTimeTicks {
- let text = formatter.string(from: Double(runTimeTicks / 10_000_000))
- return text
- }
-
- return nil
- }
-}