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 }