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

WebScrobbler - Documentation Issue #111

Closed
undaunt opened this issue Nov 30, 2023 · 4 comments
Closed

WebScrobbler - Documentation Issue #111

undaunt opened this issue Nov 30, 2023 · 4 comments

Comments

@undaunt
Copy link

undaunt commented Nov 30, 2023

Describe the bug
When attempting to follow the webscrobbler documentation I was receiving no-configured sources and/or syntax errors.

To Reproduce
Steps to reproduce the behavior:

  1. Create a configuration based, single user config from here
  2. Attempt to start the app
  3. Receive warnings about no configured source when playing.
  4. Reconfigure based on the multi-user documentation with slugs.
  5. Receive schema warnings and app does not fully load.

Expected behavior
The app should launch and not have schema errors, and receive webhooks from a valid source.

Versions (please complete the following information):

  • multi-scrobbler: 0.6.1 on docker

Additional context
This appears to be resolved by updating the config to:

  1. Not nesting the slug under data as shown in the multi-user example.
  2. Including the type of webscrobbler (not noted in the docs, I saw it in the commit code

Here is my working config:

    {
      "type": "webscrobbler",
      "name": "WebScrobble",
      "slug": null,
      "clients": [],
      "data": {
        "whitelist": [],
        "blacklist": []
      }
    },
@TheFeelTrain
Copy link

TheFeelTrain commented Dec 2, 2023

In addition to this the environment variables like WS_ENABLE don't do anything. If you search for any of them in the code, the only references made to them is in the documentation. So as far as I can tell they never actually get used. The entire WebScrobbler section needs updating.

Edit: Actually right after I commented I decided to dig a little deeper and the variables are there but it's WEBSCROBBLER_ENABLE instead of WS_ENABLE so the documentation is just wrong.

@FoxxMD
Copy link
Owner

FoxxMD commented Dec 4, 2023

You are correct in that there was a discrepancy between what was shown in webscrobbler.json and in the multi-user config, but either one should have worked without issue. slug should be in data but it is an optional property and should not cause schema warnings. I was not able to reproduce your issue when using MS setup with config/webscrobbler.json

Were you using the example data found in webscrobbler.json but in sources in the all-in-one config (config.json)? This is the only area where type is required. If you were using webscrobbler.json directly in your config directory it is not necessary to include type.

MS with All-in-one config

/config
  --> config.json

# config.json
...
  "sources": [
    {
      "name": "MyWebScrobbler",
      "type": "webscrobbler", // <-- type is required
      "data": {
        "slug": null,
        "whitelist": [],
        "blacklist": []
      }
    }
  ],
...

MS with Specific file configuration

/config
  --> webscrobbler.json

# webscrobbler.json
[
  {
    "name": "MyWebScrobbler",
   // No type required because MS recognizes the file as specific for webscrobbler
    "data": {
      "slug": null,
      "whitelist": [],
      "blacklist": []
    }
  }
]

@FoxxMD
Copy link
Owner

FoxxMD commented Dec 4, 2023

@TheFeelTrain thanks for catching the ENV discrepancy. It has been updated to match what it is found documentation and available now on the develop branch/image

@FoxxMD
Copy link
Owner

FoxxMD commented Jan 10, 2024

Fixed in 0.6.3

@FoxxMD FoxxMD closed this as completed Jan 10, 2024
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

3 participants