Skip to content

Commit 80858e4

Browse files
committed
update
1 parent edfabbb commit 80858e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/MLB.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__) => {
4242

4343

4444

45-
const scriptVersion = 5;
45+
const scriptVersion = 6;
4646
const sourceRepo = "evandcoleman/scriptable";
4747
const scriptName = "MLB";
4848

@@ -560,7 +560,7 @@ async function fetchScoreboard(inDays) {
560560
const date = now.getHours() < 5 ? new Date(now.getTime() - 43200000) : new Date(now.getTime() + (86400000 * (inDays || 0)));
561561
const dateString = df.string(date);
562562
const url = `https://statsapi.mlb.com/api/v1/schedule?date=${dateString}&language=en&hydrate=team(league),venue(location,timezone),linescore(matchup,runners,positions),decisions,homeRuns,probablePitcher,flags,review,seriesStatus,person,stats,broadcasts(all)&sportId=1`;
563-
const data = await fetchJson(`mlb_scores`, url);
563+
const data = await fetchJson(`mlb_scores_${TEAM}`, url);
564564

565565
return data.dates[0].games;
566566
}

src/MLB.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const LAYOUT = "expanded";
3131
import Cache from './lib/cache';
3232
import Updater from './lib/updater';
3333

34-
const scriptVersion = 5;
34+
const scriptVersion = 6;
3535
const sourceRepo = "evandcoleman/scriptable";
3636
const scriptName = "MLB";
3737

@@ -549,7 +549,7 @@ async function fetchScoreboard(inDays) {
549549
const date = now.getHours() < 5 ? new Date(now.getTime() - 43200000) : new Date(now.getTime() + (86400000 * (inDays || 0)));
550550
const dateString = df.string(date);
551551
const url = `https://statsapi.mlb.com/api/v1/schedule?date=${dateString}&language=en&hydrate=team(league),venue(location,timezone),linescore(matchup,runners,positions),decisions,homeRuns,probablePitcher,flags,review,seriesStatus,person,stats,broadcasts(all)&sportId=1`;
552-
const data = await fetchJson(`mlb_scores`, url);
552+
const data = await fetchJson(`mlb_scores_${TEAM}`, url);
553553

554554
return data.dates[0].games;
555555
}

0 commit comments

Comments
 (0)