projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72ca050
)
Fix default for variable-size autonumbering
author
Philipp Hagemeister
<phihag@phihag.de>
Thu, 11 Apr 2013 15:07:55 +0000
(17:07 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Thu, 11 Apr 2013 15:07:55 +0000
(17:07 +0200)
youtube_dl/FileDownloader.py
patch
|
blob
|
history
diff --git
a/youtube_dl/FileDownloader.py
b/youtube_dl/FileDownloader.py
index 7731db17f4daf65d16f60effb88f633014ecbe2a..d4f9cc621abfcc963911e4156eb0ea18c06055b3 100644
(file)
--- a/
youtube_dl/FileDownloader.py
+++ b/
youtube_dl/FileDownloader.py
@@
-388,7
+388,9
@@
class FileDownloader(object):
template_dict = dict(info_dict)
template_dict['epoch'] = int(time.time())
- autonumber_size = self.params.get('autonumber_size', 5)
+ autonumber_size = self.params.get('autonumber_size')
+ if autonumber_size is None:
+ autonumber_size = 5
autonumber_templ = u'%0' + str(autonumber_size) + u'd'
template_dict['autonumber'] = autonumber_templ % self._num_downloads