Skip to content

Feat/add title metadata#595

Open
kaya70875 wants to merge 7 commits into
jdepoix:masterfrom
kaya70875:feat/add-title-metadata
Open

Feat/add title metadata#595
kaya70875 wants to merge 7 commits into
jdepoix:masterfrom
kaya70875:feat/add-title-metadata

Conversation

@kaya70875
Copy link
Copy Markdown
Contributor

Closes #307

Adds title as a field on both Transcript and FetchedTranscript,
extracted from the videoDetails block of the existing innertube
response — no additional HTTP requests.

Changes:

  • FetchedTranscript and Transcript both expose a title: str field
  • TranscriptListFetcher._fetch_video_data (renamed from _fetch_captions_json)
    returns (captions_json, title)
  • title is preserved through Transcript.translate()
  • Tests updated accordingly

@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 25570634403

Coverage remained the same at 100.0%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 512
Covered Lines: 512
Line Coverage: 100.0%
Coverage Strength: 7.0 hits per line

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding the title of the video in the metadata

2 participants