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

feat: support monetized channels #203

Merged
merged 1 commit into from Mar 13, 2023
Merged

Conversation

ClassAxion
Copy link
Contributor

Tested on my monetized channel.
Video monetization will always be enabled.

Someday I will add imporvement to auto detect if channel is monetized and user will only set if he want the video monetization or not.

@ClassAxion
Copy link
Contributor Author

#174

@fawazahmed0 fawazahmed0 linked an issue Mar 13, 2023 that may be closed by this pull request
@fawazahmed0
Copy link
Owner

Thanks once again

@fawazahmed0 fawazahmed0 merged commit b8fc6e9 into fawazahmed0:main Mar 13, 2023
@fawazahmed0
Copy link
Owner

fawazahmed0 commented Mar 13, 2023

Hi, there seems to be issue with build, can you please fix it:

C:\Users\nawaz\Documents\GitHub\youtube-uploader>npm run build

> youtube-videos-uploader@2.0.15 build
> tsc -p .

src/upload.ts:349:13 - error TS2531: Object is possibly 'null'.

349             document
                ~~~~~~~~
350                 .querySelector(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
351                     "ytcp-video-monetization-edit-dialog.cancel-button-hidden .ytcp-video-monetization-edit-dialog #radioContainer #onRadio"
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
352                 )
    ~~~~~~~~~~~~~~~~~

src/upload.ts:353:18 - error TS2339: Property 'click' does not exist on type 'Element'.

353                 .click()
                     ~~~~~


Found 2 errors in the same file, starting at: src/upload.ts:349


C:\Users\nawaz\Documents\GitHub\youtube-uploader>

Update: #204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with Monetization
2 participants