Skip to content

A feature-rich command-line audio/video downloader

Fix NameError

Ricardo Garciad1580ed9908f
diff --git a/youtube-dl b/youtube-dl
index 271952af82..1ad297c26d 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -894,6 +894,7 @@ if __name__ == '__main__':
(opts, args) = parser.parse_args()
# Batch file verification
+ batchurls = []
if opts.batchfile is not None:
try:
batchurls = [line.strip() for line in open(opts.batchfile, 'r')]