Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature: Skip Ads #1938

Closed
waltonbruce opened this issue Mar 10, 2023 · 6 comments · Fixed by #1946 or #1955
Closed

New Feature: Skip Ads #1938

waltonbruce opened this issue Mar 10, 2023 · 6 comments · Fixed by #1946 or #1955

Comments

@waltonbruce
Copy link

On other Plex players (e.g. android or web-based), when a video is played which has been recorded by the Plex DVR with commercial detection enabled, a "Skip Ads" button is presented at the appropriate time. The user may then select to have the player jump to the next commercial marker.

Is there a way for PKC to detect this scenario and mimic the behavior?

Thank you for your consideration.

@croneter
Copy link
Owner

As I don't use Plex DVR, I need your help here. Using Plex Web, could you please navigate to a recording that you know contains ads that can be skipped. Then grab its XML metadata, see section XML Information / XML File the official Plex help. Thanks!

@waltonbruce
Copy link
Author

Here is such an example! Thanks for looking.

showmetadata.txt

@croneter
Copy link
Owner

Implemented in PKC beta version 3.7.6

@waltonbruce
Copy link
Author

Good morning, tried out the BETA repo, getting this error on playback.
thx


<2023-03-20 02:18:58.489 T:127992 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the

following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'KeyError'>
Error Contents: 'commercial'
Traceback (most recent call last):
File "/home/bruce/.kodi/addons/plugin.video.plexkodiconnect/service.py", line 8,
in
service_entry.start()
File "/home/bruce/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/servic
e_entry.py", line 592, in start
Service().ServiceEntryPoint()
File "/home/bruce/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/servic
e_entry.py", line 564, in ServiceEntryPoint
skip_plex_markers.check()
File "/home/bruce/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/skip_p
lex_markers.py", line 54, in check
skip_markers(markers)
File "/home/bruce/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/skip_p
lex_markers.py", line 35, in skip_markers
marker_message=MARKERS[typus],
KeyError: 'commercial'
-->End of Python script error report<--

@waltonbruce
Copy link
Author

Ah, just a typo in skip_plex_markers.py on line 12.
Should be "commercial" to match the XML token.

Please could you fix it, my git skill is a little rusty these days.

thx again

@waltonbruce
Copy link
Author

Tested working. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants