Merge pull request #2576 from SamantazFox/fix-locales-handling

Fix locales handling
This commit is contained in:
Samantaz Fox
2021-12-12 22:26:22 +01:00
committed by GitHub
29 changed files with 225 additions and 181 deletions

View File

@@ -1,7 +1,7 @@
module Invidious::Routes::VideoPlayback
# /videoplayback
def self.get_video_playback(env)
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
locale = env.get("preferences").as(Preferences).locale
query_params = env.params.query
fvip = query_params["fvip"]? || "3"