-
Notifications
You must be signed in to change notification settings - Fork 70
Scan multiple Plex libraries that share the same media folder #144
Comments
Disclaimer: I am not a developer. I had a go at implementing this and think I'm 90% of the way there. The code works but I think the autoscan database isn't being handled correctly as it fails to remove the entry following a scan (I think this is because it's already removed from the first scan). I've never used GitHub fully, else I'd have gone through the proper motions to fork and commit changes that way (I've tried and failed so any direction is welcome). For utils.py, I edited the get_plex_section function:
For scan.py, I edited the start_scan function:
And in db.py, I edited the exists_file_root_path function:
|
@crwblyth Have you done any more with this? @l3uddz Where might the spot in the code be for this "as it fails to remove the entry following a scan (I think this is because it's already removed from the first scan)" |
I didn’t really carry on, however this code I’ve been using since March up until I switched to the other Autoscan two weeks ago. |
@crwblyth Whats the other autoscan? |
@crwblyth Found it https://github.com/Cloudbox/autoscan |
Supports it out the box due to the nature of how the new Plex scanner works I think. Required Plex Beta last time I checked. Works fine for me. Still very much a work in progress though I believe. |
Describe the problem
I have a Plex library for 4K content and below, and a library for 1080p and below.
The 4K > library contains the folders
/Media/Movies
and/Media/Movies1080
The 1080 > library contains only the folder
/Media/Movies1080
When Radarr adds a movie and requests Plex Autoscan to scan that Movie, only the 4K > library gets updated.
Describe any solutions you think might work
As I understand it, Plex Autoscan determines the Library using Section ID's.
This could be defined by a boolean config option to check for additional sections during scan.
Additional context
Plex Sections
5: Films 1080p
1: Films 4K>
6: TV 1080p
2: TV 4K>
This shows in my log file where it states
Using Section ID '1'
, ideally based on my below Plex sections, I would need it to also perform the scan for Section ID '5'.Example log with movie name redacted
The text was updated successfully, but these errors were encountered: