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.
Reports to Discord your now playing song as a Rich Presence status. Mostly made as a proof of concept.
License: MIT License
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.
λ 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
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?
Hey, i wanted to know how to set up this program, i'm a bit lost with code...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.