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.
trouble expanding ${HOME} in output file template, using youtube-dl.conf #1639
Comments
|
youtube-dl is not a shell script, and therefore can't really expand variables or other shell constructs. Since version 2013.10.22 it can, however, expand user names. Simply set the configuration to
Then, type
to update. As mentioned above, you need 2013.10.22 or newer. I'm releasing as we speak, but since I'm currently on an extremely slow network, it may take a couple of minutes until the new version is out. Thanks for the report! |
|
Thanks, that works great! I prefer tilde-expansion anyway. :-) (Mucking about with $HOME was just an attempt at a workaround anyway, since I couldn't get tilde-expansion working earlier.) |
I'm having an issue expanding environment variables from within the argument to the -o command-line arg, while using it within the youtube-dl.conf file. Admittedly, I've only tried $HOME so-far, but I can't imagine it being specific to only that var. See the sample output below.
Escaping special characters doesn't seem to help. I also have the same problem with tilde expansion, and I can provide some sample output for that case too, if desired.
Naturally, I wouldn't classify this as a critical issue, but it would be nice to keep the same config file across all the hosts I use, without having to hard-code a different home-directory for each place it lives.