mlbserver 2025.4.5 → 2025.4.6
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 +3 -13
package/package.json
CHANGED
package/session.js
CHANGED
|
@@ -1757,11 +1757,6 @@ class sessionClass {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
|
|
1759
1759
|
if ( gameDate <= today ) {
|
|
1760
|
-
// no blackouts on previous days
|
|
1761
|
-
if ( gameDate < today ) {
|
|
1762
|
-
includeBlackouts = 'true'
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
1760
|
let mediaInfo = {}
|
|
1766
1761
|
|
|
1767
1762
|
let cache_data
|
|
@@ -1819,14 +1814,6 @@ class sessionClass {
|
|
|
1819
1814
|
|
|
1820
1815
|
// MLB games
|
|
1821
1816
|
if ( cache_data.dates[0].games[j].broadcasts ) {
|
|
1822
|
-
// check blackout status, if necessary
|
|
1823
|
-
if ( (mediaType == 'MLBTV') && (includeBlackouts == 'false') && blackouts[gamePk] ) {
|
|
1824
|
-
if ( !blackouts[gamePk].blackoutExpiry || (currentDate < blackouts[gamePk].blackoutExpiry) ) {
|
|
1825
|
-
this.debuglog('getMediaId requested game is blacked out')
|
|
1826
|
-
continue
|
|
1827
|
-
}
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
1817
|
let teamType
|
|
1831
1818
|
// initial loop will count number of broadcasts
|
|
1832
1819
|
let broadcast_count = await this.count_broadcasts(cache_data.dates[0].games[j].broadcasts, mediaType, language)
|
|
@@ -1834,6 +1821,9 @@ class sessionClass {
|
|
|
1834
1821
|
if ( mediaInfo.mediaId ) break
|
|
1835
1822
|
let broadcast = cache_data.dates[0].games[j].broadcasts[k]
|
|
1836
1823
|
if ( broadcast.availableForStreaming == false ) continue
|
|
1824
|
+
if ( blackouts[gamePk] && blackouts[gamePk].blackout_feeds && blackouts[gamePk].blackout_feeds.includes(broadcast.mediaId) ) {
|
|
1825
|
+
continue
|
|
1826
|
+
}
|
|
1837
1827
|
let mediaTitle = 'Audio'
|
|
1838
1828
|
if ( broadcast.type == 'TV' ) {
|
|
1839
1829
|
mediaTitle = 'MLBTV'
|