Apply suggestions from code review

add videoId to resolve_url function

Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
ChunkyProgrammer
2023-08-29 19:10:01 -07:00
parent f55b96a53b
commit bb04bcc42c
5 changed files with 16 additions and 13 deletions

View File

@@ -37,14 +37,14 @@ module Invidious::Comments
},
}
objectParsed = object.try { |i| Protodec::Any.cast_json(i) }
object_parsed = object.try { |i| Protodec::Any.cast_json(i) }
.try { |i| Protodec::Any.from_json(i) }
.try { |i| Base64.urlsafe_encode(i) }
object2 = {
"80226972:embedded" => {
"2:string" => ucid,
"3:string" => objectParsed,
"3:string" => object_parsed,
},
}