# File Matching

Javinizer will by default attempt to clean the filenames of downloaded files and match them to their Movie ID which normally appears in the form of ID-###.&#x20;

To reduce the likelihood of false matches, Javinizer requires that the filename match is exactly the ID that appears on the scraper source.&#x20;

For example, `ABP-420.1080p.mp4` will be automatically cleaned to `ABP-420` when matching. This must exactly match the movie ID `ABP-420` that is displayed on your selected scrapers.

In some cases, the default file matcher will fail to match the file due to edge case filenames or the ID listed on the scraper source does not follow the standard ID format. In these cases, you will likely need to sort using the `-Url`  or `-Strict` parameters.

The `-Strict` parameter works by forcing the matcher to ignore the default filename cleaning logic and use the exact filename.&#x20;

For example:

* `Javinizer -Path .\ABP-42.mp4` will automatically clean the file ID to `ABP-420`
* `Javinizer -Path .\ABP-42.mp4 -Strict` will use the filename as the ID as `ABP-42`

One thing to keep in mind is that `-Strict` will not support multi-part sorting due to the nature of how it matches the filename exactly.

## Multi-part video support

Javinizer supports sorting multi-part videos. When sorted, all multi-part videos will be renamed in the format: `ID-###-pt#`.

The following filename formats will be detected as a multi-part video.

| FIlename Format  | Example                    |
| ---------------- | -------------------------- |
| ID-###\[a-iA-I]  | ID-030A, ID-030B           |
| ID-###-\[a-iA-I] | ID-030-A, ID-030B          |
| ID-###-\d        | ID-030-1, ID-030-2         |
| ID-###-0\d       | ID-030-01, ID-030-02       |
| ID-###-00\d      | ID-030-001, ID-030-002     |
| ID-###-pt\d      | ID-030-pt1, ID-030-pt2     |
| ID-### - pt\d    | ID-030 - pt1, ID-030 - pt2 |
| ID-###-part\d    | ID-030-part1, ID-030-part2 |
| ID-###\_\d       | ID-030\_1, ID-030\_2       |
| ID-###\_0\d      | ID-030\_01, ID-030\_02     |
| ID-###-cd\d      | ID-030-cd1, ID-030-cd2     |


---

# 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://jvlflame.gitbook.io/javinizer/master/using-javinizer/file-matching.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.
