Skip to content

Tidal Resolver Issue #137

Open
Open
@LivingWithHippos

Description

@LivingWithHippos

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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions