aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-11-27 13:11:06 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-11-27 13:11:06 +0100
commit97cd3afc7525394c46398f1526d412d081c02085 (patch)
tree22a6fd799c44e21b3f1c740660101b15b887d71e /youtube_dl/FileDownloader.py
parentaa2a94ed81857705e0fc0765cb884ed58fbdf5a5 (diff)
downloadyoutube-dl-97cd3afc7525394c46398f1526d412d081c02085.tar.xz
warn if %(stitle)s is being used
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index dce1a23a4..b6aebe4ac 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.')
+
@staticmethod
def format_bytes(bytes):
if bytes is None: