mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Update video extractor
This commit is contained in:
parent
4ee3ec09df
commit
ff5d79e3ee
4 changed files with 30 additions and 15 deletions
|
@ -3649,7 +3649,7 @@ get "/api/v1/top" do |env|
|
|||
generate_thumbnails(json, video.id, config, Kemal.config)
|
||||
end
|
||||
|
||||
json.field "lengthSeconds", video.info["length_seconds"].to_i
|
||||
json.field "lengthSeconds", video.length_seconds
|
||||
json.field "viewCount", video.views
|
||||
|
||||
json.field "author", video.author
|
||||
|
@ -4494,7 +4494,7 @@ get "/api/manifest/dash/id/:id" do |env|
|
|||
XML.build(indent: " ", encoding: "UTF-8") do |xml|
|
||||
xml.element("MPD", "xmlns": "urn:mpeg:dash:schema:mpd:2011",
|
||||
"profiles": "urn:mpeg:dash:profile:full:2011", minBufferTime: "PT1.5S", type: "static",
|
||||
mediaPresentationDuration: "PT#{video.info["length_seconds"]}S") do
|
||||
mediaPresentationDuration: "PT#{video.length_seconds}S") do
|
||||
xml.element("Period") do
|
||||
i = 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue