Plex Framework player/timeline/poll

Looks like bug
When retrive information about current timline form /player/timeline/poll?commandID=1

Looks like Framework.bundle make empty cache for it(Response is always just empty)

Jun 09, 2021 09:02:37.291 [0x7f5144318b38] DEBUG - Request: [192.168.1.5:1823 (WAN)] GET /player/timeline/poll?commandID=1 (5 live) GZIP Signed-in Token (loikM) / Accept => / / Accept-Encoding => gzip, deflate / Accept-Language => ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 / Connection => keep-alive / Cookie => com.plexapp.system=*****; / Host => 10.10.10.1:32400 / User-Agent => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 OPR/76.0.4017.154 / X-Plex-Client-Identifier => ec87b5d4-b5e4-4114-ad66-19c747d87c1f / X-Plex-Device => API / X-Plex-Device-Name => WWW_API / X-Plex-Platform => Linux / X-Plex-Platform-Version => 2 / X-Plex-Product => ApiClient/ X-Plex-Target-Client-Identifier => ** Its our live cleint **/ X-Plex-Token => xxxxxxxxxxxxxxxxxxxx / X-Plex-Version => 2
Jun 09, 2021 09:02:37.291 [0x7f51450a0b38] DEBUG - Completed: [192.168.1.5:1823] 200 GET /player/timeline/poll?commandID=1 (5 live) GZIP 0ms 303 bytes (pipelined: 1)

Inside 303 bytes is empty file.As you see - response code is 200
Ok- i go deeper -
First runtime.py is trying find route and its successeful find route.
inside System.bundle we had PlayerService wich cretae 2 Route

In my case we need this one :
Route.Connect(“/player/{player_controller}/{command}”, self.process_remote_command)

This route is not triggered , when we make request.But its triggered when we pass something that make error (For example unexist X-Plex-Client-Identifier ) or on normal response.

Please Fix it)
If need i ll go deeper and generate more information about this bug.

Why i need it?
I want make my house smarter) I want make smart led for current playing item.I make it - its work over socket info.But socket give info each 9-13 seconds.When i had time offset - my service generate color map palete for next 20 seconds and than launch smart controllers with led.But main problem that sometimes i had unsynced time.

Sorry forget - Framework - v2
Plex Ver 1.23.2.4656

Route.Connect("/player/{player_controller}/{command}", self.process_remote_command)

and than call
url = ‘http://%s:%s/player/%s/%s’ % (host,
port,
player_controller,
command)

its loop
Its hard to find any info - if i am right - host must be client address and

host = child_el.get(‘host’) its mean connect to plex server?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.