l3uddz / plex_autoscan

Script to assist sonarr/radarr with plex imports. Will only scan the folder that has been imported, instead of the whole library section.
GNU General Public License v3.0
397 stars 70 forks source link

Add PLEX_SECTION_MAPPINGS_WITH_API to map Section root paths with API instead of sqlite database. [2] #175

Closed vanhecke closed 2 years ago

vanhecke commented 2 years ago

Hi,

Thank you so much for this project and all other work you have done. For some reason my plex database lacks a lot of the information this script tends to rely on (most tables in my db are empty).

Things I noticed that don't work on my server:

This PR introduces the config option PLEX_SECTION_MAPPINGS_WITH_API. When this is set to true, the PlexServer API will be used to obtain root paths. Based on the "sections+" command.

By setting PLEX_ANALYZE_TYPEto off, PLEX_FIX_MISMATCHED to false and PLEX_SECTION_MAPPINGS_WITH_API to true the script works with my bugged/empty plex database.

Hopefully it helps others.