Automating YouTube music downloads to a Plex server with AI skills | Alpha | PandaiTech

Automating YouTube music downloads to a Plex server with AI skills

A workflow where the AI searches for songs on YouTube Music, downloads the video, and saves it to a NAS (Network Attached Storage) for your Plex server.

Learning Timeline
Key Insights

Solving the Kids' Playlist Issue

YouTube has policies that restrict the 'Add to Playlist' feature for children's songs. Using an AI agent with a download 'skill' is an ideal workaround to build private playlists without platform restrictions.

The Advantage of AI Metadata Cleanup

Beyond just downloading, AI can automatically strip unnecessary keywords from filenames—such as '(Official Video)', 'HD', or 'Lyrics'—ensuring your Plex library looks clean and professional.
Prompts

Automated Music Retrieval & Metadata Cleanup

Target: AI Agent / Cloudbot
I am providing screenshots of a music playlist. Please: 1. Extract the song titles and artists from these images. 2. Search for the best quality version of each song on YouTube. 3. Download them and rename the files to a clean 'Artist - Song Title' format. 4. Save them directly to my connected NAS directory for Plex.
Step by Step

Configuring AI Automation to Download Songs to Plex

  1. Launch your preferred AI agent or 'cloudbot' platform that supports the installation of external 'skills'.
  2. Search for and install a specific 'skill' or plugin for downloading YouTube videos within the AI agent.
  3. Prepare your song list input by taking screenshots of playlists from the Spotify or YouTube Music app.
  4. Upload those screenshots into the AI agent's chat interface.
  5. Instruct the AI to recognize (OCR) song titles from the images and find matching videos on YouTube.
  6. Configure API access or a network connection between the AI agent and your NAS (Network Attached Storage) device.
  7. Direct the AI to download files directly into the monitored folder directory used by Plex Media Server.
  8. Leverage LLM capabilities to perform 'metadata cleanup' to ensure filenames, titles, and artists are neatly organized before saving.
  9. Open the Plex app and run 'Scan Library Files' to see your automatically processed song playlist.

More from Build & Deploy Autonomous AI Agents

View All