Coder Social home page Coder Social logo

Comments (4)

smgt avatar smgt commented on August 20, 2024

Yes, it does look similar. Do you get any error messages in the HA log?

from media_player.linkplay.

koffienl avatar koffienl commented on August 20, 2024

I have a Arylic device (Up2Stream) and facing the same issues.
The log is spammed with these errors:

10:50:42 AM – custom_components/linkplay/media_player.py (WARNING) - message first occurred at 10:33:55 AM and shows up 96 times
REST result could not be parsed as JSON
10:50:42 AM – custom_components/linkplay/media_player.py (WARNING) - message first occurred at 10:33:55 AM and shows up 96 times```

I believe the root cause is the title and artist in the JSON containing some weird info:

```{"type":"0","ch":"0","mode":"10","loop":"3","eq":"0","status":"play","curpos":"6380","offset_pts":"6380","totlen":"0","Title":" ö*+ ö*+","Artist":"�ö*+�åY","Album":"","alarmflag":"0","plicount":"1","plicurr":"1","vol":"28","mute":"0","iuri":"687474703A2F2F696365636173742D716D757369636E6C2D6364702E747269706C652D69742E6E6C2F516D757369635F6E6C5F666F7574657575725F39362E6D7033","uri":"687474703A2F2F696365636173742D716D757369636E6C2D6364702E747269706C652D69742E6E6C2F516D757369635F6E6C5F666F7574657575725F39362E6D7033"}```

The mot basic function works: play, pause and set volume. The you don't get a lot of info because the returned JSON is totally ignored.

from media_player.linkplay.

smgt avatar smgt commented on August 20, 2024

After looking in the documentation it seems that the data in Title, Artist and Album are hexed data. Might be the problem. It's really hard to test and verify since I don't have a Acrylic device.

from media_player.linkplay.

koffienl avatar koffienl commented on August 20, 2024

I don't think that's causing the problem. The main problem is the gibberish in the json for artist and album.
Dehexing shouldn't be that much of an issue.
I can provide some various json output of you like ?

from media_player.linkplay.

Related Issues (16)

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.