TheFrenchGhosty / TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection

The ultimate collection of scripts for YouTube-DL.
GNU General Public License v3.0
2.29k stars 124 forks source link

Archivist Channels.sh - yt-dlp: error: Invalid date format "" #108

Closed realbaylen closed 7 months ago

realbaylen commented 7 months ago

Unable to use script: yt-dlp: error: Invalid date format ""

I am on the latest macOS

output.log

TheFrenchGhosty commented 7 months ago

MacOS isn't supported.

marcelbrueckner commented 7 months ago

macOS's date implementation slightly differs from GNU date. Simply install GNU date via Homebrew (brew install coreutils) and replace all invocations of date in the scripts with gdate.

Following part of the script

... --datebefore "$(date --date="30 days ago" +%Y%m%d)" ...

should then look like this

... --datebefore "$(gdate --date="30 days ago" +%Y%m%d)" ...
realbaylen commented 7 months ago

macOS's date implementation slightly differs from GNU date. Simply install GNU date via Homebrew (brew install coreutils) and replace all invocations of date in the scripts with gdate.

Following part of the script

... --datebefore "$(date --date="30 days ago" +%Y%m%d)" ...

should then look like this

... --datebefore "$(gdate --date="30 days ago" +%Y%m%d)" ...

Thank you!! Worked perfectly.