From: Witold Baryluk Date: Fri, 23 Mar 2012 05:15:57 +0000 (+0100) Subject: Ignore leading spaces (and trailing also) in all URL from url list or command line X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=d891ff9fd9952b2829a47b508acf40d951546123;p=youtube-dl Ignore leading spaces (and trailing also) in all URL from url list or command line --- 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)