SSkilltecabyclaudinhocode
Enviar skill
← Voltar para o catálogo

media-library-organizer

Produtividade

Use para organizar arquivos de mídia (filmes, séries, animes) em NAS ou armazenamento local. Ele limpa arquivos desnecessários, une episódios espalhados, normaliza nomes de pastas para "Título (Ano)" e verifica a completude dos episódios com o TMDB.

35estrelas
Ver no GitHub ↗Autor: InneiLicença: MIT

Media Library Organizer

Overview

Systematically clean, merge, rename, and verify media libraries so that Jellyfin/Emby/Plex can correctly identify and scrape all content.

When to Use

  • Media directory has messy folder names with encoding info
  • Same show scattered across multiple folders
  • Junk files wasting space
  • Need to verify episode completeness against TMDB

Workflow

digraph media_org {
  rankdir=TB;
  "1. Scan & Analyze" -> "2. Clean Junk";
  "2. Clean Junk" -> "3. Identify Duplicates";
  "3. Identify Duplicates" -> "4. Merge Scattered Episodes";
  "4. Merge Scattered Episodes" -> "5. Normalize Folder Names";
  "5. Normalize Folder Names" -> "6. Verify vs TMDB";
  "6. Verify vs TMDB" -> "7. Report & Confirm Deletion";
}

Steps

Each step has detailed instructions and reusable scripts:

  1. Scan & Analyze - Survey directory, identify issues, generate report
    • Script: scripts/scan-media.sh
  2. Clean Junk - Remove temp files, empty dirs, orphan fragments
  3. Identify Duplicates - Find same content across folders by title/year matching
  4. Merge Scattered Episodes - Combine split episodes into one folder
    • Script: scripts/check-episodes.sh
  5. Normalize Folder Names - Rename to Title (Year) format
    • Script: scripts/normalize-names.sh
  6. Verify vs TMDB - Compare local episode count against TMDB
  7. Report & Confirm - Present findings, wait for user confirmation

Common Mistakes

MistakeFix
Renaming folders breaks PT/BT seedingConfirm with user if they're still seeding
Gap detection only checks internal gapsMust compare against TMDB total count
macOS grep lacks -P flagUse egrep -o instead of grep -oP
sed with multi-line input fails on macOSUse awk for complex text processing
Merging without checking overlapsAlways verify no episode overlap before merge
Guessing Chinese titles from EnglishSearch TMDB/MyDramaList for authoritative names
Movie in TV folder or vice versaCheck if content is film or series before placing

Como adicionar

/plugin marketplace add Innei/media-library-organizer-skill

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Comentários · Nenhum comentário

Entre para comentar. Entrar

  • Ainda não há comentários. Seja o primeiro.