]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Ignore leading spaces (and trailing also) in all URL from url list or command line
authorWitold Baryluk <baryluk@smp.if.uj.edu.pl>
Fri, 23 Mar 2012 05:15:57 +0000 (06:15 +0100)
committerWitold Baryluk <baryluk@smp.if.uj.edu.pl>
Fri, 23 Mar 2012 05:15:57 +0000 (06:15 +0100)
youtube-dl

index 5224611d27b097d851c228d30edcb0f8c1d3a260..b466c1570a0a90e2095f558585f6626cb8e9769e 100755 (executable)
@@ -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)