Voici les logs quand je récupère le PID :
[2020-05-17 09:42:53][DEBUG] : START TRYING TO GET PID : 192.168.1.33
[2020-05-17 09:42:53][DEBUG] : CONNECTED TO 192.168.1.33:1255, SENDING GET PLAYER COMMAND
[2020-05-17 09:42:53][DEBUG] : GET PLAYER RETURN : {"heos": {"command": "player/get_players", "result": "success", "message": ""}, "payload": [{"name": "Cuisine", "pid": -2055348700, "model": "HEOS 1", "version": "1.544.240", "ip": "192.168.1.17", "network": "wifi", "lineout": 0}, {"name": "Maman", "pid": -16157161, "model": "HEOS 1", "version": "1.544.240", "ip": "192.168.1.33", "network": "wifi", "lineout": 0}, {"name": "Salon", "pid": 109422636, "model": "Denon AVR-X2400H", "version": "1.544.240", "ip": "192.168.1.11", "network": "wired", "lineout": 0, "serial": "ALV36170606861"}]}
[2020-05-17 09:42:53][DEBUG] : PID FOUND WITH IP METHOD : -16157161
[2020-05-17 09:42:53][DEBUG] : TRYING TO GET SID FOR FAVORITES
[2020-05-17 09:42:53][DEBUG] : SID FOR FAVORITES FOUND : 1028
[2020-05-17 09:42:53][DEBUG] : STOP TRYING TO GET PID
Et les logs quand je veux récupérer les favoris :
[2020-05-17 09:46:36][DEBUG] : BEGIN executeCommand / $cmd = get_favoris
[2020-05-17 09:46:36][DEBUG] : CONNECTED (IP : 192.168.1.33, PORT : 1255)
[2020-05-17 09:46:36][DEBUG] : EXEC COMMAND / $exec = heos://browse/browse?sid=1028
[2020-05-17 09:46:36][DEBUG] : RESULT : {"heos": {"command": "browse/browse", "result": "fail", "message": "eid=8&text=User not logged in&sid=1028"}}
[2020-05-17 09:46:36][DEBUG] : CLOSING CONNECTION
[2020-05-17 09:46:36][DEBUG] : CLOSED
[2020-05-17 09:46:36][DEBUG] : END executeCommand
Au cas où, voici les log spour un lecteur avec lequel j’accède aux favoris :
[2020-05-17 09:49:36][DEBUG] : BEGIN executeCommand / $cmd = get_favoris
[2020-05-17 09:49:36][DEBUG] : CONNECTED (IP : 192.168.1.17, PORT : 1255)
[2020-05-17 09:49:36][DEBUG] : EXEC COMMAND / $exec = heos://browse/browse?sid=1028
[2020-05-17 09:49:36][DEBUG] : RESULT : {"heos": {"command": "browse/browse", "result": "success", "message": "sid=1028&returned=7&count=7"}, "payload": [{"container": "no", "mid": "s24875", "type": "station", "playable": "yes", "name": "France Inter", "image_url": "http://cdn-profiles.tunein.com/s24875/images/logoq.png?t=636443"}, {"container": "no", "mid": "s186332", "type": "station", "playable": "yes", "name": "RADIO CLASSIQUE BERGEM", "image_url": "http://cdn-radiotime-logos.tunein.com/s186332q.png"}, {"container": "no", "mid": "s116266", "type": "station", "playable": "yes", "name": "Irish Pub Radio (Ireland)", "image_url": "http://cdn-profiles.tunein.com/s116266/images/logoq.jpg?t=152525"}, {"container": "no", "mid": "s234601", "type": "station", "playable": "yes", "name": "Party und Apresski Radio", "image_url": "http://cdn-radiotime-logos.tunein.com/s234601q.png"}, {"container": "no", "mid": "s250282", "type": "station", "playable": "yes", "name": "Klassik Radio Piano (Germany)", "image_url": "http://cdn-radiotime-logos.tunein.com/s25028q.png"}, {"container": "no", "mid": "s132811", "type": "station", "playable": "yes", "name": "Calm Radio - Solo Piano %26 Guitar (Canada)", "image_url": "http://cdn-profiles.tunein.com/s132811/images/logoq.jpg"}, {"container": "no", "mid": "s51195", "type": "station", "playable": "yes", "name": "Whisperings: Solo Piano Radio (US)", "image_url": "http://cdn-radiotime-logos.tunein.com/s51195q.png"}], "options": [{"browse": [{"id": 20, "name": "Remove from HEOS Favorites"}]}]}
[2020-05-17 09:49:36][DEBUG] : CLOSING CONNECTION
[2020-05-17 09:49:36][DEBUG] : CLOSED
[2020-05-17 09:49:36][DEBUG] : END executeCommand