fix: skip hard date filter for YouTube — keep evergreen content
The hard date filter in the main script was double-filtering YouTube results. youtube_yt.py already applies a soft date filter that prefers recent videos but keeps older ones when < 3 are within range (for evergreen topics like "youtube thumbnails"). The hard filter then removed all of them, resulting in 0 YouTube items. YouTube content has a longer shelf life than tweets/posts, so the soft filter's fallback behavior is correct. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -992,7 +992,10 @@ def main():
|
||||
# This is the safety net - even if prompts let old content through, this filters it
|
||||
filtered_reddit = normalize.filter_by_date_range(normalized_reddit, from_date, to_date)
|
||||
filtered_x = normalize.filter_by_date_range(normalized_x, from_date, to_date)
|
||||
filtered_youtube = normalize.filter_by_date_range(normalized_youtube, from_date, to_date) if normalized_youtube else []
|
||||
# YouTube: skip hard date filter — youtube_yt.py already applies a soft filter
|
||||
# that prefers recent videos but keeps older ones for evergreen topics.
|
||||
# YouTube content has a longer shelf life than tweets/posts.
|
||||
filtered_youtube = normalized_youtube
|
||||
filtered_web = normalize.filter_by_date_range(normalized_web, from_date, to_date) if normalized_web else []
|
||||
|
||||
# Score items
|
||||
|
||||
Reference in New Issue
Block a user