mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
fix: yt embed
This commit is contained in:
parent
7fc3ac38ac
commit
5f0d262c59
1 changed files with 2 additions and 3 deletions
|
|
@ -98,10 +98,9 @@ class YoutubeLoader:
|
||||||
else:
|
else:
|
||||||
youtube_proxies = None
|
youtube_proxies = None
|
||||||
|
|
||||||
|
transcript_api = YouTubeTranscriptApi(proxy_config=youtube_proxies)
|
||||||
try:
|
try:
|
||||||
transcript_list = YouTubeTranscriptApi.list_transcripts(
|
transcript_list = transcript_api.list(self.video_id)
|
||||||
self.video_id, proxies=youtube_proxies
|
|
||||||
)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.exception("Loading YouTube transcript failed")
|
log.exception("Loading YouTube transcript failed")
|
||||||
return []
|
return []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue