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

skip already downloaded files - any solution? #1010

Closed
tottitu opened this issue Jul 8, 2013 · 1 comment
Closed

skip already downloaded files - any solution? #1010

tottitu opened this issue Jul 8, 2013 · 1 comment

Comments

@tottitu
Copy link

@tottitu tottitu commented Jul 8, 2013

hi, first of all sorry for my english but i'm italian and u know..we are not the best with foreign languages.
my problem: i have to extract the audio from every video in a youtube channel and i want to delete the video files.
i will run a cron job every week with this script:

$ youtube-dl -o '/MY/FOLDER/%(uploader)s/%(upload_date)s - %(title)s.%(ext)s' ytuser:YOUTUBECHANEL --dateafter "date +"%Y%m%d" -d "8 day ago"" -i -c -x --audio-format best --audio-quality 0

but when i run this script it appears that phyton have problems with the date.
so, what should i do? tnx

@phihag
Copy link
Contributor

@phihag phihag commented Jul 8, 2013

Sorry, I'm not sure what you do expect and what is wrong - by default, youtube-dl deletes the video when you specify --extract-audio/-x. Notably, your dateafter specifcation is literally a string. Most likely, you want

youtube-dl ... --dateafter $(date +"%Y%m%d" -d "8 day ago")
@dstftw dstftw closed this Jan 24, 2016
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
3 participants
You can’t perform that action at this time.