mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix content-type for captions
This commit is contained in:
parent
1eaa377583
commit
8b50c8515f
2 changed files with 17 additions and 9 deletions
|
@ -825,17 +825,17 @@ struct Video
|
|||
end
|
||||
|
||||
struct Caption
|
||||
JSON.mapping(
|
||||
name: CaptionName,
|
||||
baseUrl: String,
|
||||
languageCode: String
|
||||
)
|
||||
json_mapping({
|
||||
name: CaptionName,
|
||||
baseUrl: String,
|
||||
languageCode: String,
|
||||
})
|
||||
end
|
||||
|
||||
struct CaptionName
|
||||
JSON.mapping(
|
||||
json_mapping({
|
||||
simpleText: String,
|
||||
)
|
||||
})
|
||||
end
|
||||
|
||||
class VideoRedirect < Exception
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue