mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-17 02:18:51 +00:00
Apply suggestions from code review
add videoId to resolve_url function Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user