Skip to content

Commit 5599cfe

Browse files
tonywagnertonywagner
andauthored
Catch Up fix and skip/changer timing adjustments (#83)
* another skip sync update * clean up file * Catch Up fix * adjust default Game Changer delay --------- Co-authored-by: tonywagner <you@example.com>
1 parent ee71357 commit 5599cfe

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

.DS_Store

-6 KB
Binary file not shown.

addon.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="plugin.video.mlbtv" name="MLB.TV®" version="2025.4.1+matrix.1" provider-name="eracknaphobia, tonywagner">
2+
<addon id="plugin.video.mlbtv" name="MLB.TV®" version="2025.4.8+matrix.1" provider-name="eracknaphobia, tonywagner">
33
<requires>
44
<import addon="xbmc.python" version="3.0.0"/>
55
<import addon="script.module.pytz" />
@@ -27,6 +27,7 @@
2727
- skip timing, game changer, and hide scores ticker updates for 2025
2828
- jump to live when skipping start dialog and allowing spoilers
2929
- restored Big Inning schedule
30+
- fixed Catch Up option
3031
</news>
3132
<language>en</language>
3233
<platform>all</platform>

resources/lib/mlb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ def stream_select(game_pk, spoiler='True', suspended='False', start_inning='Fals
946946
# create an item for the video stream
947947
listitem = stream_to_listitem(stream_url, headers, description, name, icon, fanart)
948948
# pass along the highlights and the video stream item to play as a playlist and stop processing here
949-
highlight_select_stream(json_source['highlights']['highlights']['items'], catchup=listitem)
949+
highlight_select_stream(json_source['dates'][0]['games'][0]['content']['highlights']['highlights']['items'], catchup=listitem)
950950
sys.exit()
951951
# beginning or inning
952952
elif p == 1 or p > 2:

resources/lib/mlbmonitor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ class MLBMonitor(xbmc.Monitor):
3232
#Only skip if a break is at least this long
3333
MINIMUM_BREAK_DURATION = 5
3434
#Additional padding for MLB games (2025)
35-
MLB_PADDING = 39
35+
MLB_PADDING = 2
3636

37-
#Additional Game Changer padding for MLB games (2025)
38-
MLB_GAMECHANGER_PADDING = 20
37+
#Additional Game Changer padding for MLB games, in increments of 10
38+
MLB_GAMECHANGER_PADDING = 10
3939

4040
#Change monitor
4141
MAX_LEVERAGE = 11

0 commit comments

Comments
 (0)