Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Algorithmonaut opened this issue Dec 23, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Algorithmonaut
Copy link

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 Algorithmonaut added the enhancement New feature or request label Dec 23, 2024
@IRHM
Copy link
Member

IRHM commented Dec 23, 2024

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 IRHM self-assigned this Dec 23, 2024
@IRHM IRHM moved this to Todo in Watcharr Dec 23, 2024
@Algorithmonaut
Copy link
Author

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",
      },
    ]
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants