Skip to content

Commit

Permalink
update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
siku2 committed Dec 22, 2020
1 parent e33cf04 commit ebeb061
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.service.sponsorblock" version="0.2.4" name="SponsorBlock" provider-name="siku2">
<addon id="script.service.sponsorblock" version="0.2.5" name="SponsorBlock" provider-name="siku2">
<requires>
<import addon="xbmc.python" version="2.26.0"/>
<import addon="script.module.requests" version="2.15.1"/>
Expand Down Expand Up @@ -28,6 +28,10 @@ Users submit when a sponsor happens and the add-on automatically skips sponsors
</description>
<disclaimer lang="en_GB">This is an unoffical port of the SponsorBlock browser extension</disclaimer>
<news>
[0.2.5]
- Sort received segments by start time (macearl, #18)
- Skip all overlapping segments instead of just skipping the first one

[0.2.4]
- Handle all events which indicate that playback has ended
- Handle local files gracefully
Expand Down
3 changes: 2 additions & 1 deletion resources/lib/sponsorblock/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def get_skip_segments(
seg = SponsorSegment(raw["UUID"], raw["category"], start, end)
segments.append(seg)

return sorted(segments, key=lambda SponsorSegment: SponsorSegment.start)
segments.sort(key=lambda seg: seg.start)
return segments

def vote_sponsor_segment(
self, segment, upvote=False
Expand Down

0 comments on commit ebeb061

Please sign in to comment.