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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # mlbserver
2
2
 
3
- Current version 2022.04.09
3
+ Current version 2022.04.28
4
4
 
5
5
  Credit to https://github.com/tonycpsu/streamglob and https://github.com/mafintosh/hls-decryptor
6
6
 
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.log('multiview server started at http://' + addr.replace(':' + port, ':' + multiview_port) + multiview_url_path)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mlbserver",
3
- "version": "2022.04.09",
3
+ "version": "2022.04.28",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
package/session.js CHANGED
@@ -2013,10 +2013,10 @@ class sessionClass {
2013
2013
 
2014
2014
  let cache_data = await this.getGamedayData(contentId)
2015
2015
 
2016
- // There are the events to ignore, if we're skipping breaks
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
- // There are the events to keep, in addition to the last event of each at-bat, if we're skipping pitches
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.includes('LIVE NOW: MLB Big Inning') ) {
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) ) {