aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-09 22:32:26 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-09 22:32:35 +0100
commita1cf99d03a6a842aa4e53c211c9f38dd27db5971 (patch)
tree82a00ed7384c9f1dd809a3050c61119782fe641e /youtube_dl/options.py
parent3c6af203cc615f835e8ff95508e04d908950249c (diff)
downloadyoutube-dl-a1cf99d03a6a842aa4e53c211c9f38dd27db5971.tar.xz
[YoutubeDL] Add playlist_id and playlist_title fields (Fixes #4139)
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index cdcf2f62c..c182abfdc 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -490,10 +490,12 @@ def parseOpts(overrideArguments=None):
'%(format_id)s for the unique id of the format (like Youtube\'s itags: "137"), '
'%(upload_date)s for the upload date (YYYYMMDD), '
'%(extractor)s for the provider (youtube, metacafe, etc), '
- '%(id)s for the video id, %(playlist)s for the playlist the video is in, '
- '%(playlist_index)s for the position in the playlist and %% for a literal percent. '
+ '%(id)s for the video id, '
+ '%(playlist_title)s, %(playlist_id)s, or %(playlist)s (=title if present, ID otherwise) for the playlist the video is in, '
+ '%(playlist_index)s for the position in the playlist. '
'%(height)s and %(width)s for the width and height of the video format. '
'%(resolution)s for a textual description of the resolution of the video format. '
+ '%% for a literal percent. '
'Use - to output to stdout. Can also be used to download to a different directory, '
'for example with -o \'/my/downloads/%(uploader)s/%(title)s-%(id)s.%(ext)s\' .'))
filesystem.add_option(