YouTube-DL - Can't get renamer script to work

If you need help on how to use the program
Post Reply
DaveyMames
Posts: 4
Joined: 2020-07-19 02:53:15

YouTube-DL - Can't get renamer script to work

Post by DaveyMames »

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.

Code: Select all

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:

Code: Select all

cd /D "%~dp0" 
youtube-dl -f ("bestvideo[width>=1920]"/bestvideo)+bestaudio/best https://www.youtube.com/c/markdice/videos 
-o "L:/YouTube/Politics/%%(title)s.%%(ext)s"
Renamer.exe -b RenamerBatchFile.arb -afr L:/YouTube/*.* -g -x
PAUSE
antp
Site Admin
Posts: 9712
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: YouTube-DL - Can't get renamer script to work

Post by antp »

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.
Post Reply