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/cache should live in $XDG_CACHE_HOME (~/.cache) #1615

Closed
joshtriplett opened this issue Oct 18, 2013 · 3 comments
Closed

.youtube-dl/cache should live in $XDG_CACHE_HOME (~/.cache) #1615

joshtriplett opened this issue Oct 18, 2013 · 3 comments

Comments

@joshtriplett
Copy link

@joshtriplett joshtriplett commented Oct 18, 2013

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.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 18, 2013

What makes you think that the cache directory would be ~/.youtube-dl/cache? Both code and documentation state:

By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl .

@phihag phihag closed this Oct 18, 2013
@joshtriplett
Copy link
Author

@joshtriplett joshtriplett commented Oct 18, 2013

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.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 18, 2013

At first it used .cache, but it was changed in #1529. You can remove the youtube files inside the old direcotry.

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.