Apply suggestions from code review

add videoId to resolve_url function

Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
ChunkyProgrammerandSamantaz Fox committed 2023-09-18 20:10:41 -04:00
1 parent f55b96a53b
commit bb04bcc42c
5 files changed
+16 -13

No files matched your search

+2 -2
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,
},
}