A feature-rich command-line audio/video downloader
Expand user's home in batch file path.
Kevin Deldyckee2eca6f65e99
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.pyindex 737f6545d4..7a0466077a 100644--- a/youtube_dl/__init__.py+++ b/youtube_dl/__init__.py@@ -86,7 +86,9 @@ def _real_main(argv=None):if opts.batchfile == '-':batchfd = sys.stdinelse:- batchfd = io.open(opts.batchfile, 'r', encoding='utf-8', errors='ignore')+ batchfd = io.open(+ compat_expanduser(opts.batchfile),+ 'r', encoding='utf-8', errors='ignore')batch_urls = read_batch_urls(batchfd)if opts.verbose:write_string('[debug] Batch file urls: ' + repr(batch_urls) + '\n')