Use short URL for sharing videos

This commit is contained in:
Omar Roth
2019-06-05 11:10:23 -05:00
parent 8ba45808be
commit 8521f04087
2 changed files with 3 additions and 2 deletions

View File

@@ -1240,7 +1240,7 @@ def process_video_params(query, preferences)
quality = query["quality"]?
region = query["region"]?
related_videos = query["related_videos"]? && (query["related_videos"] == "true" || query["related_videos"] == "1").to_unsafe
speed = query["speed"]?.try &.to_f?
speed = query["speed"]?.try &.rchop("x").to_f?
video_loop = query["loop"]?.try &.to_i?
volume = query["volume"]?.try &.to_i?