Watcharr icon indicating copy to clipboard operation
Watcharr copied to clipboard

Automate import from unavailable app to import from (using CLI/API, or custom & simple file)

Open Algorithmonaut opened this issue 1 year ago • 2 comments

Idea Overview Adding import support for all these apps should be extremely time-consuming, yet not all apps are supported. It would be great to have a CLI / a simple importable file format, to script ourselves the import.

Is your feature request related to a problem? Please describe. The impossibility to import from certain apps.

Describe the solution you'd like Either a CLI/API or a simple file format, such that we can parse ourselves the data of the app we use and then import it to Watcharr. The txt file does not let us import the time we watched the movie/show, nor the score.

Describe alternatives you've considered Importing all my collection myself.

Thanks a lot for this app!

Algorithmonaut avatar Dec 23 '24 14:12 Algorithmonaut

Hey @Algorithmonaut, that is a great idea.

I will have a look soon because I cant remember from the top of my head, but I believe we could maybe use the Watcharr import for this.

It's a json array of objects that I think should be easily mapped to.

(If you wanted to check its format now, you could add a movie and show to your watched list and do an export from your profile page to see how it looks, and if you think it is suitable format)

IRHM avatar Dec 23 '24 15:12 IRHM

Hey, thanks a lot!

I already tried exporting my library, which for now looks like this: image

Here is the expored json file: watcharr-export.json

I tried importing the following json file:

[
  {
    "createdAt": "2024-12-24T07:20:00Z",
    "updatedAt": "2024-12-24T07:20:00Z",

    "status": "FINISHED",
    "rating": 9,
    "content": {
      "title": "The Mandalorian",
      "type": "tv"
    }
  }
]

The problem is that the import page ignores the status (at least I think since we can select it from the page), and the created date.

I also tried to add the activity field, but the import failed.

[
  {
    "createdAt": "2024-12-24T07:20:00Z",
    "updatedAt": "2024-12-24T07:20:00Z",

    "status": "FINISHED",
    "rating": 9,
    "content": {
      "title": "The Mandalorian",
      "type": "tv"
    },
    "activity": [
      {
        "createdAt": "2024-12-24T07:20:00Z",
        "updatedAt": "2024-12-24T07:20:00Z",
        "deletedAt": null,
        "type": "ADDED_WATCHED",
      },
    ]
  }
]

Algorithmonaut avatar Dec 24 '24 11:12 Algorithmonaut