aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-04-28 16:26:11 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-04-28 16:26:11 +0200
commit08b2ac745a7991b58d17e3e8cb2c51e96b18534a (patch)
tree0f8d380384a764da7a0a9d700a4d71947e27a003 /youtube_dl/__init__.py
parent46a127eecbd3aac52b063ff11813cc7994160e27 (diff)
Default to --title (Fixes #499)
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 2639df818..fcce891bc 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -236,9 +236,9 @@ def parseOpts(overrideArguments=None):
help='print downloaded pages to debug problems(very verbose)')
filesystem.add_option('-t', '--title',
- action='store_true', dest='usetitle', help='use title in file name', default=False)
+ action='store_true', dest='usetitle', help='use title in file name (default)', default=False)
filesystem.add_option('--id',
- action='store_true', dest='useid', help='use video ID in file name', default=False)
+ action='store_true', dest='useid', help='use only video ID in file name', default=False)
filesystem.add_option('-l', '--literal',
action='store_true', dest='usetitle', help='[deprecated] alias of --title', default=False)
filesystem.add_option('-A', '--auto-number',
@@ -470,7 +470,7 @@ def _real_main(argv=None):
or (opts.usetitle and u'%(title)s-%(id)s.%(ext)s')
or (opts.useid and u'%(id)s.%(ext)s')
or (opts.autonumber and u'%(autonumber)s-%(id)s.%(ext)s')
- or u'%(id)s.%(ext)s')
+ or u'%(title)s-%(id)s.%(ext)s')
# File downloader
fd = FileDownloader({