Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Error when using --batch-file #2471
Comments
|
It's fixed on |
Hello,
I encountered a problem when using the -a or --batch-file option:
$ youtube-dl -t -a batch.txt --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-t', '-a', 'batch.txt', '--verbose']
[debug] Encodings: locale 'UTF-8', fs 'utf-8', out 'UTF-8', pref: 'UTF-8'
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 9, in
load_entry_point('youtube-dl==2014.02.25', 'console_scripts', 'youtube-dl')()
File "/usr/lib/python3.3/site-packages/youtube_dl/init.py", line 804, in main
_real_main(argv)
File "/usr/lib/python3.3/site-packages/youtube_dl/init.py", line 562, in _real_main
batchfd = io.open(opts.batchfile, 'r', encoding='utf-8', errors='ignore')
NameError: global name 'io' is not defined
content of batch.txt:
http://www.youtube.com/watch?v=l2ccxk4SEo4
I also noticed that the error occurs even if I do not specify the file to read from.