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.
File Path Normalizing with --write-archive #2137
Comments
|
Thanks for the report, fixed. |
|
Hi, i just realized i lied to you, -o does NOT expand ~. I did that manually in my script. You might want to reverse this change then or use expanduser also on the -o option. |
|
|
|
Probably was some old relict in my script then, thank you for your work on youtube-dl |
Hallo,
atm --write-archive does not normalize / expand a path when used, limiting to absolute paths which is not the same way youtube-dl handles for example the -o template.
The 'cheap' fix in the util.py file:
class locked_file(object):
def init(self, filename, mode, encoding=None):
assert mode in ['r', 'a', 'w']
self.f = io.open(os.path.expanduser(filename), mode, encoding=encoding)
self.mode = mode