From 7a96dfe8aa9f865e5c85df1cbb852af65c3fb5a1 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Mon, 19 Sep 2022 21:12:10 +0200 Subject: [PATCH] Split getNFunction into two functions --- decipher.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/decipher.go b/decipher.go index 99897144..b6b331c7 100644 --- a/decipher.go +++ b/decipher.go @@ -161,6 +161,11 @@ func (config playerConfig) getNFunction() (string, error) { name = string(nameResult[1]) } + return config.extraFunction(name) + +} + +func (config playerConfig) extraFunction(name string) (string, error) { // find the beginning of the function def := []byte(name + "=function(") start := bytes.Index(config, def)