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

Bug - Youtube Unplayable #1229

Open
1 of 3 tasks
NathanGilbert2 opened this issue Feb 20, 2025 · 1 comment
Open
1 of 3 tasks

Bug - Youtube Unplayable #1229

NathanGilbert2 opened this issue Feb 20, 2025 · 1 comment
Labels

Comments

@NathanGilbert2
Copy link

What's happening?
Unable to play youtube videos/playlist

Logs

WARNING: @distube/ytdl-core is out of date! Update with "npm install @distube/ytdl-core@latest".

WARNING: Could not parse n transform function.

Please report this issue with the "1740014732832-base.js" file on https://github.com/distubejs/ytdl-core/issues.

Runtime
I'm running Muse:

  • Directly from the cloned repository
  • Inside a Docker container
  • Something else (please elaborate)

Versions

  • Muse: Running version 2.9.3 built on 8/19/2024
  • Docker (if applicable): ghcr.io/museofficial/muse:latest
  • OS: Synology NAS
@NathanGilbert2
Copy link
Author

Got it to work after adding the following entrypoint to my docker-compose:

version: '3.4'

services:
  muse:
    image: ghcr.io/museofficial/muse:latest
    restart: always
    container_name: xxxx
    environment:
      - DISCORD_TOKEN=xxxx
      - YOUTUBE_API_KEY=xxxx
      - SPOTIFY_CLIENT_ID=xxxx
      - SPOTIFY_CLIENT_SECRET=xxxx
    volumes:
      - type: volume
        source: muse
        target: /data
        read_only: false
    entrypoint: >
      /bin/sh -c "npm install @distube/ytdl-core@latest && exec tini -- node --enable-source-maps dist/scripts/migrate-and-start.js"
volumes:
  muse:

Workaround inspired by this other open issue plus the current entrypoint cmd found in the dockerfile:

CMD ["tini", "--", "node", "--enable-source-maps", "dist/scripts/migrate-and-start.js"]

Or just: docker run -it -v "$(pwd)/data":/data -e DISCORD_TOKEN='MTE3OTkyMzI4MzE2NTA1Mjk2OQ.Gn8rZo.uxfTq4JniCx6ge3bj99SM3ayN4oDbHlXplJCus' -e SPOTIFY_CLIENT_ID='' -e SPOTIFY_CLIENT_SECRET='' -e YOUTUBE_API_KEY='AIzaSyAUooiQojkMZcWVkWj4HWr-7Ujaqg6lHQs' --entrypoint sh ghcr.io/museofficial/muse:latest -c "npm install @distube/ytdl-core@latest && node dist/scripts/migrate-and-start.js"

Originally posted by @aaddyy227 in #1163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant