Browse Source

Ignore leading spaces (and trailing also) in all URL from url list or command line

master
Witold Baryluk 12 years ago
parent
commit
d891ff9fd9
1 changed files with 1 additions and 0 deletions
  1. 1
      youtube-dl

1
youtube-dl

@ -4563,6 +4563,7 @@ def _real_main():
except IOError: except IOError:
sys.exit(u'ERROR: batch file could not be read') sys.exit(u'ERROR: batch file could not be read')
all_urls = batchurls + args all_urls = batchurls + args
all_urls = map(lambda url: url.strip(), all_urls)
# General configuration # General configuration
cookie_processor = urllib2.HTTPCookieProcessor(jar) cookie_processor = urllib2.HTTPCookieProcessor(jar)

Loading…
Cancel
Save