Awesome work on putting this together, both to @timmyx and @mikenye - much appreciated!
I've implemented the combination of the posts in this thread but I get the following error in the syslog every 12-13 minutes.
crond[2845]: failed parsing crontab for user root: 6* * * /usr/local/emhttp/plugins/user.scripts/startCustom.php /boot/config/plugins/user.scripts/scripts/youtube-dl/script > /dev/null 2>&1
If I 'Run Script' it works fine, but cron doesn't seem to be able to initiate on its own. I have set the custom value to 0 6 * * *, with an intended run daily at 6am.
The contents of my script:
#!/bin/bash
var=`date +"%FORMAT_STRING"`
now=`date +"%m_%d_%Y"`
now=`date +"%Y-%m-%d"`
docker run \
--rm \
-i \
--name youtube-dl-cron \
-e PGID=100 \
-e PUID=99 \
-v /mnt/user/towerMEDIAvideos/YTDL:/workdir:rw \
-v /mnt/user/towerMEDIAvideos/YTDLsettings:/settings:rw \
-v /mnt/user/towerMEDIAvideos/YTDLsettings/ytdl.conf:/etc/youtube-dl.conf:ro \
mikenye/youtube-dl >> /mnt/user/towerMEDIAvideos/YTDLsettings/logs/youtube-dl_${now}.log
Any idea on what I'm missing? Thanks in advance. Hopefully it helps someone else down the line.