Skip to content

feat: add optional timestamp range filter to search and RSS feed - #410

Open
CatNoir2006 wants to merge 2 commits into
mediathekview:masterfrom
CatNoir2006:feat/timestamp-range-filter
Open

feat: add optional timestamp range filter to search and RSS feed#410
CatNoir2006 wants to merge 2 commits into
mediathekview:masterfrom
CatNoir2006:feat/timestamp-range-filter

Conversation

@CatNoir2006

@CatNoir2006 CatNoir2006 commented Aug 5, 2026

Copy link
Copy Markdown

feat: add optional timestamp range filter to search and RSS feed
Implements #161
image

Adds support for an explicit epoch_second-based timestamp range in both
the JSON API (POST/GET /api/query) and the RSS feed.

- SearchEngine: new range filter on 'timestamp' using gte/lte when
  timestamp_from or timestamp_to is provided in the query.
- If an explicit range is set, the 'future: false' filter is skipped so
  the two filters do not collide on the same field.
- RSSFeedGenerator: parses timestamp_from / timestamp_to from the URL
  query string and forwards them to the SearchEngine.
Adds two date inputs ('Von' / 'Bis') to the search bar that wire
through to the new server-side timestamp range filter from the
previous commit.

- store.svelte.ts: new timestampFrom/timestampTo state, included in
  the request body, URL hash and trackSearch payload; getter/setter
  reset the page on change like the existing future toggle.
- SearchBar.svelte: two date inputs between the 'Zukünftige' toggle
  and the sort dropdown; epoch_second conversion done inline on
  onchange. Styled consistently with the search input (h-10, dark
  mode aware, color-scheme for native picker).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant