aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-11-16 06:27:43 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-11-16 06:57:07 +0530
commit6368e2e639bca7e66609911d2672b6a9dc65b052 (patch)
treead1f2fb77baf1213e245511f6edfc6072ab606c5 /yt_dlp/YoutubeDL.py
parenta4894d3e25943c4ecf4f38c0d50ce592d2175f29 (diff)
downloadhypervideo-pre-6368e2e639bca7e66609911d2672b6a9dc65b052.tar.lz
hypervideo-pre-6368e2e639bca7e66609911d2672b6a9dc65b052.tar.xz
hypervideo-pre-6368e2e639bca7e66609911d2672b6a9dc65b052.zip
[cleanup] Misc
Closes #5541
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 525d3ab6e..20940085e 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -1357,7 +1357,7 @@ class YoutubeDL:
return self.get_output_path(dir_type, filename)
def _match_entry(self, info_dict, incomplete=False, silent=False):
- """ Returns None if the file should be downloaded """
+ """Returns None if the file should be downloaded"""
_type = info_dict.get('_type', 'video')
assert incomplete or _type == 'video', 'Only video result can be considered complete'
@@ -1381,6 +1381,7 @@ class YoutubeDL:
if rejecttitle:
if re.search(rejecttitle, title, re.IGNORECASE):
return '"' + title + '" title matched reject pattern "' + rejecttitle + '"'
+
date = info_dict.get('upload_date')
if date is not None:
dateRange = self.params.get('daterange', DateRange())
@@ -2953,8 +2954,6 @@ class YoutubeDL:
if 'format' not in info_dict and 'ext' in info_dict:
info_dict['format'] = info_dict['ext']
- # This is mostly just for backward compatibility of process_info
- # As a side-effect, this allows for format-specific filters
if self._match_entry(info_dict) is not None:
info_dict['__write_download_archive'] = 'ignore'
return