From 7b7f877fa54ea6ff89d9279d8aa13a80817b29f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20F=C3=B6rster?= Date: Thu, 2 May 2024 16:46:43 +0200 Subject: [PATCH] upgrade to mpvkit-0.38.0 subtitles are working gain (was broken with 0.37.0) --- Model/Player/Backends/MPVClient.swift | 4 ++++ Yattee.xcodeproj/project.pbxproj | 4 ++-- .../xcshareddata/swiftpm/Package.resolved | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Model/Player/Backends/MPVClient.swift b/Model/Player/Backends/MPVClient.swift index f42b840a..dafea810 100644 --- a/Model/Player/Backends/MPVClient.swift +++ b/Model/Player/Backends/MPVClient.swift @@ -138,6 +138,10 @@ final class MPVClient: ObservableObject { args.append("replace") + // needed since mpvkit 0.38.0 + // https://github.com/mpv-player/mpv/issues/13806#issuecomment-2029818905 + args.append("-1") + if let time, time.seconds > 0 { options.append("start=\(Int(time.seconds))") } diff --git a/Yattee.xcodeproj/project.pbxproj b/Yattee.xcodeproj/project.pbxproj index 832f774d..172e12df 100644 --- a/Yattee.xcodeproj/project.pbxproj +++ b/Yattee.xcodeproj/project.pbxproj @@ -5003,8 +5003,8 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/cxfksword/MPVKit.git"; requirement = { - kind = revision; - revision = dca1e345a26d09a3d621d7656a94e6427f3f7b83; + kind = upToNextMinorVersion; + minimumVersion = 0.38.0; }; }; /* End XCRemoteSwiftPackageReference section */ diff --git a/Yattee.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Yattee.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index f0c03db3..358d63b3 100644 --- a/Yattee.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Yattee.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -60,7 +60,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/cxfksword/MPVKit.git", "state" : { - "revision" : "dca1e345a26d09a3d621d7656a94e6427f3f7b83" + "revision" : "f646e4b625e9c8a2ff22a7e0bb5557306300be5d", + "version" : "0.38.0" } }, { @@ -181,5 +182,5 @@ } } ], - "version" : 2 + "version" : 3 }