1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 08:35:32 +00:00

Expanduser for more options with input files

This commit is contained in:
Sergey M․
2016-05-08 04:36:57 +06:00
parent f5436c5d9e
commit 3e169233da
2 changed files with 2 additions and 1 deletions

View File

@ -2018,6 +2018,7 @@ class YoutubeDL(object):
if opts_cookiefile is None:
self.cookiejar = compat_cookiejar.CookieJar()
else:
opts_cookiefile = compat_expanduser(opts_cookiefile)
self.cookiejar = compat_cookiejar.MozillaCookieJar(
opts_cookiefile)
if os.access(opts_cookiefile, os.R_OK):