Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive lang change, refactor thumbnail selector, not work from 21/07/2022 #137

Merged
merged 2 commits into from
Jul 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,8 @@ async function changeHomePageLangIfNeeded(localPage: Page) {
).singleNodeValue as HTMLElement
element.click()
}, englishItemXPath)

await localPage.goto(uploadURL)
//Recursive language change, if YouTube, for some reason, did not change the language the first time, although the English (UK) button was pressed, the exit from the recursion occurs when the selectedLang selector is tested for the set language
await changeHomePageLangIfNeeded(localPage);
}

async function launchBrowser(puppeteerLaunch?: PuppeteerNodeLaunchOptions) {
Expand Down