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

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.1.2.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.1.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: obsidian_tmdb_cover-0.1.2.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.1.2.tar.gz
Algorithm Hash digest
SHA256 99caf61a33f61bed247d1075d279dca6ac1550900f21b454e420955d10384adc
MD5 efcd2a12960439127c4f22ba6154ab25
BLAKE2b-256 6fb93932b629cb4bc05fadbd285788fcfc9aa97cc049961c0eacace8db4621af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for obsidian_tmdb_cover-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 211a8ae015b652d301c7793fc666faa2d6320473306dfb1db3442b83a8410409
MD5 de1bf596c527601fd0ca0cc134442ebd
BLAKE2b-256 bf254fc1844dbf86be13984088ad131139f2e449eee7e820ca6aaa2375835972

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