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/cache should live in $XDG_CACHE_HOME (~/.cache) #1615
Comments
|
What makes you think that the cache directory would be
|
|
I had a ~/.youtube-dl/cache directory in my home directory with a recent timestamp; presumably an older version uses that directory instead. Didn't occur to me that that might have already been changed. |
|
At first it used |
youtube-dl creates a cache directory in .youtube-dl/cache. This directory should live in the standard cache directory, $XDG_CACHE_HOME (~/.cache if that's unset). See http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html for the standard specifying this and other standard directories (it's the same spec that specifies the ~/.config currently used for ~/.config/youtube-dl.conf).
Among other things, this will make it easier to exclude the cache from backups; many backup tools already know to skip ~/.cache , and even for those that don't, excluding one path proves easier than excluding one path per program.