Superschnizel / Obsidian-Moviegrabber

obsidian.md plugin to grab data from public movie Databases and make them into a note that can be used with dataview querries
MIT License
24 stars 5 forks source link

Extract ratings to their own fields #20

Closed cstby closed 6 months ago

cstby commented 10 months ago

The ratings field from omdb currently returns an array that isn't directly usable in Obsidian.

As discussed in this issue, omdb doesn't store ratings because of legal issues. Instead, it pulls ratings from other sources.

I believe the most up to date ratings are contained in this array. Making each rating accessible through the template would benefit users of this plugin.

Superschnizel commented 10 months ago

How exactly would you like to use this? Can you give me an example?

Superschnizel commented 10 months ago

I just published 1.1.14, wich introduces Regex Transfomations. These allow you to extract specific reviews, like for example:

{{Ratings|"|"|<$Rotten Tomatoes\: .*$>}}

Will only show Rotten Tomatoes score.