Niedzwiedzw / youtube-publish-drafts

Publish all your draft videos without clicking by using javascript
MIT License
268 stars 123 forks source link

Update youtube-publish-drafts.js #26

Open mitchlinDEV opened 1 year ago

mitchlinDEV commented 1 year ago

Feb-2023 - script 'as-is' does not work, I only get this to work by making the following changes:

at line 97: REPLACE: const MADE_FOR_KIDS_SELECTOR = '#made-for-kids-group'; WITH: // const MADE_FOR_KIDS_SELECTOR = '#made-for-kids-group'; const VIDEO_MADE_FOR_KIDS_NOT_MFK = '#made-for-kids-group';

at line 169: REPLACE: return await waitForElement(MADE_FOR_KIDS_SELECTOR, this.raw); WITH: return await waitForElement(VIDEO_MADE_FOR_KIDS_NOT_MFK, this.raw);

at line 248: REPLACE: await dialog.close(); WITH: // await dialog.close();

Note: that once it closes the draft screen, it takes approx 10 secs to automatically open the next screen