projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceba827
)
Ignore leading spaces (and trailing also) in all URL from url list or command line
author
Witold Baryluk
<baryluk@smp.if.uj.edu.pl>
Fri, 23 Mar 2012 05:15:57 +0000
(06:15 +0100)
committer
Witold Baryluk
<baryluk@smp.if.uj.edu.pl>
Fri, 23 Mar 2012 05:15:57 +0000
(06:15 +0100)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 5224611d27b097d851c228d30edcb0f8c1d3a260..b466c1570a0a90e2095f558585f6626cb8e9769e 100755
(executable)
--- 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)