Live Playlist Creator is a Flask web application that allows users to create a YouTube music playlist from a given setlist. The application uses the Setlist.fm API to fetch the setlist details and the YouTube Data API to create the playlist.
- Fetches setlist details from a Setlist.fm URL
- Searches for songs on YouTube
- Creates a YouTube playlist with the searched songs
- Python 3.6 or higher
- Setlist.fm API key
- Google Cloud project with YouTube Data API enabled
- OAuth 2.0 credentials (client_secret.json)
-
Clone the repository:
git clone https://github.com/yourusername/LivePlaylistCreator.git cd LivePlaylistCreator
-
Create a virtual environment and activate it:
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Add your configuration and secrets:
-
Copy the template
config.py
and update it with your details:cp config.py.template config.py
Update
config.py
with yourSECRET_KEY
andSETLIST_FM_API_KEY
. -
Copy the template
client_secret.json
and update it with your details:cp client_secret.json.template client_secret.json
Update
client_secret.json
with your OAuth 2.0 client secrets.
-
-
Start the Flask application:
python app.py
-
Open your web browser and navigate to http://127.0.0.1:5000/.
-
Follow the instructions to authorize the application with your Google account.
-
Input the setlist.fm url for the setlist that you want to make a playlist of.
-
Enjoy your playlist!
app.py
: The main Flask application file.setlist_api.py
: Contains the function to fetch setlist details from Setlist.fm.youtube_api.py
: Contains functions to handle YouTube Data API operations.templates/index.html
: The HTML template for the main page.config.py.template
: Template for configuration file.client_secret.json.template
: Template for OAuth 2.0 credentials file.
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.