Unmanic / unmanic

Unmanic - Library Optimiser
GNU General Public License v3.0
1.41k stars 84 forks source link

Issue with ignoring Symlinks #476

Open nick-harper opened 1 month ago

nick-harper commented 1 month ago

Have you read the Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect:

Remember that these are some guidelines, use your best judgement.

Description

When I have a directory with some actual files and some symlinks, it still includes the Symlinked files.

So if I ls -lah I might get:

Goosebumps.2023.S01E06.1080p.WEB.h264-ETHEL.mkv 'Goosebumps 2023 S01E04 Go Eat Worms 1080p DSNP WEB-DL DDP5 1 Atmos H 264-FLUX[TGx].mkv' -> '/mnt/zurg/torrents/Goosebumps 2023 S01E04 Go Eat Worms 1080p DSNP WEB-DL DDP5 1 Atmos H 264-FLUX[TGx]/Goosebumps 2023 S01E04 Go Eat Worms 1080p DSNP WEB-DL DDP5 1 Atmos H 264-FLUX.mkv'

As you can see, the bottom one is a symlink.

Steps to Reproduce

Adding a new Library and then running a scan. I have tried with the hardlink ignore plugin and I have unchecked the "Follow Symlink" option under libraries

Expected behavior:

It should only add the actual file to the queue?

Actual behaviour: [What actually happens]

Reproduces how often:

Happens every time

Versions

The version can be found at the footer of the WebUI. Also, please include the OS details and what version you are running (e.g. cat /etc/os-release).

Ubuntu 22.04.4 LTS Version: [0.2.6~41346cb]

Installation Method Used

Manually Installed

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.