Release Kodi Unpause Jumpback (Matrix+, v3.0.0+)
#1
(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)
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#2
THANKS! for your work bringing some of these abandoned addons back to life, it's much appreciated Nod
If I have helped you or increased your knowledge please click the 'Thumb Up - Like' button to show me your appreciation :)
For YouTube questions see the official thread here.
Reply
#3
Would it be possible to get jump on resume option in the Leia version?
Reply
#4
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!
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#5
(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
Reply
#6
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!!
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#7
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?
Reply
#8
Thanks for pointing that out - I'll fix it up soon.

What would be the use case for separating http/https?
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#9
Fix (as above) submitted to the repo masters as an update
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#10
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.
Reply
#11
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...).
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#12
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 :-)
Reply
#13
@[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!
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#14
Yep, that fixed it. Thanks alot. Smile
Reply
#15
Cool, thanks for confirming, have submitted the fix to the powers that be, will come along with v3.0.3
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi Unpause Jumpback (Matrix+, v3.0.0+)0