From c69e50d3bb0268a86232e4ebbbe5e2d6db1b3460 Mon Sep 17 00:00:00 2001 From: Gigi Date: Sat, 25 Oct 2025 00:30:07 +0200 Subject: [PATCH] feat: add note content support for direct video URLs - Add noteContent prop to VideoView component for displaying note text - Update VideoView to prioritize note content over metadata when available - Detect direct video URLs from Nostr notes (nostr.build, nostr.video domains) - Pass bookmark information through URL selection in bookmark components - Show placeholder message for direct videos from Nostr notes - Maintains backward compatibility with existing video metadata extraction --- src/components/BookmarkItem.tsx | 2 +- src/components/BookmarkViews/CardView.tsx | 2 +- src/components/BookmarkViews/CompactView.tsx | 2 +- src/components/ThreePaneLayout.tsx | 7 +++++++ src/components/VideoView.tsx | 7 +++++-- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/components/BookmarkItem.tsx b/src/components/BookmarkItem.tsx index e90baf8a..0f862770 100644 --- a/src/components/BookmarkItem.tsx +++ b/src/components/BookmarkItem.tsx @@ -129,7 +129,7 @@ export const BookmarkItem: React.FC = ({ bookmark, index, onS if (!hasUrls) return const firstUrl = extractedUrls[0] if (onSelectUrl) { - onSelectUrl(firstUrl) + onSelectUrl(firstUrl, bookmark) } else { window.open(firstUrl, '_blank') } diff --git a/src/components/BookmarkViews/CardView.tsx b/src/components/BookmarkViews/CardView.tsx index 23412586..b2414d0d 100644 --- a/src/components/BookmarkViews/CardView.tsx +++ b/src/components/BookmarkViews/CardView.tsx @@ -145,7 +145,7 @@ export const CardView: React.FC = ({