Removed useless typecast
This commit is contained in:
parent
c810f20e96
commit
dcacbefc5a
@ -583,7 +583,7 @@ class YoutubeDL(object):
|
|||||||
autonumber_templ = '%0' + str(autonumber_size) + 'd'
|
autonumber_templ = '%0' + str(autonumber_size) + 'd'
|
||||||
template_dict['autonumber'] = autonumber_templ % self._num_downloads
|
template_dict['autonumber'] = autonumber_templ % self._num_downloads
|
||||||
if template_dict.get('playlist_index') is not None:
|
if template_dict.get('playlist_index') is not None:
|
||||||
template_dict['playlist_index'] = '%0*d' % (len(str(template_dict['n_entries'])), (int(template_dict['playlist_index']) + int(self.params.get('playlist_index_offset'))))
|
template_dict['playlist_index'] = '%0*d' % (len(str(template_dict['n_entries'])), (template_dict['playlist_index'] + int(self.params.get('playlist_index_offset'))))
|
||||||
if template_dict.get('resolution') is None:
|
if template_dict.get('resolution') is None:
|
||||||
if template_dict.get('width') and template_dict.get('height'):
|
if template_dict.get('width') and template_dict.get('height'):
|
||||||
template_dict['resolution'] = '%dx%d' % (template_dict['width'], template_dict['height'])
|
template_dict['resolution'] = '%dx%d' % (template_dict['width'], template_dict['height'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user