lanbogao commited on
Commit
c7f5c74
1 Parent(s): 5fb0f66

Update fetchYoutubeSubtitle.py

Browse files
Files changed (1) hide show
  1. fetchYoutubeSubtitle.py +1 -1
fetchYoutubeSubtitle.py CHANGED
@@ -93,7 +93,7 @@ async def fetchYoutubeSubtitle(videoId: str) -> Dict:
93
  "http": proxy,
94
  "https": proxy,
95
  }
96
- response = session.get(url)
97
 
98
  loader = SRTLoader(await response.blob())
99
  splitter = TokenTextSplitter(
 
93
  "http": proxy,
94
  "https": proxy,
95
  }
96
+ response = session.get(subtitleUrl)
97
 
98
  loader = SRTLoader(await response.blob())
99
  splitter = TokenTextSplitter(