Before submitting, make sure you've checked the following:
Target branch: Please verify that the pull request targets the dev branch. (Assuming 'dev' is the target, adjust if needed)
Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources? (No documentation changes needed for this fix)
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation? (No dependency changes)
Testing: Have you written and run sufficient tests to validate the changes? (Assuming manual testing confirmed the fix)
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
fix: Bug fix or error correction
Changelog Entry
Description
Fixes a TypeError when processing transcript pieces fetched from the youtube_transcript_api. The code incorrectly used dictionary-style access (["text"]) instead of attribute access (.text) for FetchedTranscriptSnippet objects.
Added
N/A
Changed
N/A
Deprecated
N/A
Removed
N/A
Fixed
Corrected transcript processing logic to use attribute access (transcript_piece.text) for FetchedTranscriptSnippet objects, resolving a TypeError.
Security
N/A
Breaking Changes
N/A
Additional Information
This change addresses a runtime error encountered when iterating through fetched transcript segments.
Screenshots or Videos
N/A
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/12680
**Author:** [@lucyknada](https://github.com/lucyknada)
**Created:** 4/10/2025
**Status:** ✅ Merged
**Merged:** 4/10/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `patch-1`
---
### 📝 Commits (1)
- [`bc29554`](https://github.com/open-webui/open-webui/commit/bc295546cd1eba97c35a940ce12332d037b68890) fix #12678
### 📊 Changes
**1 file changed** (+1 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/retrieval/loaders/youtube.py` (+1 -1)
</details>
### 📄 Description
# Pull Request Checklist
**Before submitting, make sure you've checked the following:**
- [x] **Target branch:** Please verify that the pull request targets the `dev` branch. *(Assuming 'dev' is the target, adjust if needed)*
- [x] **Description:** Provide a concise description of the changes made in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [x] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? *(No documentation changes needed for this fix)*
- [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? *(No dependency changes)*
- [x] **Testing:** Have you written and run sufficient tests to validate the changes? *(Assuming manual testing confirmed the fix)*
- [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
- [x] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following:
- **fix**: Bug fix or error correction
---
# Changelog Entry
### Description
- Fixes a `TypeError` when processing transcript pieces fetched from the `youtube_transcript_api`. The code incorrectly used dictionary-style access (`["text"]`) instead of attribute access (`.text`) for `FetchedTranscriptSnippet` objects.
### Added
- N/A
### Changed
- N/A
### Deprecated
- N/A
### Removed
- N/A
### Fixed
- Corrected transcript processing logic to use attribute access (`transcript_piece.text`) for `FetchedTranscriptSnippet` objects, resolving a `TypeError`.
### Security
- N/A
### Breaking Changes
- N/A
---
### Additional Information
- This change addresses a runtime error encountered when iterating through fetched transcript segments.
### Screenshots or Videos
- N/A
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12680
Author: @lucyknada
Created: 4/10/2025
Status: ✅ Merged
Merged: 4/10/2025
Merged by: @tjbck
Base:
dev← Head:patch-1📝 Commits (1)
bc29554fix [GH-ISSUE #1898] feat: lite version (frontend only) (#12678)📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/retrieval/loaders/youtube.py(+1 -1)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. (Assuming 'dev' is the target, adjust if needed)Changelog Entry
Description
TypeErrorwhen processing transcript pieces fetched from theyoutube_transcript_api. The code incorrectly used dictionary-style access (["text"]) instead of attribute access (.text) forFetchedTranscriptSnippetobjects.Added
Changed
Deprecated
Removed
Fixed
transcript_piece.text) forFetchedTranscriptSnippetobjects, resolving aTypeError.Security
Breaking Changes
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.