moviegrabber

by Leon Holtmeier
5
4
3
2
1
Score: 59/100

Description

Category: 3rd Party Integrations

The moviegrabber plugin allows Obsidian users to generate detailed notes for movies and TV series by fetching data from the Open Movie Database (OMDb) API and optionally embedding YouTube trailers. Users can define custom templates with dynamic tags for metadata such as title, director, and genre, making it compatible with tools like Dataview. The plugin supports advanced transformations like regex and string functions for flexible formatting and enables local saving of poster images. Additionally, users can create visually appealing, interactive displays for their media collections by integrating with custom CSS and Dataview queries.

Reviews

No reviews yet.

Stats

37
stars
6,927
downloads
6
forks
950
days
95
days
95
days
3
total PRs
0
open PRs
0
closed PRs
3
merged PRs
41
total issues
9
open issues
32
closed issues
28
commits

Latest Version

3 months ago

Changelog

fix versioning issue with manifest.json

incorporating #37 and #43 features from @jaxley @thibgn

README file from

Github

Obsidian Moviegrabber

A plugin to generate notes for movies and series with properties that can be used with dataview. Uses the Open Movie Database (OMDb) API to retrieve movie/series data and the Youtube Data API to get the embed links for the trailers (optional).


Usage

https://github.com/Superschnizel/Obsidian-Moviegrabber/assets/47162464/28e2ca9d-e504-4923-9609-dc1e5953d219

(Disclaimer: the choice selection uses outside assets for the movie posters in the preview, retrieved in the search request to OMDb)

To use this plugin you need to create an API key for the OMDb here and optionally also a Youtube Data API Key as described here. and set these in the plugin settings.

To search for a movie or series, simply call the command Search movie or Search series and search a movie by entering a title or a valid IMDB-id.

Templates

To define how the data will be saved in your notes you can define a template. This template uses tags of the form {{tag}} to fill in the data. The available tags are:

{{Title}}
{{Year}}
{{Rated}}
{{Runtime}}
{{Genre}}
{{Director}}
{{Writer}}
{{Actors}}
{{Plot}}
{{Language}}
{{Country}}
{{Awards}}
{{Poster}}
{{PosterLocal}}
{{Ratings}}
{{Metascore}}
{{imdbRating}}
{{imdbVotes}}
{{imdbID}}
{{Type}}
{{DVD}}
{{BoxOffice}}
{{Production}}
{{Website}}
{{totalSeasons}}
{{YoutubeEmbed}}

Note: The data for some tags come as a list (e.g. {{Actors}}). To make these into a valid frontmatter list you can sorround them with square brakets: [{{Actors}}]

Pre- and Suffix

You can define a pre- and suffix to be applied to the data. this is done by using {{tag|prefix|suffix}}. (if you want to use the "|" character, it can be escaped using "\|").

Example: {{Director|"[[|]]"}} will create an internal link of the form "[[Director]]"

When the data is in the form of a list, all transformations will be applied for each item in the list.

Regex Transformation

Additionally you can also give a regex transform to transform the data to your liking by using {{tag|prefix|suffix|regexTransform}}.

Inside a regex transformation every regular expression given inside <$ $> delimiters will be replaced by the matching string from the input. This allows you to bring the data into the form you need it.

Examples:

  • {{Actors|"[[|]]"|<$\w+$$>, <$^\w+$>\|@<$^\w+$> <$\w+$$>}}. This regex transformation will transform the "Actors" data in the form of Firstname Lastname into a link in the form of "[[Lastname, Firstname|@Firstname Lastname]]" (see issue #21).
  • {{Ratings|"|"|<$Rotten Tomatoes\: .*$>}}. This regex transformation will result in only the Rotten Tomatoes rating to be shown.

When a regex transformation results in an empty string pre- and suffix will not be applied.

You can generate an example template in the plugin settings. If no template is given, this default template is used.

String Functions

Finally you can also use javascript functions to transform the input by giving the function name as the 4th argument. This can for example be used to transform the data into all lowercase:

{{Genre||||toLowerCase}}

Regenerating notes

When trying to create a note for a movie that already exists you will be asked if you want to overwrite the existing note. If you want to keep something from the old note in the newly generated one you can make use of the delimiter string:

%%==MOVIEGRABBER_KEEP==%%

Everything below this will be transfered to the new note when overwriting.

Saving Poster Images Locally

When this feature is enabled, movie poster images will be saved to a specified location as .jpg files. To access the image link you can use the template tag {{PosterLocal}}.

Using the generated notes with Dataview and custom CSS

Using a dataview table in combination with a custom css snippet, you can use these notes to create an interactive display for your movies.

grafik

https://github.com/Superschnizel/Obsidian-Moviegrabber/assets/47162464/fc555eea-0ae4-46b4-87d2-44cc2626d387

To use this, copy aditional_css/CardViewMovies.css to your vault's snippets folder (.obsidian/snippets/) and put

---
cssclass: CardViewMovies
---

at the top of your note.

A dataview query for movies not yet seen could look something like this:

```dataview
TABLE country, year, length, trailer_embed, availability, rating, seen
FROM "Movies" WHERE type = "movie" AND seen = Null
```

Note that the cards need at least country, year, length, trailer_embed in the querry to show a card.

eb84e7e8b72a19542ac9510d4053a36bbfbc310b

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Heatmap Calendar
4 years ago by Richard Slettevoll
An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
Release Timeline
4 years ago by cakechaser
Table to CSV Exporter
4 years ago by Stefan Wolfrum
An Obsidian Plugin that allows to export tables from a pane in reading mode to CSV files.
Habit Tracker
4 years ago by David Moeller
A Plugin to display a Habit Tracker in Obsidian.
Simple Note Review
4 years ago by dartungar
Simple, customizable plugin for easy note review, resurfacing & repetition in Obsidian.md.
Better Inline Fields
4 years ago by David Sarman
Obsidian plugin to enhance Dataview style inline fields
Douban
4 years ago by Wanxp
an obsidian plugin that can pull data from douban to your markdown file
Double Colon Conceal
3 years ago by Michal Srch
Obsidian plugin to display double colon (i.e. Dataview inline fields) as a single colon for more natural reading experience.
Habit Calendar
3 years ago by Hedonihilist
Monthly Habit Calendar for DataviewJS. This plugin helps you render a calendar inside DataviewJS code block, showing your habit status within a month.
Meld Build
3 years ago by meld-cp
Write and execute (sandboxed) JavaScript to render templates, query DataView and create dynamic notes.
HackerOne
3 years ago by neolex
A plugin to get our hackerone reports data into obsidian
Movie
3 years ago by Onur Ayçiçek
Query all the things
3 years ago by Sytone
Query all your data stored in Obsidian, this plugin allows SQL based queries against the data collections available in Obsidian and Dataview. Output can then be rendered by Handlebars
Bulk Exporter
3 years ago by symunona
Bulk export Markdown filtered, renamed and sorted by front matter metadata into a new structure.
Link Tree
3 years ago by Joshua Tazman Reinier
A sidebar foldable list of Obsidian link hierarchies.
Run
2 years ago by Hananoshika Yomaru
Generate markdown from dataview query and javascript.
Feeds
2 years ago by LukeMT, pashashocky, madx
Magic feeds dataview query for obsidian
Reason
2 years ago by Joshua Pham
Digest your Obsidian notes
View Count
2 years ago by Trey Wallis
Add view count tracking to your Obsidian vault
Kinopoisk search
2 years ago by Alintor
Obsidian Kinopoisk plugin
IMDb
2 years ago by Andrew Chen
A simple plugin for syncing movies from IMDb to Obsidian
Dataview Serializer
2 years ago by Sébastien Dubois
Obsidian plugin that gives you the power of Dataview, but generates Markdown, making it compatible with Obsidian Publish, and making the links appear on the Graph.
Dataview Publisher
2 years ago by UD
Output markdown from your Dataview queries and keep them up to date. You can also be able to publish them.
Pug Templates
2 years ago by Nicholas Wilcox
An Obsidian plugin that enables the usage of Pug templates.
Dataview
5 years ago by Michael Brenan
A data index and query language over Markdown files, for https://obsidian.md/.
Charts View
5 years ago by caronchen
Data visualization solution in Obsidian, support plots and graphs.
MOC Link Helper
2 years ago by Bogdan Codreanu
This obsidian plugins allows you to quickly see which notes you need to include in your MOC.
Trakt.tv Sync
a year ago by Nick Felker
Sync Trakt checkins to Obsidian file
Dataview Autocompletion
a year ago by Daniel Bauer
Every Day Calendar
a year ago by QuBe
Obsidian plugin to create calendars inspired by Simone Giertz's Every Day Calendar
Tier List
a year ago by Mox Alehin
Obsidian plugin for visual ranking and organizing content into customizable Tier Lists.
CSV All-in-One
a year ago by hihangeol
Tagvis
a year ago by Mason Bryant
Smart ChatGPT
a year ago by 🌴 Brian
Kanban Status Updater
a year ago by Ankit Kapur
Obsidian plugin that automatically updates the note property when card is moved to a column.
DataCards
a year ago by Sophokles187
Obsidian Plugin that transforms dataview tables into visually appealing and customizable card layouts.
Virtual Footer
a year ago by Signynt
Display markdown text (including dataview queries or Obsidian bases) at the bottom or top of all notes which match a specified rule, without modifying them.
Log Keeper
a year ago by James Sonneveld
Generates times stamps automatically as changes are made to a note.
Slash snippets
10 months ago by echo-saurav
Insert snippet of text with slash command
Dataview (to) Properties
10 months ago by Mara-Li
Sync inline Dataview to properties (YAML frontmatter)
Move Cursor On Startup
8 months ago by Jared Kelnhofer
Obsidian plugin to move the cursor to the right and back to the left when starting up. Why? To keep DataView expressions from not running on the first load of, say, your Home file.
Tasks Map
7 months ago by NicoKNL
A graph view of your tasks.
Card Viewer
7 months ago by vsme
一个用于在 Obsidian 中解析和查看电影、电视剧、书籍、音乐和 HTML 内容卡片的插件。
TikToker
2 months ago by ameyxd
Save TikTok videos as markdown notes with embedded content and metadata extraction.