Niedzwiedzw / youtube-publish-drafts

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

Just works on first time, so I have to paste the code again and over... #12

Closed LuisSpader closed 2 years ago

LuisSpader commented 2 years ago

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'querySelector') at waitForElement (:69:34) at SuccessDialog.closeDialogButton (:117:26) at SuccessDialog.close (:121:30) at Object.publishDrafts [as publish_drafts] (:247:26) waitForElement @ VM301:69 closeDialogButton @ VM301:117 close @ VM301:121 publishDrafts @ VM301:247

mitchlinDEV commented 2 years ago

I got this to somehow work for publishing video's by making the following changes:

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

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

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