ajkis / scripts

Ajki's scripts & guides
https://ajkis.github.io/scripts/
324 stars 91 forks source link

Prevent Extra Refreshing of Untagged Shows #42

Closed EldonMcGuinness closed 10 months ago

EldonMcGuinness commented 7 years ago

There is currently an issue with the TV Scanner that causes untagged shows to be scanned along with a scan targeted to a particular directory. The easy way to fix this is to move the refresh outside of the scan loop and do a generic refresh of the entire library.

This is not an issue if there is only one directory being scanned, but if you have 10 folders being scanned and say 10 shows untagged, that results in 110 refresh calls due to the untagged shows. By running the refresh after the scan you end up with 20 calls, the sum of the folders and the untagged.

I have raised and documented this issue here: https://forums.plex.tv/discussion/224957/command-line-scanner-and-partial-refresh/p1