NoelDeMartin / media-kraken

Track your movies with Media Kraken
https://noeldemartin.github.io/media-kraken/
GNU General Public License v3.0
71 stars 6 forks source link

Support for Letterboxd? #30

Open Potherca opened 6 months ago

Potherca commented 6 months ago

Hi! I would like to take media kraken for a more thorough spin. However, I keep track of my movies in https://letterboxd.com/

I'm not sure how, but it would be nice to be able to import movies from there!

NoelDeMartin commented 6 months ago

Hey, thanks for opening an issue.

There are basically two ways to achieve that.

The first one, and the easiest, is that I (or someone else) implement an importer for that specific website. It should be pretty straight-forward, given that you only need to implement a small interface. You can see an example of how that was implemented in the past in this commit: https://github.com/NoelDeMartin/media-kraken/commit/29261bd39eeb28046aff89e5863b12ff15232520 (and that one is already more complicated than usual because I had to implement parsing CSV files).

The second one would be that you implement a script yourself to transform the data into JSON-LD. If you do that, you can use the option to import JSON-LD without any need to modify the app. If you want an example of what the JSON-LD should look like, you can create a couple of movies and export your collection to get a sample .json file.

For the first one, I would need a sample file of the exported data from that website. I usually create an account and do it myself, but if you can share some sample file it'll be easier. Also, I'm not working on new features at the moment, so it could take a while until I do it myself.