Pigpog / vlc-discord-rpc

Discord rich presence for VLC media player.
MIT License
207 stars 31 forks source link

Pathchange dosent work #54

Closed TureBentzin closed 3 years ago

TureBentzin commented 3 years ago

Describe the bug Hey, I have VLC installed to a "wierd spot" and also set this spot in config.js but it still shows the error.. Does the script show an error? - Yes Does Discord display that you are "Playing VLC Media Player"? -> No

Terminal output

Starting script...

> vlc-discord-rpc@2.2.12 start D:\Data\Downloads\vlc-discord-rpc-win\vlc-discord-rpc
> node ./src/app.js

Connecting to Discord...
------------------------------------
ERROR: A problem occurred while launching VLC. Most likely, you installed VLC to a weird spot and will need to set the vlcPath value in config/config.js to the path to your vlc executable (eg. vlcPath: "C:/Program Files/videolan/vlc/vlc.exe")
------------------------------------
Waiting 20 seconds before exiting to give you time to read the error message :)
Logged in as TDR_Minecraft

Your Setup: Windows 10 Pro x64 Node.js v14.17.3

config file

// See CONFIGURATION.md for more information

module.exports = {

    // Overrides command used to launch VLC when in attached mode
    // If blank, defaults are used
  vlcPath: "D:\Program Files\VideoLAN\VLC\vlc.exe",

  rpc: {
    id: '410664151334256663',
    updateInterval: 5000,
    sleepTime: 30000,
    // Show the album track number when applicable. Example: (2 of 10)
    displayTrackNumber: true,
    displayTimeRemaining: true,
    // If true, VLC will not be opened for you.
    // Note: You must set a password
    detached: false,
  },

  vlc: {
    // If blank, a random password is used
    password: '',
    port: 8080,
    address: 'localhost'
  },
};
Pigpog commented 3 years ago

Use forward slashes (/) instead of backslashes () in the path

TureBentzin commented 3 years ago

Thank you!