Add 'unique_res' option to '/api/manifest/dash/id'

This commit is contained in:
Omar Roth 2019-06-04 20:54:38 -05:00
parent 352e409a6e
commit d876fd7f5b
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2
2 changed files with 13 additions and 7 deletions

View file

@ -1235,11 +1235,11 @@ def process_video_params(query, preferences)
continue = query["continue"]?.try &.to_i?
continue_autoplay = query["continue_autoplay"]?.try &.to_i?
listen = query["listen"]? && (query["listen"] == "true" || query["listen"] == "1").to_unsafe
local = query["local"]? && (query["local"] == "true").to_unsafe
local = query["local"]? && (query["local"] == "true" || query["listen"] == "1").to_unsafe
preferred_captions = query["subtitles"]?.try &.split(",").map { |a| a.downcase }
quality = query["quality"]?
region = query["region"]?
related_videos = query["related_videos"]?
related_videos = query["related_videos"]? && (query["related_videos"] == "true" || query["related_videos"] == "1").to_unsafe
speed = query["speed"]?.try &.to_f?
video_loop = query["loop"]?.try &.to_i?
volume = query["volume"]?.try &.to_i?