Code Monkey home page Code Monkey logo

youtube-discord-rpc's People

Contributors

imfunniee avatar seasev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

youtube-discord-rpc's Issues

UnhandledPromiseRejectionWarning Thrown while Trying to Get Active Window

This may simply be an issue with active-win, as I can't see how any part of this program would cause such an issue, but in the line where active-win's sync() is called, an UnhandledPromiseRejectionWarning is thrown for me, terminating the youtube() function and making the program useless. I'll continue to look into the problem myself in case it's on my end, but I don't have much experience with Node.js and I don't know what I'll do if it turns out to be an issue with active-win.

Here's the exact error:
Pastebin

Mac version

I was wondering if you were willing to make a Mac version provided node.js is installed.

Unable to run on Arch Linux

It connects to Discord fine, and then crashes spitting out a JSON error.
Here is the error I get:

[adam@Adam-Arch youtube-discord-rpc]$ node index
Connected to Discord!
xwininfo: can not set locale properly
/home/adam/youtube-discord-rpc/node_modules/active-win/lib/linux.js:35
                title: JSON.parse(result['_NET_WM_NAME(UTF8_STRING)']) || null,
                            ^

SyntaxError: Unexpected number in JSON at position 73
    at JSON.parse (<anonymous>)
    at parseLinux (/home/adam/youtube-discord-rpc/node_modules/active-win/lib/linux.js:35:15)
    at AsyncFunction.module.exports.sync (/home/adam/youtube-discord-rpc/node_modules/active-win/lib/linux.js:74:9)
    at Function.module.exports.sync (/home/adam/youtube-discord-rpc/node_modules/active-win/index.js:25:33)
    at youtube (/home/adam/youtube-discord-rpc/index.js:17:26)
    at Timeout._onTimeout (/home/adam/youtube-discord-rpc/index.js:81:5)
    at listOnTimeout (node:internal/timers:556:17)
    at processTimers (node:internal/timers:499:7)
[adam@Adam-Arch youtube-discord-rpc]$ 

Running the latest version of Arch Linux with the latest AUR version of Discord Canary, running via the X11 version of KDE Plasma (from the kde-testing official Pacman repo).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.