mirror of
https://github.com/iv-org/invidious.git
synced 2024-06-07 19:40:52 +00:00
remove unused variable
simplify resolve url remove trailing spaces Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
bb04bcc42c
commit
4f25069f55
@ -131,7 +131,7 @@ function get_youtube_replies(target, load_more, load_replies) {
|
|||||||
'&hl=' + video_data.preferences.locale +
|
'&hl=' + video_data.preferences.locale +
|
||||||
'&thin_mode=' + video_data.preferences.thin_mode +
|
'&thin_mode=' + video_data.preferences.thin_mode +
|
||||||
'&continuation=' + continuation;
|
'&continuation=' + continuation;
|
||||||
|
|
||||||
if (video_data.ucid) {
|
if (video_data.ucid) {
|
||||||
url += '&ucid=' + video_data.ucid
|
url += '&ucid=' + video_data.ucid
|
||||||
}
|
}
|
||||||
|
@ -373,7 +373,6 @@ module Invidious::Routes::API::V1::Channels
|
|||||||
|
|
||||||
def self.post_comments(env)
|
def self.post_comments(env)
|
||||||
locale = env.get("preferences").as(Preferences).locale
|
locale = env.get("preferences").as(Preferences).locale
|
||||||
region = env.params.query["region"]?
|
|
||||||
|
|
||||||
env.response.content_type = "application/json"
|
env.response.content_type = "application/json"
|
||||||
|
|
||||||
|
@ -173,8 +173,8 @@ module Invidious::Routes::API::V1::Misc
|
|||||||
end
|
end
|
||||||
JSON.build do |json|
|
JSON.build do |json|
|
||||||
json.object do
|
json.object do
|
||||||
json.field "ucid", sub_endpoint["browseId"].try &.as_s if sub_endpoint["browseId"]?
|
json.field "ucid", sub_endpoint["browseId"].as_s if sub_endpoint["browseId"]?
|
||||||
json.field "videoId", sub_endpoint["videoId"].try &.as_s if sub_endpoint["videoId"]?
|
json.field "videoId", sub_endpoint["videoId"].as_s if sub_endpoint["videoId"]?
|
||||||
json.field "params", params.try &.as_s
|
json.field "params", params.try &.as_s
|
||||||
json.field "pageType", pageType
|
json.field "pageType", pageType
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user