From b550e01cd538e9abf947c51e1dd716ebdee1dbe7 Mon Sep 17 00:00:00 2001 From: Tormy Van Cool <32305535+tormyvancool@users.noreply.github.com> Date: Fri, 8 Nov 2024 20:15:08 +0100 Subject: [PATCH] Update tormyvancool_YOUTUBE Downloader.lua Fixed the function getOS() --- Video/tormyvancool_YOUTUBE Downloader.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Video/tormyvancool_YOUTUBE Downloader.lua b/Video/tormyvancool_YOUTUBE Downloader.lua index c681f5b51..125f5c613 100644 --- a/Video/tormyvancool_YOUTUBE Downloader.lua +++ b/Video/tormyvancool_YOUTUBE Downloader.lua @@ -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 @@ -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")