2
0
Эх сурвалжийг харах

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

Witold Baryluk 13 жил өмнө
parent
commit
d891ff9fd9
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      youtube-dl

+ 1 - 0
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)