diff options
| author | Witold Baryluk <baryluk@smp.if.uj.edu.pl> | 2012-03-23 06:15:57 +0100 | 
|---|---|---|
| committer | Witold Baryluk <baryluk@smp.if.uj.edu.pl> | 2012-03-23 06:15:57 +0100 | 
| commit | d891ff9fd9952b2829a47b508acf40d951546123 (patch) | |
| tree | 3075b06eed591eefa85dde4de45b47b963364d56 | |
| parent | ceba827e9aab563ae7c7190fc236ec1aa358ee59 (diff) | |
Ignore leading spaces (and trailing also) in all URL from url list or command line
| -rwxr-xr-x | youtube-dl | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/youtube-dl b/youtube-dl index 5224611d2..b466c1570 100755 --- a/youtube-dl +++ b/youtube-dl @@ -4563,6 +4563,7 @@ def _real_main():  		except IOError:  			sys.exit(u'ERROR: batch file could not be read')  	all_urls = batchurls + args +	all_urls = map(lambda url: url.strip(), all_urls)  	# General configuration  	cookie_processor = urllib2.HTTPCookieProcessor(jar) | 
