projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ad260c9
)
renamed for consistency
author
Gjorgji Jankovski
<j.gjorgji@gmail.com>
Sun, 24 Aug 2014 16:49:04 +0000
(18:49 +0200)
committer
Gjorgji Jankovski
<j.gjorgji@gmail.com>
Sun, 24 Aug 2014 16:49:04 +0000
(18:49 +0200)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 320793b022e6cbed6f79defae3719cae51823d84..5776423775392a09dc6376b48dca1ab04a5f5ceb 100755
(executable)
--- 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:
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'])
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 = {
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'],
'playlist': playlist,
'playlist_index': i + playliststart,
'extractor': ie_result['extractor'],