GithubHelp home page GithubHelp logo

derpychap / winamp-discord-rpc Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 8 KB

Reports to Discord your now playing song as a Rich Presence status. Mostly made as a proof of concept.

License: MIT License

Python 100.00%

winamp-discord-rpc's Introduction

Winamp-Discord-RPC

Reports to Discord your now playing song as a Rich Presence status. Mostly made as a proof of concept.

To get this to run, you'll need to have this Winamp module and this Discord RPC module in the same directory.

Yes, I know the code is terrible.

winamp-discord-rpc's People

Contributors

derpychap avatar fixator10 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

negocki

winamp-discord-rpc's Issues

Error while listening to stream

λ python winamprpc.py
None
OP Code: 1; Length: 175
Response:
{'cmd': 'DISPATCH', 'data': {'v': 1, 'config': {'cdn_host': 'cdn.discordapp.com', 'api_endpoint': '//canary.discordapp.com/api', 'environment': 'production'}}, 'evt': 'READY', 'nonce': None}

Traceback (most recent call last):
  File "winamprpc.py", line 42, in song_info
    audio = TinyTag.get(filepath)
  File "D:\Program Files\Python36-32\lib\site-packages\tinytag\tinytag.py", line 97, in get
    size = os.path.getsize(filename)
  File "D:\Program Files\Python36-32\lib\genericpath.py", line 50, in getsize
    return os.stat(filename).st_size
OSError: [WinError 123] Синтаксическая ошибка в имени файла, имени папки или метке тома: 'http://animeradio.su:8000/'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "winamprpc.py", line 92, in <module>
    songinfo = song_info(songpath, playlist_pos) #Time to get that tasty metadata.
  File "winamprpc.py", line 46, in song_info
    files = os.listdir(folder)
OSError: [WinError 123] Синтаксическая ошибка в имени файла, имени папки или метке тома: 'http://animeradio.su:8000'

WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect

Unable to figure out how to get this to hook into Discord

Hey,

I was able to get this program's dependencies working fine, but I'm unable to force Winamp to show up and function with rich presence in the games category of Discord.

I do in fact have discord running (it errors out if I don't), and I've got winamprpc.py running as well (assuming the blank command window means it's running).

Is there something I'm missing?

How to use this ?

Hey, i wanted to know how to set up this program, i'm a bit lost with code...

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.