chore: remove node-fetch, fix lint issues

This commit is contained in:
Jef LeCompte
2025-07-18 23:25:07 -07:00
parent 206be57e8f
commit 4c22bfa9e2
5 changed files with 210 additions and 273 deletions

View File

@@ -3,34 +3,34 @@ import { UserAgent } from "./useragents.js";
export const config = {
baseUrl: "https://tvlistings.gracenote.com/api/grid",
lineupId:
process.env.LINEUP_ID ||
process.env["LINEUP_ID"] ||
process.argv.find((arg) => arg.startsWith("--lineupId="))?.split("=")[1] ||
"USA-lineupId-DEFAULT",
timespan:
process.env.TIMESPAN ||
process.env["TIMESPAN"] ||
process.argv.find((arg) => arg.startsWith("--timespan="))?.split("=")[1] ||
"3",
country:
process.env.COUNTRY ||
process.env["COUNTRY"] ||
process.argv.find((arg) => arg.startsWith("--country="))?.split("=")[1] ||
"USA",
postalCode:
process.env.POSTAL_CODE ||
process.env["POSTAL_CODE"] ||
process.argv
.find((arg) => arg.startsWith("--postalCode="))
?.split("=")[1] ||
"30309",
pref:
process.env.PREF ||
process.env["PREF"] ||
process.argv.find((arg) => arg.startsWith("--pref="))?.split("=")[1] ||
"",
timezone: process.env.TZ || "America/New_York",
userAgent:
process.env.USER_AGENT ||
process.env["USER_AGENT"] ||
process.argv.find((arg) => arg.startsWith("--userAgent="))?.split("=")[1] ||
UserAgent,
outputFile:
process.env.OUTPUT_FILE ||
process.env["OUTPUT_FILE"] ||
process.argv
.find((arg) => arg.startsWith("--outputFile="))
?.split("=")[1] ||