1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-01-07 13:47: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,
extra_info=extra)
try:
if self.params.get('date_ordered_playlist') and entry_result.get('upload_date') not in self.params.get('daterange'):
break
except TypeError:
pass
entry_result_uploaddate = entry_result.get('upload_date')
if self.params.get('date_ordered_playlist') and entry_result_uploaddate not in self.params.get('daterange'):
break
playlist_results.append(entry_result)