fabiognr / pyytlounge Goto Github PK
View Code? Open in Web Editor NEWPython youtube lounge API
Home Page: https://readthedocs.org/projects/pyytlounge/
License: GNU General Public License v3.0
Python youtube lounge API
Home Page: https://readthedocs.org/projects/pyytlounge/
License: GNU General Public License v3.0
As the title says, on some devices like the Nintendo Switch, the loungeStatus event seems to not always include the deviceInfo key, causing an error and disconnecting from the events subscription.
The message received (with the key missing): {'app': 'lb-v4', 'capabilities': 'dsp,mic,dpa,ntb,vsp,que,mus', 'clientName': 'tvhtml5', 'experiments': '', 'name': 'Nintendo Switch', 'theme': 'cl', 'id': 'XXXXXXXXXXXXXXXXXXX', 'type': 'LOUNGE_SCREEN', 'hasCc': 'true', 'receiverIdentityMatchStatus': 'IS_RECEIVER'}
The traceback: Traceback (most recent call last): File "/venv/lib/python3.9/site-packages/pyytlounge/wrapper.py", line 374, in connect self.__process_events(events) File "/venv/lib/python3.9/site-packages/pyytlounge/wrapper.py", line 290, in __process_events self.__process_event(event_id, event_type, args) File "/venv/lib/python3.9/site-packages/pyytlounge/wrapper.py", line 271, in __process_event self.__device_info = json.loads(device["deviceInfo"]) KeyError: 'deviceInfo'
If you are fine with it, I'd be willing to make a PR myself to fix this.
Also, thanks for creating this amazing wrapper for the youtube lounge api
Hi, I was wondering if it would be possible to build wheels for this project, since it would make it much easier when using it as a library and installing it. I could try to make a PR with a GitHub action, if that sounds ok.
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.