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:
- Find all
.mdfiles in the directory - Extract titles from frontmatter, H1 headers, or filenames
- Search TMDB for matching movies/TV shows
- 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.3.tar.gz
(92.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file obsidian_tmdb_cover-0.1.3.tar.gz.
File metadata
- Download URL: obsidian_tmdb_cover-0.1.3.tar.gz
- Upload date:
- Size: 92.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d92cfe89d11cab2d3117191ce3d1053f1a8ea387d7388103bc46a54e84a6e889
|
|
| MD5 |
d5c3e43a5d79657232c6fb8a446f5278
|
|
| BLAKE2b-256 |
e31ad98b6f716f72cd4d38254e94d8a744c36ac4b11304c0f0067e31f0287f59
|
File details
Details for the file obsidian_tmdb_cover-0.1.3-py3-none-any.whl.
File metadata
- Download URL: obsidian_tmdb_cover-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13bcdf70a94c20df79ee59b9232c9d7d2003d6ef5f65307084b2190ecfc51efe
|
|
| MD5 |
f14bfd163fe6897dea1cf62fe8296b08
|
|
| BLAKE2b-256 |
896aa13434c408d10264af2c06cf471a1c7d33274a645744532547434c48fd5f
|