Skip to content

Does not work with Plex for Windows app #153

Description

@HaxXorHardy

get this error

`Called jump with The Familiar of Zero - s01e06 - A Thief's Identity 150 131.37850340136055 None
2022-05-20 14:51:59,279 :: bw_plex :: INFO :: plex.py:931 :: Called client_action with 131.37850340136055 02:11 150 None
2022-05-20 14:51:59,294 :: bw_plex :: INFO :: plex.py:967 :: sessionkey 150 media_sessionkey 150
2022-05-20 14:51:59,295 :: bw_plex :: INFO :: plex.py:971 :: client DESKTOP-6MO0765 58.0
2022-05-20 14:51:59,295 :: bw_plex :: INFO :: plex.py:998 :: Checking if we cant find the correct client
2022-05-20 14:51:59,302 :: bw_plex :: INFO :: plex.py:1000 :: gmi459vgr4d8aauk7byp6eev gmi459vgr4d8aauk7byp6eev
2022-05-20 14:51:59,302 :: bw_plex :: INFO :: plex.py:1017 :: Connectiong to DESKTOP-6MO0765
2022-05-20 14:52:09,262 :: bw_plex :: DEBUG :: plex.py:1191 :: Found The Familiar of Zero - s01e06 - A Thief's Identity theme start 01:04, theme end 02:11, ffmpeg_end 00:00 progress 01:08 fake_progress 01:18 best_time 02:11 credits_start 21:40 credits_end 23:39
2022-05-20 14:52:09,262 :: bw_plex :: DEBUG :: plex.py:1232 :: The Familiar of Zero - s01e06 - A Thief's Identity is in the correct time range theme_end
2022-05-20 14:52:19,276 :: bw_plex :: DEBUG :: plex.py:1191 :: Found The Familiar of Zero - s01e06 - A Thief's Identity theme start 01:04, theme end 02:11, ffmpeg_end 00:00 progress 01:18 fake_progress 01:28 best_time 02:11 credits_start 21:40 credits_end 23:39
2022-05-20 14:52:19,276 :: bw_plex :: DEBUG :: plex.py:1232 :: The Familiar of Zero - s01e06 - A Thief's Identity is in the correct time range theme_end
2022-05-20 14:52:29,261 :: bw_plex :: DEBUG :: plex.py:1191 :: Found The Familiar of Zero - s01e06 - A Thief's Identity theme start 01:04, theme end 02:11, ffmpeg_end 00:00 progress 01:28 fake_progress 01:38 best_time 02:11 credits_start 21:40 credits_end 23:39
2022-05-20 14:52:29,262 :: bw_plex :: DEBUG :: plex.py:1232 :: The Familiar of Zero - s01e06 - A Thief's Identity is in the correct time range theme_end
2022-05-20 14:52:29,331 :: bw_plex :: ERROR :: plex.py:1029 :: Cant connect to DESKTOP-6MO0765
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.7/http/client.py", line 1260, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1306, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1255, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1030, in _send_output
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 970, in send
self.connect()
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 177, in _new_conn
% (self.host, self.timeout),
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x7fa793f30550>, 'Connection to 192.168.1.16 timed out. (connect timeout=30)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.16', port=32400): Max retries exceeded with url: /resources (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fa793f30550>, 'Connection to 192.168.1.16 timed out. (connect timeout=30)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hardy/src/bw-plex/bw_plex/plex.py", line 1018, in client_action
correct_client.connect()
File "/home/hardy/.local/lib/python3.7/site-packages/plexapi/client.py", line 95, in connect
data = self.query(self.key, timeout=timeout)
File "/home/hardy/.local/lib/python3.7/site-packages/plexapi/client.py", line 182, in query
response = method(url, headers=headers, timeout=timeout, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='192.168.1.16', port=32400): Max retries exceeded with url: /resources (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fa793f30550>, 'Connection to 192.168.1.16 timed out. (connect timeout=30)'))
2022-05-20 14:52:29,358 :: bw_plex :: DEBUG :: plex.py:1043 :: calculated_offset 161 0.161
2022-05-20 14:52:36,118 :: bw_plex :: DEBUG :: credits.py:505 :: credits_start 1317.983, credits_end 1420.961
2022-05-20 14:52:36,121 :: bw_plex :: DEBUG :: plex.py:221 :: Added The Familiar of Zero - s01e08 - Tabitha's Secret to media.db
2022-05-20 14:52:59,391 :: bw_plex :: INFO :: plex.py:946 :: Failed to reach the client directly, trying via server.
2022-05-20 14:52:59,392 :: bw_plex :: ERROR :: plex.py:89 :: There was an exception in client_action
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.7/http/client.py", line 1260, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1306, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1255, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1030, in _send_output
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 970, in send
self.connect()
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 177, in _new_conn
% (self.host, self.timeout),
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x7fa793f35080>, 'Connection to 192.168.1.16 timed out. (connect timeout=30)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.16', port=32400): Max retries exceeded with url: /player/playback/seekTo?commandID=1&offset=161000&type=video (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fa793f35080>, 'Connection to 192.168.1.16 timed out. (connect timeout=30)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hardy/src/bw-plex/bw_plex/plex.py", line 940, in inner
return func(*args)
File "/home/hardy/.local/lib/python3.7/site-packages/plexapi/client.py", line 376, in seekTo
self.sendCommand('playback/seekTo', offset=offset, type=mtype)
File "/home/hardy/.local/lib/python3.7/site-packages/plexapi/client.py", line 231, in sendCommand
return query(key, headers=headers)
File "/home/hardy/.local/lib/python3.7/site-packages/plexapi/client.py", line 182, in query
response = method(url, headers=headers, timeout=timeout, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='192.168.1.16', port=32400): Max retries exceeded with url: /player/playback/seekTo?commandID=1&offset=161000&type=video (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fa793f35080>, 'Connection to 192.168.1.16 timed out. (connect timeout=30)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hardy/src/bw-plex/bw_plex/plex.py", line 84, in inner
return func(*args)
File "/home/hardy/src/bw-plex/bw_plex/plex.py", line 1046, in client_action
proxy_on_fail(correct_client.seekTo)(calculated_offset * 1000)
File "/home/hardy/src/bw-plex/bw_plex/plex.py", line 948, in inner
return func()
TypeError: seekTo() missing 1 required positional argument: 'offset'`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions