Skip to content

Commit

Permalink
Update tormyvancool_YOUTUBE Downloader.lua
Browse files Browse the repository at this point in the history
Fixed the function getOS()
  • Loading branch information
tormyvancool authored Nov 8, 2024
1 parent 5311ce4 commit b550e01
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Video/tormyvancool_YOUTUBE Downloader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ local CallPath = ScriptPath .. 'yt-dlp/' -- Get FullPath to yt-dlp
local a = {}
local MainPath = ''
if OS == "Win32" or OS == "Win64" then
MainPath = '"' .. ResourcePATH .. '/Scripts/Tormy Van Cool ReaPack Scripts/' .. VideoPath .. '/yt-dlp/' .. dlpWin .. '"'
MainPath = '"' ..CallPath .. dlpWin .. '"'
Start = 'start /b /wait "UPDATE & DOWNLOAD" '
OpSys = 1
end
Expand All @@ -172,17 +172,15 @@ local CallPath = ScriptPath .. 'yt-dlp/' -- Get FullPath to yt-dlp
OpSys = 2
end
if OS == "Other" then
-- MainPath = ResourcePATH .. '/Scripts/Tormy Van Cool ReaPack Scripts/Various/yt-dlp/' .. dlpLnx .. '"'
-- Start = '"'
-- os.execute('chmod +x "' .. MainPath .. '"')
MainPath = '"' .. ResourcePATH .. '/Scripts/Tormy Van Cool ReaPack Scripts/' .. VideoPath .. '/yt-dlp/' .. dlpLnx .. '"'
MainPath = '"' ..CallPath .. dlpLnx .. '"'
Start = ''
os.execute('chmod +x ' .. MainPath)
OpSys = 3
end
return MainPath
end



-- GET FILE SIZE
function get_file_size(filename)
local file = io.open(filename, "rb")
Expand Down

0 comments on commit b550e01

Please sign in to comment.