Browse Source

Update youtube.py

Classic298 5 months ago
parent
commit
1dcbec71ec
1 changed files with 2 additions and 2 deletions
  1. 2 2
      backend/open_webui/retrieval/loaders/youtube.py

+ 2 - 2
backend/open_webui/retrieval/loaders/youtube.py

@@ -128,5 +128,5 @@ class YoutubeLoader:
     
         # If we get here, all languages failed
         languages_tried = ", ".join(self.language)
-        log.warning(f"No transcript found for any of the specified languages: {languages_tried}")
-        raise NoTranscriptFound(f"No transcript found for any supported language")
+        log.warning(f"No transcript found for any of the specified languages: {languages_tried}. Verify if the video has transcripts, add more languages if needed.")
+        raise NoTranscriptFound(f"No transcript found for any supported language. Verify if the video has transcripts, add more languages if needed.")