FoxxMD / multi-scrobbler

Scrobble plays from multiple sources to multiple clients
https://foxxmd.github.io/multi-scrobbler
MIT License
425 stars 18 forks source link

YTMusic isnt being picked up as a scrobbler #190

Closed FluffyClaws closed 2 months ago

FluffyClaws commented 2 months ago

Describe the bug YTMusic isnt being picked up as a scrobbler on container start. No errors, just not recognizing it as an option at all. youtube.json is accessible from inside the container.

To Reproduce

  1. Configure youtube.json in config folder
  2. Start container
  3. Check if YTMusic is being picked up
  4. See if it is or if its not.

Expected behavior Should be recognised if configured correctly.

Logs

Setting up multi-scrobbler config directory based on CONFIG_DIR env: /config
Directory is not empty, not creating examples.
chown'ing directory to ensure correct permissions.
Done!
-------------------------------------
[custom-init] No custom files found, skipping...
multi-scrobbler is starting!
[ls.io-init] done.
[2024-09-12 12:17:00.391 +0300] VERBOSE: [Init] Config Dir ENV: /config -> Resolved: /config
[2024-09-12 12:17:00.418 +0300] INFO   : [Init] Version: master-e80ad81
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
12:17:00 PM [vite-express] Running in production mode
12:17:00 PM [vite-express] Inline config detected, ignoring Vite config file
12:17:00 PM [vite-express] Serving static files from /app/dist
[2024-09-12 12:17:00.444 +0300] INFO   : [App] [API] Server started:
---> Local          http://localhost:9078
---> Network        http://172.26.0.2:9078
---> Network (IPv6) http://[::1]:9078

--- HINT ---
MS is likely being run in a container with BRIDGE networking which means the above addresses are not accessible from outside this container.
To ensure the container is accessible make sure you have mapped the *container* port 9078 to a *host* port. https://foxxmd.github.io/multi-scrobbler/docs/installation#networking
The container will then be accessible at http://HOST_MACHINE_IP:HOST_PORT (or https://192.168.0.3:9078/ since you defined this!)

--- HINT ---
[2024-09-12 12:17:00.446 +0300] INFO   : [App] [API] User-defined base URL for UI and redirect URLs (spotify, deezer, lastfm): https://192.168.0.3:9078/
[2024-09-12 12:17:00.462 +0300] DEBUG  : [App] [Scrobblers] Constructing maloja (unnamed-mlj) client...
[2024-09-12 12:17:00.467 +0300] INFO   : [App] [Scrobblers] [Maloja - unnamed-mlj] Client Added
[2024-09-12 12:17:00.468 +0300] INFO   : [App] Starting scrobble clients...
[2024-09-12 12:17:00.469 +0300] DEBUG  : [App] [Scrobblers] [Maloja - unnamed-mlj] Attempting to initialize...
[2024-09-12 12:17:00.470 +0300] VERBOSE: [App] [Scrobblers] [Maloja - unnamed-mlj] Building required data init succeeded
[2024-09-12 12:17:00.486 +0300] INFO   : [App] [Scrobblers] [Maloja - unnamed-mlj] Communication test succeeded.
[2024-09-12 12:17:00.487 +0300] INFO   : [App] [Scrobblers] [Maloja - unnamed-mlj] Maloja Server Version: 3.2.2
[2024-09-12 12:17:00.492 +0300] VERBOSE: [App] [Scrobblers] [Maloja - unnamed-mlj] Connection check succeeded
[2024-09-12 12:17:00.496 +0300] INFO   : [App] [Scrobblers] [Maloja - unnamed-mlj] Auth test passed!
[2024-09-12 12:17:00.496 +0300] INFO   : [App] [Scrobblers] [Maloja - unnamed-mlj] Fully Initialized!
[2024-09-12 12:17:00.497 +0300] VERBOSE: [App] [Scrobblers] [Maloja - unnamed-mlj] Fetching up to 100 initial scrobbles...
[2024-09-12 12:17:00.497 +0300] DEBUG  : [App] [Scrobblers] [Maloja - unnamed-mlj] Refreshing recent scrobbles
[2024-09-12 12:17:00.504 +0300] DEBUG  : [App] [Scrobblers] [Maloja - unnamed-mlj] Found 0 recent scrobbles
[2024-09-12 12:17:00.505 +0300] INFO   : [App] [Scrobblers] [Maloja - unnamed-mlj] Scrobble processing started
[2024-09-12 12:17:00.509 +0300] DEBUG  : [App] [Sources] (unnamed) Constructing spotify source
[2024-09-12 12:17:00.510 +0300] DEBUG  : [App] [Sources] [Spotify - unnamed] Attempting to initialize...
[2024-09-12 12:17:00.513 +0300] VERBOSE: [App] [Sources] [Spotify - unnamed] Building required data init succeeded
[2024-09-12 12:17:00.713 +0300] VERBOSE: [App] [Sources] [Spotify - unnamed] Connection check succeeded
[2024-09-12 12:17:00.842 +0300] INFO   : [App] [Sources] [Spotify - unnamed] Fully Initialized!
[2024-09-12 12:17:00.842 +0300] DEBUG  : [App] [Sources] (unnamed) Constructing subsonic source
[2024-09-12 12:17:00.843 +0300] DEBUG  : [App] [Sources] [Subsonic - unnamed] Attempting to initialize...
[2024-09-12 12:17:00.844 +0300] VERBOSE: [App] [Sources] [Subsonic - unnamed] Building required data init succeeded
[2024-09-12 12:17:00.850 +0300] INFO   : [App] [Sources] [Subsonic - unnamed] Subsonic Server reachable: navidrome | v1.16.1 | server v0.52.5 (c5560888)
[2024-09-12 12:17:00.851 +0300] VERBOSE: [App] [Sources] [Subsonic - unnamed] Connection check succeeded
[2024-09-12 12:17:00.855 +0300] INFO   : [App] [Sources] [Subsonic - unnamed] Subsonic API Status: ok
[2024-09-12 12:17:00.856 +0300] INFO   : [App] [Sources] [Subsonic - unnamed] Fully Initialized!```

Versions (please complete the following information): Provide version information for any related sources/clients.

Additional context

docker-compose.yml:

services:
    multi-scrobbler:
        image: foxxmd/multi-scrobbler:latest
        container_name: multi-scrobbler
        environment:
            - TZ=Europe/Kyiv
            - SPOTIFY_CLIENT_ID=x
            - SPOTIFY_CLIENT_SECRET=x
            - SPOTIFY_REDIRECT_URI=x    
            - BASE_URL=x
            - SUBSONIC_USER=x
            - SUBSONIC_PASSWORD=x
            - SUBSONIC_URL=x
            - MALOJA_URL=x
            - MALOJA_API_KEY=x
            - PUID=1000
            - PGID=1000
            - LOG_LEVEL=debug
        volumes:
            - "/DATA/AppData/multi-scrobbler/multi-scrobbler-config:/config"
        ports:
            - "9078:9078"
        restart: unless-stopped

youtube.json located at /config:

[
    {
      "name": "MyYTMusic",
      "enable": true,
      "clients": [],
      "data": {
        "cookie": "x",
        "authUser": "0"
      }
    }
  ]
FoxxMD commented 2 months ago

Oops, this a documentation typo! I see in the docs the file example shows youtube.json image but it should actually be ytmusic.json. I'll get that fixed.

FoxxMD commented 2 months ago

Docs are updated now.