Kodi Community Forum

Full Version: Kodi Unpause Jumpback (Matrix+, v3.0.0+)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(continues from https://forum.kodi.tv/showthread.php?tid...e+jumpback and https://forum.kodi.tv/showthread.php?tid=134837&page=4)

As of July 2020 I have taken over up-keep of this addon, and it is now in the Kodi main repository. Compatible with Matrix, Nexus, and beyond.
Thanks to Memphiz for the original work, other contributors, and to enen92 on guiding the transition to Matrix/Python 3.

A simple Kodi service:

This addon will jump back a number of seconds whenever a video is un-paused - to make sure you don't miss anything.
You can set the amount of seconds to jump back, and the minimum duration of the pause before the addon will trigger a jump back.

It also allows for jump back or forward after rewind or fast-forward, of a specified amount of seconds to, compensate for over-shooting.

Finally, if you're resuming playback from a resume point, it can also jump back to help you pick up from where you left off with a little more context.


Available from the official Kodi Repository (Matrix onwards).
Source on Github: https://github.com/bossanova808/script.x...sejumpback

Change log:

2020-06-23 - Updated for Kodi Matrix, Python 3, and revert to the jump back happening on resume by default (can be configured to happen on pause as per current behaviour)
THANKS! for your work bringing some of these abandoned addons back to life, it's much appreciated Nod
Would it be possible to get jump on resume option in the Leia version?
Given it was a re-write to Python 3 and that Matrix is just about to hit beta, I'm not planning on it.

If I get time I'll look at it, but unlikely as this is the busiest time of year for me at work.  Sorry!
(2020-11-17, 23:17)bossanova808 Wrote: [ -> ]Given it was a re-write to Python 3 and that Matrix is just about to hit beta, I'm not planning on it.

If I get time I'll look at it, but unlikely as this is the busiest time of year for me at work.  Sorry!

No worries! I can wait for Matrix. Smile
Yep, shouldn't be long now.  I'm eager for it - lots of fixes in there and the various addons I've updated have all got minor improvements I can't really use myself yet!!
Thanks for adding this, I use this addon all the time! One thing I've noticed in Matrix is that if I select 'Exclude Live TV' and/or 'Exclude HTTP Sources' it still jumps back when pausing in IPTV Simple Client. Would you expect 'Exclude Live TV' to disable jumpback on a Pause from IPTV Simple Client?


EDIT - I just had a quick look at the code and actually fixed this myself. If using IPTV Simple Client the source is either HTTP or HTTPS, however the code is looking for HTTP and HTTPS, which of course won't happen.

Line 113 of unpause_jumpback.py shows this code:

Code:
if (full_path.find("http://") > -1) and (full_path.find("https://") > -1) and self.exclude_http:

Which I changed to:

Code:
if (full_path.find("http://") > -1) or (full_path.find("https://") > -1) and self.exclude_http:

I was also thinking perhaps there could be separate settings for HTTP & HTTPS, in case only one of these was to be excluded?
Thanks for pointing that out - I'll fix it up soon.

What would be the use case for separating http/https?
Fix (as above) submitted to the repo masters as an update
Hi,

iam using this Plugin with PlexKodi Plugin, but don't know if this has anything to do with it. Anyway, the Plugin in v3.0.2 and v3.0.1 does not work correctly.
It does not skip back when I pause but it skips back when I fast forward. So there must be a change from v3.0.0 to 3.0.1 that broke it because with v3.0.0 its working fine.
Working fine here.  Although I don't use video addons much. Going to need a (complete) debug log, showing it happening, to help (as always...).
Stopped working after Updating Libreelec to newest Version. Might be my special setup then, Libreelec, with PlexKodi Addon. Probably less popular^^.
But its working fine with v3.0.0 so no reason to waste your time for me :-). Thanks for the great addon :-)
@[email protected] Might as well fix it though.  My guess, given there have been really no functional changes, are that it is the line supplied above...

Can you try version 3.0.2 but change:

python:

     if (full_path.find("http://") > -1) or (full_path.find("https://") > -1) and self.exclude_http:

to

python:

     if ((full_path.find("http://") > -1) or (full_path.find("https://") > -1)) and self.exclude_http:

...and let me know if that fixes your issue?   I suspect we're running into operator precedence issues...

(Approx line 113 of unpause_jumpback.py in the addon folder)

Let me know how you go!
Yep, that fixed it. Thanks alot. Smile
Cool, thanks for confirming, have submitted the fix to the powers that be, will come along with v3.0.3
Pages: 1 2