kenomaerz / pymcws Goto Github PK
View Code? Open in Web Editor NEWA Python wrapper for the MCWS API of the excellent JRiver Media Center.
License: MIT License
A Python wrapper for the MCWS API of the excellent JRiver Media Center.
License: MIT License
When retrieving fields from files, add a method that automatically detects type of the field and translates it accordingly.
this does not behave nicely when talking to a server which goes to sleep
i.e.
connect to MC
test_local is called (with timeout)
make call to MC ok
MC server goes to sleep
make call to MC
call hangs indefinitely
to workaround this, currently I shim the session call like so (ms being a MediaServer
instance)
ms.session.request = functools.partial(self.__ms.session.request, timeout=2)
I couldn't see an option to get this parameter through any other way, is there one? if not, I suggest added the timeout on every call
It appears that the manifest is missing at least one file necessary to build
from the sdist for version 0.2.1. You're in good company, about 5% of other
projects updated in the last year are also missing files.
+ /tmp/venv/bin/pip3 wheel --no-binary pymcws -w /tmp/ext pymcws==0.2.1
Looking in indexes: http://10.10.0.139:9191/root/pypi/+simple/
Collecting pymcws==0.2.1
Downloading http://10.10.0.139:9191/root/pypi/%2Bf/73e/4bbeb018bb504/pymcws-0.2.1.tar.gz (12 kB)
ERROR: Command errored out with exit status 1:
command: /tmp/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-1v4ypiy4/pymcws/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-1v4ypiy4/pymcws/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-wheel-1v4ypiy4/pymcws/pip-egg-info
cwd: /tmp/pip-wheel-1v4ypiy4/pymcws/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-wheel-1v4ypiy4/pymcws/setup.py", line 6, in <module>
with open("history.md") as history_file:
FileNotFoundError: [Errno 2] No such file or directory: 'history.md'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Are there any plans to implement getting the current Playlist?
http://localhost:52199/MCWS/v1/Playback/Playlist?Zone=-1
I have a use case where I need the current playing track info plus the next few tracks.
If not, I will have a go at implementing it.
I'm pretty new to Python, but looking through the code it makes some sort of sense to me.
Currently, pymcws only resolves hosts on the local network. The groundwork for negotiating the best connection is already done, but the functionality needs to be implemented.
If a server has more than one local ip address, the connection process will probably fail. This needs testing on a device that exhibits the issue.
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.