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

docs(*): update the name from anchor.fm to spotify #127

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Wabri
Copy link
Member

@Wabri Wabri commented Sep 30, 2024

Closes #126

@Wabri Wabri self-assigned this Sep 30, 2024
src/spotify-pupeteer/index.js Outdated Show resolved Hide resolved
if (env.ANCHOR_LOGIN) {
await anchorLogin();
if (env.SPOTIFY_LOGIN) {
await spotifyLogin();
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there are two functions now with the same name. Could you check that this change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we won't need any if statements here since the only login type will be spotofy.

and because pupeteer treats the page as loaded(or navigated to)
even when the form is not showed
*/
await page.waitForSelector('#email');
await page.type('#email', env.ANCHOR_EMAIL);
await page.type('#password', env.ANCHOR_PASSWORD);
await page.type('#email', env.SPOTIFY_EMAIL);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're introducing a breaking change and so we should be explicit in the doc that the latest version people need to adapt

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the correct section to specify this change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the readme, where we are implementing the documentation of these .env variables

@TheJoin95
Copy link
Member

@Wabri please update & rebase so we can publish a new release

ANCHOR_LOGIN: true,
ANCHOR_EMAIL: '',
ANCHOR_PASSWORD: '',
SPOTIFY_LOGIN: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that you don't need to add any other environment variables. You can just delete the ANCHOR_ env variables.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

@matevskial
Copy link
Contributor

Please rename folder spotify-pupeteer to spotify-puppeteer. I've made a typo when it was named anchorfm-pupeteer

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.

Should we rename the project?
3 participants