Commit Graph

16 Commits

Author SHA1 Message Date
syeopite
f317e6620a Fix extraction of transcript headings
Innertube structure was changed
2025-05-10 20:04:07 -07:00
syeopite
3d77635a5c Add API endpoint for fetching transcripts from YouTube (#4788) 2025-02-26 13:56:39 -08:00
syeopite
ecbea0b67b Ameba: Fix Lint/ShadowingOuterLocalVar 2024-08-21 02:43:26 -07:00
syeopite
7693f61e44 Add API endpoint to fetch YouTube transcripts 2024-07-11 09:37:17 -07:00
syeopite
f466116cd7 Extract label for transcript in YouTube response 2024-06-13 09:07:20 -07:00
syeopite
5b519123a7 Raise error when transcript does not exist 2024-06-11 18:46:34 -07:00
syeopite
0224162ad2 Rewrite transcript logic to be more generic
The transcript logic in Invidious was written specifically
as a workaround for captions, and not transcripts as a feature.

This commit genericises the logic a bit as so it can be used for
implementing transcripts within Invidious' API and UI as well.

The most notable change is the added parsing of section headings
when it was previously skipped over in favor of regular lines.
2024-06-11 18:23:01 -07:00
syeopite
be2feba17c Lint 2023-09-23 09:57:26 -04:00
syeopite
d371eb50f2 WebVTT::Builder: rename #line to #cue 2023-09-23 09:41:41 -04:00
syeopite
0cb7d0b441 Refactor Invidious's VTT logic to use WebVtt.build 2023-09-23 09:40:04 -04:00
syeopite
7d435f082b Update src/invidious/videos/transcript.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2023-08-24 23:20:20 +00:00
syeopite
1f7592e599 Refactor structure of caption.cr
Rename CaptionsMetadata to Metadata
Nest Metadata under Captions
Unnest LANGUAGES constant from Metadata to main Captions module
2023-08-24 16:00:02 -07:00
syeopite
e4942b188f Integrate transcript captions into captions API 2023-07-23 14:40:09 -07:00
syeopite
caac7e2166 Add method to convert transcripts response to vtt 2023-07-23 14:40:08 -07:00
syeopite
4b3ac1a757 Add method to parse transcript JSON into structs 2023-07-23 14:40:08 -07:00
syeopite
8e18d445a7 Add method to generate params for transcripts api 2023-07-23 14:40:08 -07:00