I'm trying to get this script working for YouTube-DL where it asks me to paste a link to download. The script works but I can't get the Renamer line at the end to actually rename the file like it's supposed to.
u/echo off
cd /D "%~dp0"
setlocal enableDelayedExpansion
set /p video="Paste the video link to download: "
youtube-dl ^
-f ("bestvideo[width>=1920]"/bestvideo)+bestaudio/best ^
--o "L:/YouTube/Unsorted/%%(title)s.%%(ext)s" ^
!video!
Renamer.exe -b RenamerBatchFile.arb -afr L:/YouTube/Unsorted/*.* -g -x
PAUSE
Do you know how to get it working? I got it working when using a similar script as below to download a whole channel but I'm trying to get the above script working for renaming a file after a single video has been downloaded with the script above:
Hi,
Is the .arb file in the current folder? Otherwise you have to provide its full path (or maybe it is needed to always provide its full path?)
Otherwise I have no idea. Maybe a problem with spaces in names? (though that in your example there are none) - if so, quotes around paths are needed.