Refactor structure of caption.cr

Rename CaptionsMetadata to Metadata
Nest Metadata under Captions
Unnest LANGUAGES constant from Metadata to main Captions module
This commit is contained in:
syeopite
2023-08-24 16:00:02 -07:00
parent 3509752b79
commit 1f7592e599
5 changed files with 90 additions and 88 deletions

View File

@@ -7,7 +7,7 @@ module Invidious::Frontend::WatchPage
getter full_videos : Array(Hash(String, JSON::Any))
getter video_streams : Array(Hash(String, JSON::Any))
getter audio_streams : Array(Hash(String, JSON::Any))
getter captions : Array(Invidious::Videos::CaptionMetadata)
getter captions : Array(Invidious::Videos::Captions::Metadata)
def initialize(
@full_videos,