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

Get playlist id from link #47

Open
raad1masum opened this issue Nov 1, 2021 · 1 comment
Open

Get playlist id from link #47

raad1masum opened this issue Nov 1, 2021 · 1 comment
Assignees

Comments

@raad1masum
Copy link
Owner

No description provided.

@raad1masum
Copy link
Owner Author

public String getId(String link) {
    String output = link;

    output = output.replaceAll("https://open.spotify.com/playlist/", "");
    output = output.substring(0, output.indexOf("?"));

    return output;
}

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

No branches or pull requests

2 participants