From c37bc726eafd790649a8168b0b53a69fae886273 Mon Sep 17 00:00:00 2001 From: Aiden Vigue Date: Sun, 11 Jul 2021 23:28:35 -0400 Subject: [PATCH] Add PGSSub support --- Shared/Extensions/DeviceProfileBuilder.swift | 1 + Shared/Extensions/ImageView.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Shared/Extensions/DeviceProfileBuilder.swift b/Shared/Extensions/DeviceProfileBuilder.swift index c853c333..29d4e9e7 100644 --- a/Shared/Extensions/DeviceProfileBuilder.swift +++ b/Shared/Extensions/DeviceProfileBuilder.swift @@ -111,6 +111,7 @@ class DeviceProfileBuilder { subtitleProfiles.append(SubtitleProfile(format: "ssa", method: .embed)) subtitleProfiles.append(SubtitleProfile(format: "subrip", method: .embed)) subtitleProfiles.append(SubtitleProfile(format: "sub", method: .embed)) + subtitleProfiles.append(SubtitleProfile(format: "pgssub", method: .embed)) subtitleProfiles.append(SubtitleProfile(format: "subrip", method: .external)) subtitleProfiles.append(SubtitleProfile(format: "sub", method: .external)) subtitleProfiles.append(SubtitleProfile(format: "ass", method: .external)) diff --git a/Shared/Extensions/ImageView.swift b/Shared/Extensions/ImageView.swift index ac64f37a..bd8454ea 100644 --- a/Shared/Extensions/ImageView.swift +++ b/Shared/Extensions/ImageView.swift @@ -31,7 +31,7 @@ struct ImageView: View { } .failure { Rectangle() - .background(Color.gray) + .fill(.gray) } } }