ZeroQI / Absolute-Series-Scanner

Seasons, absolute mode, Subfolders...
1k stars 155 forks source link

[BUG] The scanner does not start with "junction" type folders on Windows. #424

Closed VegethB closed 1 year ago

VegethB commented 1 year ago

Platform

Operating system and version: Windows Server 2019 LTSC x64 Plex version: 1.29.0.6244

Expected Behavior

Auto-detect "junction" folders and their contents without having to manually force a scan of the library.

Current Behavior

Folders of type "Junction" are not seen and therefore nothing happens until you start a manual scan of the library

Steps to Reproduce

  1. Add a new series to plex or move an already existing series and then create the Junction.

Additional information

image "L:\Anime Auditing\" is the folder that plex scans. "O:\" is where the files physically reside. Unfortunately I can't use JBOD / RAID and I don't want to create 99 folders to check for a library because as soon as I can I will upgrade to a larger HDD that will contain everything: and having the folders scattered, plex deletes the series when I go to remove them despite seeing the duplicates ... and then I have to redo all the metadata and the custom cover / background (it would be a mess given the standard volume ... 300+), so instead, I just move the files back to the original disk and nothing changes.

ZeroQI commented 1 year ago

Does plex default scanner works correctly with these?

VegethB commented 1 year ago

Does plex default scanner works correctly with these?

unfortunately I have all the libraries in "ass + hama" mode, I try to make a temporary one with a plex scanner.

VegethB commented 1 year ago

image Yes, the Plex scanner (the new one) sees and auto-updates the junctions as well. Steps: Created a new library with only 1 series inside (the files of this series are physically in the library); After creating the library, I create the junction of any series inside the library folder (so, at the moment, the files are on another disk and in the library folder I only have the link, that is the junction). I wait a while and plex sees and auto-updates the library with the new series.

image To be clear. I created a folder with a series already in it. I created a library on plex and waited for it to finish doing everything. I have added the junction of a random series to this new library. Plex automatically saw the changes and updated itself by adding the series to the library.

ZeroQI commented 1 year ago

New scanner is irrelevant as not written in Python and doesn't support third party agents

Plex series scanner is the old one ASS Scanner being called by plex upon livrary/folder changes, it means Plex didn't detect the change so not a scanner issue but a Plex issue...

VegethB commented 1 year ago

New scanner is irrelevant as not written in Python and doesn't support third party agents

Plex series scanner is the old one ASS Scanner being called by plex upon livrary/folder changes, it means Plex didn't detect the change so not a scanner issue but a Plex issue...

image image done now the test with the old scanner and hama as agent... has seen and added the junction.

I suppose it is due to something else because I made a library with ass + hama and after 2 minutes it added them automatically. However I can confirm that in the main library, the new series inside the junctions are not seen automatically and I have to force the scan (only the first time). The library contains approximately 350 shows. Created from scratch 3 months ago. And the problem occurs in 2 cases: If I move a large series (like Boruto) and create the junction, this folder is not seen and therefore plex automatically deletes the series. If I add a new series, plex does not "find" the series and therefore is not added to the library.

"Smile of the Arsnotoria the Animation" I added it to plex yesterday afternoon and I had to start the manual scan this morning (because I noticed that it was not placed in the home between the series just added).

Let's close it here because from your answer I already know where it ends...

ZeroQI commented 1 year ago

If the issue is that it doesn't detect changes automatically, but does manually, the scanner isn't called by Plex when there is a change and I cannot fix.

If the series folder is not located in the library root (grouping folder), then try to put it in library root, but if it already is, I see no possible code to alleviate...

VegethB commented 1 year ago

If the issue is that it doesn't detect changes automatically, but does manually, the scanner isn't called by Plex when there is a change and I cannot fix.

Yes, but it only happens with these junction type folders (first time only). With standard windows folders, it behaves without problems. So I thought it was an ass scanner bug.

If the series folder is not located in the library root (grouping folder), then try to put it in library root, but if it already is, I see no possible code to alleviate...

Alredy on root folder (doing groups with a language that is not English leads to problems such as "stagione 01").

Since the plex scanner logs will not report anything and your answer is that it is not due to the ass scanner... let's not go ahead and close it here (luckily a manual scan makes everything work). Probably plex behaves strangely when library start having so many TV shows.

ZeroQI commented 1 year ago

Your can edit the part for season folders to take into account season folders in different languages. I think is has to do with the change detection with the mount point added complexity, i believe the information is not cascaded like changes in the native un mapped file system