mlbserver 2022.4.9 → 2022.4.28
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/README.md +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/session.js +3 -3
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -133,7 +133,7 @@ session.setPorts(port, multiview_port)
|
|
|
133
133
|
app.listen(port, function(addr) {
|
|
134
134
|
session.log(appname + ' started at http://' + addr)
|
|
135
135
|
session.debuglog('multiview port ' + multiview_port)
|
|
136
|
-
session.
|
|
136
|
+
session.debuglog('multiview server started at http://' + addr.replace(':' + port, ':' + multiview_port) + multiview_url_path)
|
|
137
137
|
session.clear_multiview_files()
|
|
138
138
|
})
|
|
139
139
|
var multiview_app = http.createServer()
|
package/package.json
CHANGED
package/session.js
CHANGED
|
@@ -2013,10 +2013,10 @@ class sessionClass {
|
|
|
2013
2013
|
|
|
2014
2014
|
let cache_data = await this.getGamedayData(contentId)
|
|
2015
2015
|
|
|
2016
|
-
//
|
|
2016
|
+
// These are the events to ignore, if we're skipping breaks
|
|
2017
2017
|
let break_types = ['Game Advisory', 'Pitching Substitution', 'Offensive Substitution', 'Defensive Sub', 'Defensive Switch', 'Runner Placed On Base']
|
|
2018
2018
|
|
|
2019
|
-
//
|
|
2019
|
+
// These are the events to keep, in addition to the last event of each at-bat, if we're skipping pitches
|
|
2020
2020
|
let action_types = ['Wild Pitch', 'Passed Ball', 'Stolen Base', 'Caught Stealing', 'Pickoff', 'Out', 'Balk', 'Defensive Indiff']
|
|
2021
2021
|
|
|
2022
2022
|
let inning_offsets = [{start:broadcast_start_offset}]
|
|
@@ -2347,7 +2347,7 @@ class sessionClass {
|
|
|
2347
2347
|
break
|
|
2348
2348
|
} else {
|
|
2349
2349
|
if ( cache_data.items[i].title ) {
|
|
2350
|
-
if ( (eventName == 'BIGINNING') && cache_data.items[i].title.
|
|
2350
|
+
if ( (eventName == 'BIGINNING') && cache_data.items[i].title.startsWith('LIVE') && cache_data.items[i].title.includes('Big Inning') ) {
|
|
2351
2351
|
this.debuglog('active big inning url')
|
|
2352
2352
|
return cache_data.items[i].fields.url
|
|
2353
2353
|
} else if ( cache_data.items[i].title.toUpperCase().endsWith(' VS. ' + eventName) ) {
|