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)