1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Fix NameError

This commit is contained in:
Ricardo Garcia 2009-01-31 12:07:37 +01:00
parent eb0d2909a8
commit d1580ed990

View file

@ -894,6 +894,7 @@ if __name__ == '__main__':
(opts, args) = parser.parse_args() (opts, args) = parser.parse_args()
# Batch file verification # Batch file verification
batchurls = []
if opts.batchfile is not None: if opts.batchfile is not None:
try: try:
batchurls = [line.strip() for line in open(opts.batchfile, 'r')] batchurls = [line.strip() for line in open(opts.batchfile, 'r')]