From d891ff9fd9952b2829a47b508acf40d951546123 Mon Sep 17 00:00:00 2001 From: Witold Baryluk Date: Fri, 23 Mar 2012 06:15:57 +0100 Subject: [PATCH] Ignore leading spaces (and trailing also) in all URL from url list or command line --- youtube-dl | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube-dl b/youtube-dl index 5224611d27b0..b466c1570a0a 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)