> For the complete documentation index, see [llms.txt](https://jvlflame.gitbook.io/javinizer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jvlflame.gitbook.io/javinizer/using-javinizer/file-matching.md).

# 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.

## Display the file matcher output

In some cases, you may be wondering what the filenames are being matched to. To do this, you can use the built-in `Get-JVItem` function to output the files in a directory of your choice.

First, run this command to define your $settings variable with your current Javinizer settings:

```
$settings = gc (Join-Path (Get-InstalledModule Javinizer).InstalledLocation jvSettings.json) | ConvertFrom-Json
```

Second, use the $settings variable with the `Get-JVItem` function.&#x20;

```
$settings | Get-JVItem -Path C:\Javinizer -Recurse | Format-Table
```

You can use all of the available sort parameters with `Get-JVItem` that you would normally be able to use when running a sort with Javinizer.

* -Path
* -Recurse
* -Depth
* -Strict

The function will take in all other defined settings from the pipeline such as:

* match.minimumfilesize
* match.includedfileextension
* match.excludedfilestring
* match.regex
* match.regex.string
* match.regex.idmatch
* match.regex.ptmatch
