feat: category / hashtag pages

- with links form stream info
closes #12
This commit is contained in:
2025-05-15 14:12:37 +01:00
parent 54a61322cf
commit 52953a4c16
16 changed files with 483 additions and 26 deletions

View File

@ -25,6 +25,11 @@ class StreamGrid extends StatelessWidget {
events
.map((e) => StreamEvent(e))
.where((e) => e.info.stream?.contains(".m3u8") ?? false)
.where(
(e) =>
(e.info.starts ?? e.event.createdAt) <=
(DateTime.now().millisecondsSinceEpoch / 1000),
)
.sortedBy((a) => a.info.starts ?? a.event.createdAt)
.reversed;
final live = streams.where((s) => s.info.status == StreamStatus.live);