Skip to content

Commit

Permalink
[plugin.video.mlbtv] 2024.8.20+matrix.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eracknaphobia committed Aug 20, 2024
1 parent 7f0c9a8 commit 03fc1ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugin.video.mlbtv/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="plugin.video.mlbtv" name="MLB.TV®" version="2024.8.6+matrix.1" provider-name="eracknaphobia, tonywagner">
<addon id="plugin.video.mlbtv" name="MLB.TV®" version="2024.8.20+matrix.1" provider-name="eracknaphobia, tonywagner">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.pytz" />
Expand All @@ -22,7 +22,7 @@
</description>
<disclaimer lang="en_GB">Requires an MLB.tv account</disclaimer>
<news>
- Fix highlights
- Fix for double headers
</news>
<language>en</language>
<platform>all</platform>
Expand Down
11 changes: 10 additions & 1 deletion plugin.video.mlbtv/resources/lib/mlb.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,16 @@ def stream_select(game_pk, spoiler='True', suspended='False', start_inning='Fals
json_source = r.json()
# start with just video content, assumed to be at index 0
#epg = json_source['media']['epg'][0]['items']
epg = json_source['dates'][0]['games'][0]['broadcasts']
#epg = json_source['dates'][0]['games'][0]['broadcasts']
epg = []
# loop through dates/games and skip those that have been rescheduled
if 'dates' in json_source:
for date in json_source['dates']:
if 'games' in date:
for game in date['games']:
if 'rescheduleDate' not in game:
epg = game['broadcasts']
break

# define some default variables
selected_content_id = None
Expand Down

0 comments on commit 03fc1ad

Please sign in to comment.