1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-01-08 14:17:54 +01:00

got rid of try-except

This commit is contained in:
Mark 2017-03-26 14:34:11 -04:00
parent 5d268cfe59
commit 900fd59355

View File

@ -951,11 +951,9 @@ class YoutubeDL(object):
download=download, download=download,
extra_info=extra) extra_info=extra)
try: entry_result_uploaddate = entry_result.get('upload_date')
if self.params.get('date_ordered_playlist') and entry_result.get('upload_date') not in self.params.get('daterange'): if self.params.get('date_ordered_playlist') and entry_result_uploaddate not in self.params.get('daterange'):
break break
except TypeError:
pass
playlist_results.append(entry_result) playlist_results.append(entry_result)