summary refs log tree commit diff
diff options
context:
space:
mode:
authorGjorgji Jankovski <j.gjorgji@gmail.com>2014-08-24 18:49:04 +0200
committerGjorgji Jankovski <j.gjorgji@gmail.com>2014-08-24 18:49:04 +0200
commitc6b4132a0ad568b8383dfb64689b7d45182f275a (patch)
treec2f363bab3522a21575b59a5d873e5b538406aed
parentad260c90abc6361051d7ae8f9226260f82d63c53 (diff)
downloadyoutube-dl-c6b4132a0ad568b8383dfb64689b7d45182f275a.tar.gz
youtube-dl-c6b4132a0ad568b8383dfb64689b7d45182f275a.tar.xz
youtube-dl-c6b4132a0ad568b8383dfb64689b7d45182f275a.zip
renamed for consistency
-rwxr-xr-xyoutube_dl/YoutubeDL.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 320793b02..577642377 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -424,7 +424,7 @@ class YoutubeDL(object):
             autonumber_templ = '%0' + str(autonumber_size) + 'd'
             template_dict['autonumber'] = autonumber_templ % self._num_downloads
             if template_dict.get('playlist_index') is not None:
-                template_dict['playlist_index'] = '%0*d' % (len(str(template_dict['n_playlist'])), template_dict['playlist_index'])
+                template_dict['playlist_index'] = '%0*d' % (len(str(template_dict['n_entries'])), template_dict['playlist_index'])
             if template_dict.get('resolution') is None:
                 if template_dict.get('width') and template_dict.get('height'):
                     template_dict['resolution'] = '%dx%d' % (template_dict['width'], template_dict['height'])
@@ -636,7 +636,7 @@ class YoutubeDL(object):
             for i, entry in enumerate(entries, 1):
                 self.to_screen('[download] Downloading video #%s of %s' % (i, n_entries))
                 extra = {
-                    'n_playlist': n_entries,
+                    'n_entries': n_entries,
                     'playlist': playlist,
                     'playlist_index': i + playliststart,
                     'extractor': ie_result['extractor'],