]> git.bitcoin.ninja Git - youtube-dl/blobdiff - youtube_dl/FileDownloader.py
Merge remote-tracking branch 'joelverhagen/master'
[youtube-dl] / youtube_dl / FileDownloader.py
index dce1a23a4c1d470a2e0cc971519386faa06aea73..b6aebe4ac24f5dfcbdaf044730365b833eeab091 100644 (file)
@@ -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.')
+
        @staticmethod
        def format_bytes(bytes):
                if bytes is None: