Commit Graph

8 Commits

Author SHA1 Message Date
jt404
8125ddca06 Replace inline styling for download widget with css file 2023-10-12 03:22:34 +02: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
7e5935a9da Rename Caption struct to CaptionMetadata
The Caption object does not actually store any text lines for the
subtitles. Instead it stores the metadata needed to display and fetch
the actual captions from the YT timedtext API.

Therefore it may be wiser to rename the struct to be more reflective of
its current usage as well as the future usage once the current caption
retrival system is replaced via InnerTube's transcript API
2023-07-23 14:40:08 -07:00
Jarek Baran
0fe1b1ec19 download_widget: Add missing translation key 2023-03-30 12:52:03 +02:00
Samantaz Fox
cd03fa06ae videos: move 'Caption' and associated global/functions to a separate file 2022-10-31 20:09:04 +01:00
Samantaz Fox
88141c459c videos: move formats structure to a separate file/module 2022-10-31 20:09:04 +01:00
Samantaz Fox
2f335b3d2c Use a dedicated endpoind for downloads
This allows us to not pass file name ("title") in the form
data and to enforce some sanity checks
2022-02-23 13:00:30 +01:00
Samantaz Fox
fe057c7873 Make a function that builds the download widget's HTML 2022-02-22 17:42:41 +01:00