mlbserver 2025.7.30 → 2025.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/session.js +10 -14
package/package.json
CHANGED
package/session.js
CHANGED
|
@@ -3295,8 +3295,8 @@ class sessionClass {
|
|
|
3295
3295
|
event_end_padding = pitch_end_padding
|
|
3296
3296
|
}
|
|
3297
3297
|
let action_index
|
|
3298
|
-
// skip type 0 (none, inning start)
|
|
3299
|
-
if ( ((skip_type <= 1) || (skip_type == 4)
|
|
3298
|
+
// skip type 0 (none, inning start) and 1 (breaks), or type 4 (commercials) with an inning start, will look at all plays with an endTime
|
|
3299
|
+
if ( cache_data.liveData.plays.allPlays[i].playEvents[j].endTime && ((skip_type <= 1) || ((skip_type == 4) && (start_inning > 0))) ) {
|
|
3300
3300
|
action_index = j
|
|
3301
3301
|
// skip type 2 (idle time) will look at all non-idle plays with an endTime
|
|
3302
3302
|
} else if ((skip_type == 2) && cache_data.liveData.plays.allPlays[i].playEvents[j].endTime && (!cache_data.liveData.plays.allPlays[i].playEvents[j].details || !cache_data.liveData.plays.allPlays[i].playEvents[j].details.description || !IDLE_TYPES.some(v => cache_data.liveData.plays.allPlays[i].playEvents[j].details.description.includes(v)))) {
|
|
@@ -3588,19 +3588,15 @@ class sessionClass {
|
|
|
3588
3588
|
if ( eventList ) {
|
|
3589
3589
|
for (var i=0; i<eventList.length; i++) {
|
|
3590
3590
|
if ( eventList[i].fields && eventList[i].fields.blurb && eventList[i].fields.url ) {
|
|
3591
|
-
if (
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3591
|
+
if ( eventList[i].title ) {
|
|
3592
|
+
if ( (eventName == 'BIGINNING') && eventList[i].title.startsWith('LIVE') && eventList[i].title.includes('Big Inning') ) {
|
|
3593
|
+
this.debuglog('active big inning url')
|
|
3594
|
+
return eventList[i].fields.url
|
|
3595
|
+
} else {
|
|
3596
|
+
let cleaned_title = eventList[i].title.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toUpperCase()
|
|
3597
|
+
if ( cleaned_title.endsWith(' VS. ' + eventName) || cleaned_title.includes(eventName + ' VS. ') ) {
|
|
3598
|
+
this.debuglog('active ' + eventName + ' url')
|
|
3597
3599
|
return eventList[i].fields.url
|
|
3598
|
-
} else {
|
|
3599
|
-
let cleaned_title = eventList[i].title.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toUpperCase()
|
|
3600
|
-
if ( cleaned_title.endsWith(' VS. ' + eventName) || cleaned_title.includes(eventName + ' VS. ') ) {
|
|
3601
|
-
this.debuglog('active ' + eventName + ' url')
|
|
3602
|
-
return eventList[i].fields.url
|
|
3603
|
-
}
|
|
3604
3600
|
}
|
|
3605
3601
|
}
|
|
3606
3602
|
}
|