mProjectsCode / obsidian-media-db-plugin

A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.
GNU General Public License v3.0
254 stars 31 forks source link

Save images locally #150

Open curiousignite opened 5 months ago

curiousignite commented 5 months ago

Images should be saved locally in a specified folder for offline use.

foegra commented 4 months ago

+1

PeterBeckley commented 4 months ago

There is a PR to sort of make this possible, but it's held up by something. I'm not a developer so I'm not sure of the situation. I use a work around right now.

I use "Local Images Plus" (LIP) plugin to make all embedded images local. I turn off the auto mapping of "image" in the media configuration of Media DB (e.g. Series or Book), and then add it to the template yaml as image: "![{{ title }}]({{ image }})" for that media type, making sure to choose that template in the Media DB configuration area. When I add a new series via Media DB, everything is brought into yaml as expected, the LIP downloads the image and changes the yaml to link to the local copy of the file: image: "![[6f831825c980679eb035f35716558fef_MD5.jpg]]". The locations of the downloaded files are handled by LIP correctly.

I hope this helps anyone in my situation, sorry if this isn't the appropriate place for this, I'm happy to move it somewhere else. Looking forward to this PR eventually making its way into the plugin. Thanks everyone for all your work on it!