productivityStarter — €49
Spotify Workflow
90/100
56 NodesBeschreibung
Match Spotify Tracks to YouTube Videos This part finds the best YouTube video for a Spotify track using the YouTube Data API v3. It searches with the track title and artist, retrieves the top 5 videos, and selects the first one with a duration within ±10% of the Spotify track length. The matched video is added to a YouTube playlist, and its ID is saved in the database. Operation: - Uses Spotify data (title + artist) for search. - Ensures duration accuracy (±10% tolerance). - Automates | Setup-Pack: discord | supabase | youtube
Setup-Anleitung
# Spotify to YouTube Playlist Synchronization
## A workflow that maintains a YouTube playlist in sync with a Spotify playlist, featuring smart video matching and persistent synchronization.
## Key Features
- **One-way Sync**: Spotify playlist → YouTube playlist (additions and deletions
- **Continuous Monitoring**: Automatic synchronization (every hour by default, but you can put any time you want)
- **Smart Video Matching**: Considers video length and content relevance
- **Auto-Recovery**: Automatically handles deleted YouTube videos
- **Database Backup**: Persistent storage using Supabase
## Prerequisites
1. Supabase project with the following table structure:
```sql
CREATE TABLE IF NOT EXISTS musics (
id TEXT PRIMARY KEY,
title TEXT NOT NULL,
artist TEXT NOT NULL,
duration INT8 NOT NULL,
youtube_video_id TEXT,
to_delete BOOLEAN DEFAULT FALSE
);
```
2. Empty YouTube playlist (recommended as duplicates are not handled)
3. Configured credentials for YouTube, Spotify, and Supabase APIs
4. Properly set variables in all "variables" nodes (variables, variables1, variables2, variables3, variables4 (all the same))
5. Activate the workflow !
## Workflow Components
### Workflow 1: Main Sync Process
1. **Change Detection**
- Monitors Spotify playlist for changes
- Compares database state with current playlist
2. **Video Matching**
- Searches YouTube based on title, artist, and duration
- Evaluates top 5 results for best match
- Marks unmatched tracks with "NOTFOUND"
- Notifies user of successful matches and failures
### Workflow 2: YouTube Maintenance
- Monitors YouTube playlist for removed videos
- Flags removed videos for re-search
- Handles deletion of marked videos
### Workflow 3: Recovery Process
- Clears "NOTFOUND" flags periodically to re-search previously unmatched tracks
## Implementation Notes
- Workflows can be separated into different files for better monitoring
- Recovery process ensures long-term playlist maintenanceBenötigte Integrationen (3)
Workflow freischalten
Kaufe das Starter Bundle für €49 — erhalte sofortigen Zugang zu diesem und allen weiteren Starter Workflows als ZIP-Datei zum Import in n8n.
Sichere Zahlung via Stripe. 7-Tage Geld-zurück-Garantie.