diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-07-29 19:41:45 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-07-29 19:41:45 -0500 |
| commit | ff5d79e3ee1d295e97e589e39ca09bd0a880c99f (patch) | |
| tree | 46521d362d921386ebb0950a5447e43c94d38e0b /src/invidious.cr | |
| parent | 4ee3ec09df8a980239fb040d77731b4d52705d7a (diff) | |
| download | invidious-ff5d79e3ee1d295e97e589e39ca09bd0a880c99f.tar.gz invidious-ff5d79e3ee1d295e97e589e39ca09bd0a880c99f.tar.bz2 invidious-ff5d79e3ee1d295e97e589e39ca09bd0a880c99f.zip | |
Update video extractor0.19.1
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index b560fcb9..315363d7 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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 |
