Skip to content

Commit d891ff9

Browse files
committed
Ignore leading spaces (and trailing also) in all URL from url list or command line
1 parent ceba827 commit d891ff9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

youtube-dl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4563,6 +4563,7 @@ def _real_main():
45634563
except IOError:
45644564
sys.exit(u'ERROR: batch file could not be read')
45654565
all_urls = batchurls + args
4566+
all_urls = map(lambda url: url.strip(), all_urls)
45664567

45674568
# General configuration
45684569
cookie_processor = urllib2.HTTPCookieProcessor(jar)

0 commit comments

Comments
 (0)