Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidal Resolver Issue #137

Open
LivingWithHippos opened this issue Oct 1, 2017 · 0 comments
Open

Tidal Resolver Issue #137

LivingWithHippos opened this issue Oct 1, 2017 · 0 comments

Comments

@LivingWithHippos
Copy link

I have Tomahawk 0.8.4, tried with both the nightly .axe and the old .js plugin, when I add my credentials I get

12:13:09 [0]: JAVASCRIPT: "/home/user/.local/share/Tomahawk/manualresolvers/tidal/content/contents/code/tidal.js:1" "TypeError: 'undefined' is not a function (evaluating 'Tomahawk.resolver.instance.saveUserConfig()')" "undefined"

and If I restart Tomahawk

12:08:50 [1]: Hooking up resolver: "/home/user/.local/share/Tomahawk/manualresolvers/tidal/content/contents/code/tidal.js" true 
12:08:50 [0]: JSResolver::JSResolver(const QString&, const QString&, const QStringList&) Loading JS resolver: "/home/user/.local/share/Tomahawk/manualresolvers/tidal/content/contents/code/tidal.js" 
12:08:50 [0]: JAVASCRIPT: "/home/user/.local/share/Tomahawk/manualresolvers/tidal/content/contents/code/tidal.js:103" "TypeError: 'undefined' is not a function (evaluating 'this.getUserConfig()')" "undefined" 
12:08:50 [0]: JAVASCRIPT: "/home/user/.local/share/Tomahawk/manualresolvers/tidal/content/contents/code/tidal.js:1" "TypeError: 'undefined' is not a function (evaluating 'Tomahawk.resolver.instance.getUserConfig()')" "undefined" 
12:08:50 [0]: static Tomahawk::ExternalResolver* JSResolver::factory(const QString&, const QString&, const QStringList&) "/home/user/.local/share/Tomahawk/manualresolvers/tidal/content/contents/code/tidal.js" Loaded. 

line 103 is in the init function

    init: function () {
        var config = this.getUserConfig();
        log(this);

        this._email = config.email;
        this._password = config.password;
        this._quality = config.quality;

        if (!this._email || !this._password) {
            Tomahawk.PluginManager.unregisterPlugin("linkParser", this);
            //This is being called even for disabled ones
            //throw new Error( "Invalid configuration." );
            Tomahawk.log("Invalid Configuration");
            return;
        }

        Tomahawk.PluginManager.registerPlugin("linkParser", this);

        this._login(config);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant