mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-13 08:08:31 +00:00
YoutubeAPI: next: user merge() instead of merge!()
This commit is contained in:
parent
8ac6063776
commit
68d69df6d3
@ -253,11 +253,11 @@ module YoutubeAPI
|
||||
# :ditto:
|
||||
def next(data : Hash, *, client_config : ClientConfig | Nil = nil)
|
||||
# JSON Request data, required by the API
|
||||
data.merge!({
|
||||
data2 = data.merge({
|
||||
"context" => self.make_context(client_config),
|
||||
})
|
||||
|
||||
return self._post_json("/youtubei/v1/next", data, client_config)
|
||||
return self._post_json("/youtubei/v1/next", data2, client_config)
|
||||
end
|
||||
|
||||
# Allow a NamedTuple to be passed, too.
|
||||
|
Loading…
Reference in New Issue
Block a user