From 6faf90a785bf7bf66ca672c027f3b8063928b9df Mon Sep 17 00:00:00 2001 From: Ross Patterson Date: Fri, 22 Aug 2025 17:06:45 -0700 Subject: [PATCH] docs(faq): Clarify date_range inclusivity From [PR followup](https://github.com/jmbannon/ytdl-sub/pull/1298#issuecomment-3214598919). --- docs/source/config_reference/plugins.rst | 4 ++-- src/ytdl_sub/plugins/date_range.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/config_reference/plugins.rst b/docs/source/config_reference/plugins.rst index 633de41b..97c88886 100644 --- a/docs/source/config_reference/plugins.rst +++ b/docs/source/config_reference/plugins.rst @@ -167,14 +167,14 @@ intended download files. :expected type: Optional[OverridesFormatter] :description: - Only download videos after this datetime. + Only download videos after or on this datetime, inclusive. ``before`` :expected type: Optional[OverridesFormatter] :description: - Only download videos before this datetime. + Only download videos only before this datetime, not inclusive. ``breaks`` diff --git a/src/ytdl_sub/plugins/date_range.py b/src/ytdl_sub/plugins/date_range.py index b7bf6dd0..478cf938 100644 --- a/src/ytdl_sub/plugins/date_range.py +++ b/src/ytdl_sub/plugins/date_range.py @@ -58,7 +58,7 @@ class DateRangeOptions(ToggleableOptionsDictValidator): """ :expected type: Optional[OverridesFormatter] :description: - Only download videos before this datetime. + Only download videos only before this datetime, not inclusive. """ return self._before @@ -67,7 +67,7 @@ class DateRangeOptions(ToggleableOptionsDictValidator): """ :expected type: Optional[OverridesFormatter] :description: - Only download videos after this datetime. + Only download videos after or on this datetime, inclusive. """ return self._after