Skip to main content

Add TMDB cover images to Obsidian notes

Project description

Obsidian TMDB Cover

Add TMDB cover images and metadata to your Obsidian notes automatically.

Features

  • Fetches movie/TV show cover images from TheMovieDB (TMDB)
  • Downloads and resizes images locally to your vault's attachments/ folder
  • Adds runtime and genre tags to note frontmatter
  • Processes entire directories in batch mode
  • Handles various cover scenarios (missing, color placeholders, external URLs)

Installation

pip install obsidian-tmdb-cover

Run without installation

Use uvx to run the tool without permanent installation:

# Run directly with uvx (no installation required)
env TMDB_API_KEY=your_api_key_here uvx obsidian-tmdb-cover /path/to/your/obsidian/vault

Usage

Bring Your Own API Key - Get a free API key from TheMovieDB.

# Set your TMDB API key
export TMDB_API_KEY=your_api_key_here

# Process an Obsidian vault
obsidian-cover /path/to/your/obsidian/vault

# Or run as a module
python -m obsidian_tmdb_cover /path/to/your/obsidian/vault

The tool will:

  1. Find all .md files in the directory
  2. Extract titles from frontmatter, H1 headers, or filenames
  3. Search TMDB for matching movies/TV shows
  4. Download cover images and add metadata to frontmatter

Example

Before:

---
title: The Matrix
---

After:

---
title: The Matrix
cover: attachments/The Matrix - cover.jpg
runtime: 136
tags: [movie/Action, movie/Science-Fiction]
---

Requirements

  • Python 3.8+
  • TMDB API key (free)
  • Obsidian vault with markdown files

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obsidian_tmdb_cover-0.2.0.tar.gz (92.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obsidian_tmdb_cover-0.2.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file obsidian_tmdb_cover-0.2.0.tar.gz.

File metadata

  • Download URL: obsidian_tmdb_cover-0.2.0.tar.gz
  • Upload date:
  • Size: 92.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for obsidian_tmdb_cover-0.2.0.tar.gz
Algorithm Hash digest
SHA256 56b50725915c7a20922d165fcf570d746eba40e615661a3d23986fbfe683e78c
MD5 5f7a35677c40e89cad1a779c711de19d
BLAKE2b-256 e2e009c31a5ff3e2c570348bd1d21ed74a1c533270a48164508e461bab74f153

See more details on using hashes here.

File details

Details for the file obsidian_tmdb_cover-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for obsidian_tmdb_cover-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48e4d2e7d2de06f725cc5c9125f82ff7d8a8a17471e77188e3e072384f09280d
MD5 fece9e41fe0114434404d10d64c36dce
BLAKE2b-256 21a7aa26c10d14fe049971a0a1d07a2d3436c8d862920eb53a96b7f547a7715e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page