# Setting owned movies on Javlibrary

{% hint style="info" %}
The recommended workflow for setting owned movies is to run it on files directly after sorting them. This is due to JAVLibrary's owned movie list only aggregating the first 5,000 owned movies which causes Javinizer to not recognize already-owned movies if you surpass that count.
{% endhint %}

If you are a JAVLibrary user, chances are you would like to track movies that you are sorting as an "Owned" movie. Javinizer has the capability to scan your JAV directories and set the status of that movie to "Owned".

To use this functionality, perform the following steps:

### Login to JAVLibrary

Click the "Sign In" button on the upper-right of the JAVLibrary homepage and enter your credentials.

![](/files/G3H6GmU2whADz0BkBxwk)

### View site cookies

After logging in to JAVLibrary, view the site cookies. You will need to enter these into your settings file.

| Setting                   | Value                               |
| ------------------------- | ----------------------------------- |
| javlibrary.cookie.session | Cookie content value from `session` |
| javlibrary.cookie.userid  | Cookie content value from `userid`  |

![](/files/zmIczNadhyzadt7jKAgJ)

### Run the Javinizer -SetOwned command

You will need to define the `-Path` to your sorted files as well as the switch `-SetOwned`. This command will check your existing owned movies on JAVLibrary and compare it to files found. If the file is correctly matched to a movie on JAVLibrary, it will perform a POST request to set the movie as owned.

```
Javinizer -Path "C:\JAV\Sorted" -Recurse -SetOwned
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://javinizer.gitbook.io/docs/using-javinizer/using-the-cli/setting-owned-movies-on-javlibrary.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
