youtube-to-anchorfm not working when language is not English
matevskial opened this issue · 2 comments
matevskial commented
Issues or necessity of a feature
youtube-to-anchorfm not working when language is not English
weltonrodrigo commented
I've used this to force the language in the old anchor ui, maybe it still works:
diff --git a/src/anchorfm-pupeteer/index.js b/src/anchorfm-pupeteer/index.js
index a3de1d1..0726476 100644
--- a/src/anchorfm-pupeteer/index.js
+++ b/src/anchorfm-pupeteer/index.js
@@ -78,6 +78,9 @@ async function postEpisode(youtubeVideoInfo) {
browser = await puppeteer.launch({ args: ['--no-sandbox'], headless: env.PUPETEER_HEADLESS });
const page = await browser.newPage();
+ // Force english
+ await page.setExtraHTTPHeaders({ 'Accept-Language': 'en' });
+
const navigationPromise = page.waitForNavigation();
await page.goto('https://podcasters.spotify.com/pod/dashboard/episode/new');
matevskial commented
Thanks for your input.
I already made a PR for setting the language to English