bw_plex: don't skip intro on Windows and MacOS
Hello,
Is it known that the intro’s doesn’t get skipped for Windows 10 and MacOS? Android is not a problem, because there it would skip as expected.
I’m using the latest chrome version. I didn’t test it in other browsers.
Logs
Traceback (most recent call last):,
File "/app/bw_plex/bw_plex/plex.py", line 84, in inner,
return func(*args),
File "/app/bw_plex/bw_plex/plex.py", line 1041, in client_action,
proxy_on_fail(correct_client.seekTo(calculated_offset * 1000)),
File "/usr/local/lib/python3.6/dist-packages/plexapi/client.py", line 344, in seekTo,
self.sendCommand('playback/seekTo', offset=offset, type=mtype),
File "/usr/local/lib/python3.6/dist-packages/plexapi/client.py", line 204, in sendCommand,
return query(key, headers=headers),
File "/usr/local/lib/python3.6/dist-packages/plexapi/client.py", line 168, in query,
return ElementTree.fromstring(data) if data.strip() else None,
File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 1314, in XML,
parser.feed(text),
File "<string>", line None,
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0,
2019-12-10 18:27:37,359 :: bw_plex :: DEBUG :: plex.py:1186 :: Found Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 theme start 01:32, theme end 03:28, ffmpeg_end 00:00 progress 03:30 fake_progress 03:40 best_time 03:28 credits_start 00:00 credits_end 00:00,
2019-12-10 19:15:30,420 :: bw_plex :: DEBUG :: plex.py:1186 :: Found Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 theme start 01:32, theme end 03:28, ffmpeg_end 00:00 progress 00:00 fake_progress 00:10 best_time 03:28 credits_start 00:00 credits_end 00:00,
2019-12-10 19:15:31,974 :: bw_plex :: DEBUG :: plex.py:1186 :: Found Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 theme start 01:32, theme end 03:28, ffmpeg_end 00:00 progress 00:00 fake_progress 00:10 best_time 03:28 credits_start 00:00 credits_end 00:00,
2019-12-10 19:15:39,937 :: bw_plex :: DEBUG :: plex.py:1186 :: Found Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 theme start 01:32, theme end 03:28, ffmpeg_end 00:00 progress 00:07 fake_progress 00:17 best_time 03:28 credits_start 00:00 credits_end 00:00,
2019-12-10 19:15:50,664 :: bw_plex :: DEBUG :: plex.py:1186 :: Found Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 theme start 01:32, theme end 03:28, ffmpeg_end 00:00 progress 01:16 fake_progress 01:26 best_time 03:28 credits_start 00:00 credits_end 00:00,
2019-12-10 19:15:59,944 :: bw_plex :: DEBUG :: plex.py:1186 :: Found Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 theme start 01:32, theme end 03:28, ffmpeg_end 00:00 progress 01:25 fake_progress 01:35 best_time 03:28 credits_start 00:00 credits_end 00:00,
2019-12-10 19:15:59,944 :: bw_plex :: DEBUG :: plex.py:1227 :: Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 is in the correct time range theme_end,
2019-12-10 19:15:59,944 :: bw_plex :: DEBUG :: plex.py:1155 :: Called jump with Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 6 208.77061224489796 None,
2019-12-10 19:15:59,944 :: bw_plex :: INFO :: plex.py:931 :: Called client_action with 208.77061224489796 03:28 6 None,
2019-12-10 19:15:59,955 :: bw_plex :: INFO :: plex.py:964 :: sessionkey 6 media_sessionkey 6,
2019-12-10 19:15:59,955 :: bw_plex :: INFO :: plex.py:968 :: client Chrome 85.0,
2019-12-10 19:15:59,955 :: bw_plex :: INFO :: plex.py:995 :: Checking if we cant find the correct client,
2019-12-10 19:15:59,955 :: bw_plex :: INFO :: plex.py:997 :: 80qz6koh1kpfb49ac0xqv1s4 80qz6koh1kpfb49ac0xqv1s4,
2019-12-10 19:15:59,955 :: bw_plex :: INFO :: plex.py:1012 :: Connectiong to Chrome,
2019-12-10 19:16:09,936 :: bw_plex :: DEBUG :: plex.py:1186 :: Found Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 theme start 01:32, theme end 03:28, ffmpeg_end 00:00 progress 01:35 fake_progress 01:45 best_time 03:28 credits_start 00:00 credits_end 00:00,
2019-12-10 19:16:09,936 :: bw_plex :: DEBUG :: plex.py:1227 :: Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 is in the correct time range theme_end,
2019-12-10 19:16:17,950 :: bw_plex :: DEBUG :: plex.py:1186 :: Found Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 theme start 01:32, theme end 03:28, ffmpeg_end 00:00 progress 02:06 fake_progress 02:16 best_time 03:28 credits_start 00:00 credits_end 00:00,
2019-12-10 19:16:17,950 :: bw_plex :: DEBUG :: plex.py:1227 :: Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 is in the correct time range theme_end,
2019-12-10 19:16:19,943 :: bw_plex :: DEBUG :: plex.py:1186 :: Found Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 theme start 01:32, theme end 03:28, ffmpeg_end 00:00 progress 02:07 fake_progress 02:17 best_time 03:28 credits_start 00:00 credits_end 00:00,
2019-12-10 19:16:19,943 :: bw_plex :: DEBUG :: plex.py:1227 :: Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 is in the correct time range theme_end,
2019-12-10 19:16:29,941 :: bw_plex :: DEBUG :: plex.py:1186 :: Found Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 theme start 01:32, theme end 03:28, ffmpeg_end 00:00 progress 02:17 fake_progress 02:27 best_time 03:28 credits_start 00:00 credits_end 00:00,
2019-12-10 19:16:29,942 :: bw_plex :: DEBUG :: plex.py:1227 :: Mobile.Suit.Gundam:.Iron-Blooded.Orphans.s02e11 is in the correct time range theme_end,
2019-12-10 19:16:29,986 :: bw_plex :: ERROR :: plex.py:1024 :: Cant connect to Chrome,
Traceback (most recent call last):,
File "/usr/local/lib/python3.6/dist-packages/urllib3/connection.py", line 157, in _new_conn,
(self._dns_host, self.port), self.timeout, **extra_kw,
File "/usr/local/lib/python3.6/dist-packages/urllib3/util/connection.py", line 84, in create_connection,
raise err,
File "/usr/local/lib/python3.6/dist-packages/urllib3/util/connection.py", line 74, 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.6/dist-packages/urllib3/connectionpool.py", line 672, in urlopen,
chunked=chunked,,
File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 387, in _make_request,
conn.request(method, url, **httplib_request_kw),
File "/usr/lib/python3.6/http/client.py", line 1254, in request,
self._send_request(method, url, body, headers, encode_chunked),
File "/usr/lib/python3.6/http/client.py", line 1300, in _send_request,
self.endheaders(body, encode_chunked=encode_chunked),
File "/usr/lib/python3.6/http/client.py", line 1249, in endheaders,
self._send_output(message_body, encode_chunked=encode_chunked),
File "/usr/lib/python3.6/http/client.py", line 1036, in _send_output,
self.send(msg),
File "/usr/lib/python3.6/http/client.py", line 974, in send,
self.connect(),
File "/usr/local/lib/python3.6/dist-packages/urllib3/connection.py", line 184, in connect,
conn = self._new_conn(),
File "/usr/local/lib/python3.6/dist-packages/urllib3/connection.py", line 164, in _new_conn,
% (self.host, self.timeout),,
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x7f5300d4c0b8>, 'Connection to 192.168.178.35 timed out. (connect timeout=30)'),
,
During handling of the above exception, another exception occurred:,
,
Traceback (most recent call last):,
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 449, in send,
timeout=timeout,
File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 720, in urlopen,
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2],
File "/usr/local/lib/python3.6/dist-packages/urllib3/util/retry.py", line 436, in increment,
raise MaxRetryError(_pool, url, error or ResponseError(cause)),
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.178.35', port=32400): Max retries exceeded with url: /resources (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f5300d4c0b8>, 'Connection to 192.168.178.35 timed out. (connect timeout=30)')),
,
During handling of the above exception, another exception occurred:,
,
Traceback (most recent call last):,
File "/app/bw_plex/bw_plex/plex.py", line 1013, in client_action,
correct_client.connect(),
File "/usr/local/lib/python3.6/dist-packages/plexapi/client.py", line 92, in connect,
data = self.query(self.key, timeout=timeout),
File "/usr/local/lib/python3.6/dist-packages/plexapi/client.py", line 161, in query,
response = method(url, headers=headers, timeout=timeout, **kwargs),
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 546, in get,
return self.request('GET', url, **kwargs),
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 533, in request,
resp = self.send(prep, **send_kwargs),
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 646, in send,
r = adapter.send(request, **kwargs),
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 504, in send,
raise ConnectTimeout(e, request=request),
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='192.168.178.35', port=32400): Max retries exceeded with url: /resources (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f5300d4c0b8>, 'Connection to 192.168.178.35 timed out. (connect timeout=30)')),
2019-12-10 19:16:29,987 :: bw_plex :: DEBUG :: plex.py:1038 :: calculated_offset 238 0.238,
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 22 (10 by maintainers)
Still on holiday I fly back tomorrow, so this weekend I’m able to test.
Sorry I’m unable to test for you right now, I’m on holiday
I will look into it tomorrow. Otherwise it has to wait 3 weeks because of other plans. I’ll keep you updated aboute my findings 👍