The frontend uses gulp to watch the less files and compile them to css.
To run gulp:
gulp
The backend is a Flask app.
Ensure the virtual environment is active, then run:
flask
# Check for outdated packages
poetry show -o
// Find outdated packages
npm outdated
// Update to 'safe' versions of all packages
npm update
// Update to latest version of a package
npm install <packagename>@latest
const playlistLinks = document.querySelectorAll('a[href^="/playlist?list="]');
const playlistIds = [];
playlistLinks.forEach(link => {
const href = link.getAttribute('href');
const id = href.split('list=')[1];
if (id) {
playlistIds.push(id);
}
});
console.log(playlistIds);