Fix youtube-transcript-api call structure and make test assertions environment-robust

- Instantiate YouTubeTranscriptApi class and call list() as required by v1.2.4
- Decorate async database fixture with pytest_asyncio.fixture
- Replace hardcoded base URL string assertion in test_summarizer.py with dynamized summarizer.BASE_URL value to support proxy profiles

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Gan, Jimmy
2026-06-04 10:38:50 +08:00
parent 7f4de7e8d2
commit 85fd40acf8
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ Transcript:
def download_transcript(video_id: str) -> str:
try:
transcript_list = YouTubeTranscriptApi.list_transcripts(video_id)
transcript_list = YouTubeTranscriptApi().list(video_id)
# Try to find manual transcripts in preferred languages
try: