Skip to content

Commit

Permalink
Add Mac params only on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
po5 committed Oct 31, 2022
1 parent aa67ae4 commit cbf0108
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion thumbfast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ local function spawn(time)
remove_thumbnail_files()

local args = {
mpv_path, path, "--no-config", "--msg-level=all=no", "--idle", "--pause", "--keep-open=always", "--really-quiet", "--no-terminal", "--macos-app-activation-policy=prohibited",
mpv_path, path, "--no-config", "--msg-level=all=no", "--idle", "--pause", "--keep-open=always", "--really-quiet", "--no-terminal",
"--edition="..(mp.get_property_number("edition") or "auto"), "--vid="..(mp.get_property_number("vid") or "auto"), "--no-sub", "--no-audio",
"--start="..time, "--hr-seek=no",
"--ytdl-format=worst", "--demuxer-readahead-secs=0", "--demuxer-max-bytes=128KiB",
Expand All @@ -337,6 +337,10 @@ local function spawn(time)
table.insert(args, "--sws-allow-zimg=no")
end

if os_name == "Mac" then
table.insert(args, "--macos-app-activation-policy=prohibited")
end

if os_name == "Windows" then
table.insert(args, "--input-ipc-server="..options.socket)
else
Expand Down

0 comments on commit cbf0108

Please sign in to comment.