mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 04:37:06 -05:00 
			
		
		
		
	Expanduser for more options with input files
This commit is contained in:
		@@ -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):
 | 
			
		||||
 
 | 
			
		||||
@@ -406,7 +406,7 @@ def _real_main(argv=None):
 | 
			
		||||
 | 
			
		||||
        try:
 | 
			
		||||
            if opts.load_info_filename is not None:
 | 
			
		||||
                retcode = ydl.download_with_info_file(opts.load_info_filename)
 | 
			
		||||
                retcode = ydl.download_with_info_file(compat_expanduser(opts.load_info_filename))
 | 
			
		||||
            else:
 | 
			
		||||
                retcode = ydl.download(all_urls)
 | 
			
		||||
        except MaxDownloadsReached:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user