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:
parent
5d268cfe59
commit
900fd59355
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user