diff --git a/capture-playout-live.js b/capture-playout-live.js index ee3e3cf..e7c13b8 100644 --- a/capture-playout-live.js +++ b/capture-playout-live.js @@ -1,7 +1,8 @@ // Read-only captures of a live playout channel. NEVER click transport/Channel off/Convert/Add. const { chromium } = require('playwright'); const OUT='/home/zgaetano/media-command-guide/screenshots'; -const COOKIE='REDACTED'; +if (!process.env.DF_SESSION_COOKIE) { console.error('DF_SESSION_COOKIE env var not set — grab the dragonflight.sid cookie value from your browser devtools, export it, rerun.'); process.exit(1); } +const COOKIE=process.env.DF_SESSION_COOKIE; const SAFE=/^(Overview|Schedule prep|As-Run|Live inputs.*|Clips.*|Breaks.*|GamesTV)$/; (async()=>{ const b=await chromium.launch({args:['--no-sandbox','--autoplay-policy=no-user-gesture-required']}); diff --git a/capture-playout-staging.js b/capture-playout-staging.js index 6232839..3b5c846 100644 --- a/capture-playout-staging.js +++ b/capture-playout-staging.js @@ -1,7 +1,8 @@ // Read-only: opens Staging with the pre-built non-air playlist selected (via localStorage). No transport clicks. const { chromium } = require('playwright'); const OUT='/home/zgaetano/media-command-guide/screenshots'; -const COOKIE='REDACTED'; +if (!process.env.DF_SESSION_COOKIE) { console.error('DF_SESSION_COOKIE env var not set — grab the dragonflight.sid cookie value from your browser devtools, export it, rerun.'); process.exit(1); } +const COOKIE=process.env.DF_SESSION_COOKIE; const CH='ccea5e02-2c7e-4154-953b-1f9621336ceb', PL=process.argv[2]; (async()=>{ const b=await chromium.launch({args:['--no-sandbox']}); diff --git a/explore-playout.js b/explore-playout.js index 57ef33b..5ac91b3 100644 --- a/explore-playout.js +++ b/explore-playout.js @@ -1,5 +1,6 @@ const { chromium } = require('playwright'); -const COOKIE='REDACTED'; +if (!process.env.DF_SESSION_COOKIE) { console.error('DF_SESSION_COOKIE env var not set — grab the dragonflight.sid cookie value from your browser devtools, export it, rerun.'); process.exit(1); } +const COOKIE=process.env.DF_SESSION_COOKIE; (async()=>{ const b=await chromium.launch({args:['--no-sandbox','--autoplay-policy=no-user-gesture-required']}); const c=await b.newContext({viewport:{width:1920,height:1080}}); diff --git a/explore-playout2.js b/explore-playout2.js index e0f6c6e..3f173b3 100644 --- a/explore-playout2.js +++ b/explore-playout2.js @@ -1,5 +1,6 @@ const { chromium } = require('playwright'); -const COOKIE='REDACTED'; +if (!process.env.DF_SESSION_COOKIE) { console.error('DF_SESSION_COOKIE env var not set — grab the dragonflight.sid cookie value from your browser devtools, export it, rerun.'); process.exit(1); } +const COOKIE=process.env.DF_SESSION_COOKIE; (async()=>{ const b=await chromium.launch({args:['--no-sandbox']}); const c=await b.newContext({viewport:{width:1920,height:1080}});