A feature-rich command-line audio/video downloader
warn if %(stitle)s is being used
Philipp Hagemeister97cd3afc7525
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.pyindex dce1a23a4c..b6aebe4ac2 100644--- a/youtube_dl/FileDownloader.py+++ b/youtube_dl/FileDownloader.py@@ -94,6 +94,9 @@ class FileDownloader(object):self._screen_file = [sys.stdout, sys.stderr][params.get('logtostderr', False)]self.params = params+ if '%(stitle)s' in self.params['outtmpl']:+ self.to_stderr(u'WARNING: %(stitle)s is deprecated. Use the %(title)s and the --restrict-filenames flag(which also secures %(uploader)s et al) instead.')+@staticmethoddef format_bytes(bytes):if bytes is None:diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.pyindex c3e0f78e5f..7cc17af930 100644--- a/youtube_dl/__init__.py+++ b/youtube_dl/__init__.py@@ -532,7 +532,7 @@ def _real_main():parser.error(u'you must provide at least one URL')else:sys.exit()-+try:retcode = fd.download(all_urls)except MaxDownloadsReached: