A feature-rich command-line audio/video downloader
Detect malformed output template
Ricardo Garcia14c300687e4a
diff --git a/youtube-dl b/youtube-dlindex 1c4a05471e..d3f2771101 100755--- a/youtube-dl+++ b/youtube-dl@@ -173,7 +173,7 @@ class FileDownloader(object):for result in results:try:filename = self._params['outtmpl'] % result- except (KeyError), err:+ except (ValueError, KeyError), err:self.to_stderr('ERROR: invalid output template: %s' % str(err))continuetry:@@ -443,9 +443,9 @@ if __name__ == '__main__':'username': None,'password': None,'quiet': False,- 'simulate': True,+ 'simulate': False,'format': None,- 'outtmpl': '%(id)s.%(ext)s'+ 'outtmpl': '%(ext)s/%(ext)s/%(id)s.%(ext)s'})fd.add_info_extractor(youtube_ie)fd.download([