feat: add YouTube video and playlist support in document collection with enhanced URL handling

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-03-09 16:07:54 -07:00
parent e481415655
commit c6fc4edbc2
10 changed files with 445 additions and 100 deletions

View file

@ -433,15 +433,17 @@
},
"add_youtube": {
"title": "Add YouTube Videos",
"subtitle": "Enter YouTube video URLs to add to your document collection",
"label": "Enter YouTube Video URLs",
"placeholder": "Enter a YouTube URL and press Enter",
"hint": "Add multiple YouTube URLs by pressing Enter after each one",
"subtitle": "Add YouTube videos or playlists to your knowledge base",
"label": "YouTube Video or Playlist URLs",
"placeholder": "Paste YouTube video or playlist URLs here",
"hint": "Just paste YouTube URLs and they're added automatically. You can also type a URL and press Enter.",
"tips_title": "Tips for adding YouTube videos:",
"tip_1": "Use standard YouTube URLs (youtube.com/watch?v= or youtu.be/)",
"tip_2": "Make sure videos are publicly accessible",
"tip_3": "Supported formats: youtube.com/watch?v=VIDEO_ID or youtu.be/VIDEO_ID",
"tip_4": "Processing may take some time depending on video length",
"tip_5": "Paste a playlist URL (youtube.com/playlist?list=...) to add all its videos at once",
"chat_tip": "Want a quick summary without saving to your knowledge base? Just paste YouTube links directly into the chat instead.",
"preview": "Preview",
"cancel": "Cancel",
"submit": "Add",
@ -456,9 +458,15 @@
"error_toast_desc": "Error processing YouTube videos",
"error_generic": "An error occurred while processing YouTube videos",
"invalid_url_toast": "Invalid YouTube URL",
"invalid_url_toast_desc": "Please enter a valid YouTube video URL",
"invalid_url_toast_desc": "Please enter a valid YouTube video or playlist URL",
"duplicate_url_toast": "Duplicate URL",
"duplicate_url_toast_desc": "This YouTube video has already been added"
"duplicate_url_toast_desc": "This YouTube video has already been added",
"resolving_playlist": "Resolving playlist videos...",
"resolving_playlist_toast": "Resolving Playlist",
"resolving_playlist_toast_desc": "Fetching video list from the playlist...",
"playlist_resolved_toast": "Playlist Resolved",
"playlist_resolved_toast_desc": "Added {count} videos from the playlist",
"playlist_error_toast": "Playlist Error"
},
"settings": {
"title": "Settings",