Skip to content

Commit

Permalink
Ignore leading spaces (and trailing also) in all URL from url list or…
Browse files Browse the repository at this point in the history
… command line
  • Loading branch information
baryluk committed Mar 23, 2012
1 parent ceba827 commit d891ff9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions youtube-dl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d891ff9

Please sign in to comment.