mirror of
https://github.com/Shubhamsaboo/awesome-llm-apps.git
synced 2026-07-17 08:22:34 -05:00
[PR #377] [MERGED] The code was using the old youtube-transcript-api v0.6.3 syntax
#1311
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Shubhamsaboo/awesome-llm-apps/pull/377
Author: @Naimehossein77
Created: 11/10/2025
Status: ✅ Merged
Merged: 11/13/2025
Merged by: @Shubhamsaboo
Base:
main← Head:main📝 Commits (3)
595a08erefactor: Update YouTube transcript fetching logic and enhance error handling1fd7423refactor: Enhance session state management and add testing script for improvements3607ef2Delete .gitignore📊 Changes
4 files changed (+421 additions, -27 deletions)
View changed files
➖
.gitignore(+0 -1)➕
advanced_llm_apps/chat_with_X_tutorials/chat_with_youtube_videos/FIX_SUMMARY.md(+109 -0)📝
advanced_llm_apps/chat_with_X_tutorials/chat_with_youtube_videos/chat_youtube.py(+201 -26)➕
advanced_llm_apps/chat_with_X_tutorials/chat_with_youtube_videos/test_session_state.py(+111 -0)📄 Description
YouTube Transcript API Fix Summary
🔍 Issues Identified and Fixed
1. Primary Issue: Outdated API Usage
youtube-transcript-apiv0.6.3 syntax2. API Method Changes
Old API (v0.6.3):
New API (v1.2.3+):
3. Data Structure Changes
Old Format:
New Format:
✅ Fixes Applied
1. Updated
fetch_video_data()FunctionFetchedTranscriptandFetchedTranscriptSnippetobjects2. Enhanced Error Handling
3. Improved User Experience
4. Updated Dependencies
requirements.txtto useyoutube-transcript-api>=1.2.0🧪 Test Results
Working Videos (Confirmed):
https://www.youtube.com/watch?v=9bZkp7q19f0✅https://www.youtube.com/watch?v=UF8uR6Z6KLc✅Expected Failures (Confirmed behavior):
https://www.youtube.com/watch?v=rJZdPoXHtzi&t=716s❌📊 Success Metrics
🚀 How to Use the Fixed App
Start the app:
Use working test videos (provided in the app's examples section)
Enter OpenAI API key for chat functionality
Ask questions about the video content
💡 Key Improvements
🔧 Files Modified
chat_youtube.py: Main application with updated API usagerequirements.txt: Updated dependency versionstest_fixed_app.py: Comprehensive test suite (NEW)The app is now fully functional and provides an excellent user experience with clear feedback about what's working and what's not!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.