Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl doesn't start via cron when using option -o #17641
Comments
|
You must quote the whole argument. |
hi,
normally i use youtube-dl on my raspberry pi without the option -o because the default outut dir it set in ~/.config/youtube/config:
-o /media/usb/youtube-dl/%(upload_date)s--%(title)s.%(ext)si want to check for new videos every day using cron, this works but only when i don't use the option -o. if noticed that when i use youtube-dl manually in terminal i have to quote the output name:
-o /media/usb/youtube-dl/'%(upload_date)s--%(title)s.%(ext)s'but also this doesn't work in cron. this is the whole line that i use in cron:
59 10 * * * /home/pi/bin/youtube-dl -i --dateafter 20180917 -o /media/usb/youtube-dl/"Europa League"/'%(upload_date)s--%(title)s.%(ext)s' --download-archive /home/pi/.youtube-dl-archive.txt --match-title " - " https://www.youtube.com/playlist?list=PLICWTVSt7RpHKkHdur-AYNbJoxY2w8KLg > /home/pi/youtube-log 2>&1it works without the output dir but not with it. there also isn't a log file in my home dir. i also tried "" instead of ' ' but without any result. it makes "nothing". is there something different when using cron?