Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-dl doesn't start via cron when using option -o #17641

Closed
hollysheep opened this issue Sep 23, 2018 · 1 comment
Closed

youtube-dl doesn't start via cron when using option -o #17641

hollysheep opened this issue Sep 23, 2018 · 1 comment

Comments

@hollysheep
Copy link

@hollysheep hollysheep commented Sep 23, 2018

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)s

i 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>&1

it 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?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 23, 2018

You must quote the whole argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.