mlbserver 2026.2.22 → 2026.2.23
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 +5 -4
package/package.json
CHANGED
package/session.js
CHANGED
|
@@ -2500,10 +2500,11 @@ class sessionClass {
|
|
|
2500
2500
|
|
|
2501
2501
|
if ( (broadcast.type == 'TV') || ((mediaType == 'Audio') && (broadcast.language == language)) ) {
|
|
2502
2502
|
let teamType = broadcast.homeAway
|
|
2503
|
+
let opponent_teamType = 'away'
|
|
2503
2504
|
|
|
2504
|
-
if ( (mediaType == 'MLBTV') && (cache_data.dates[i].games[j].seriesDescription != 'Regular Season') && (cache_data.dates[i].games[j].seriesDescription != 'Spring Training') ) {
|
|
2505
|
+
/*if ( (mediaType == 'MLBTV') && (cache_data.dates[i].games[j].seriesDescription != 'Regular Season') && (cache_data.dates[i].games[j].seriesDescription != 'Spring Training') ) {
|
|
2505
2506
|
teamType = 'NATIONAL'
|
|
2506
|
-
}
|
|
2507
|
+
}*/
|
|
2507
2508
|
let team = cache_data.dates[i].games[j].teams['home'].team.abbreviation
|
|
2508
2509
|
let opponent_team = cache_data.dates[i].games[j].teams['away'].team.abbreviation
|
|
2509
2510
|
|
|
@@ -2518,7 +2519,6 @@ class sessionClass {
|
|
|
2518
2519
|
}
|
|
2519
2520
|
} else {
|
|
2520
2521
|
teamType = teamType.toLowerCase()
|
|
2521
|
-
let opponent_teamType = 'away'
|
|
2522
2522
|
if ( teamType == 'away' ) {
|
|
2523
2523
|
opponent_teamType = 'home'
|
|
2524
2524
|
}
|
|
@@ -2528,8 +2528,9 @@ class sessionClass {
|
|
|
2528
2528
|
if ( (excludeTeams.length > 0) && (excludeTeams.includes(team) || excludeTeams.includes(opponent_team) || ((teamType == 'NATIONAL') && excludeTeams.includes(teamType))) ) {
|
|
2529
2529
|
continue
|
|
2530
2530
|
} else if ( (includeTeams.length == 0) || includeTeams.includes(team) || ((teamType == 'NATIONAL') && (includeTeams.includes(teamType) || includeTeams.includes(opponent_team))) || ((broadcast_count == 1) && includeTeams.includes(opponent_team)) || ((broadcast.freeGame == true) && includeTeams.includes('FREE')) ) {
|
|
2531
|
-
if ( (broadcast_count == 1) && !includeTeams.includes(team) && includeTeams.includes(opponent_team) ) {
|
|
2531
|
+
if ( (teamType != 'NATIONAL') && (broadcast_count == 1) && !includeTeams.includes(team) && includeTeams.includes(opponent_team) ) {
|
|
2532
2532
|
team = opponent_team
|
|
2533
|
+
teamType = opponent_teamType
|
|
2533
2534
|
}
|
|
2534
2535
|
let logo = 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRi5AKF6eAu9Va9BzZzgw0PSsQXw8rXPiQLHA'
|
|
2535
2536
|
let seriesId = 'MLB'
|