Seems like there's a bug when running the script with the unattended setting.
[General]
DiscordWebhook=
[Radarr]
ApiKey=obfuscated
Count=5
IgnoreTag=autosearched
Monitored=true
MovieStatus=released
QualityProfileName=Sels High Quality
TagName=autosearched
Unattended=true
Url=http://127.0.0.1:7878
;[Radarr4K]
;ApiKey=
;Count=10
;IgnoreTag=
;Monitored=true
;MovieStatus=released
;QualityProfileName=
;TagName=
;Unattended=false
;Url=
[Sonarr]
ApiKey=obfuscated
Count=1
IgnoreTag=autosearched
Monitored=true
QualityProfileName=Sels High Quality
SeriesStatus=continuing
TagName=autosearched
Unattended=true
Url=http://127.0.0.1:8989
;[Sonarr4K]
;ApiKey=
;Count=5
;IgnoreTag=
;Monitored=true
;QualityProfileName=
;SeriesStatus=continuing
;TagName=
;Unattended=false
;Url=
;[Lidarr]
;ApiKey=
;ArtistStatus=continuing
;Count=5
;IgnoreTag=
;Monitored=true
;QualityProfileName=
;TagName=
;Unattended=false
;Url=
Configuration for Radarr is valid
Starting Radarr search
Config - Radarr - URL: http://127.0.0.1:7878
Config - Radarr - Monitored: True
Config - Radarr - Status: released
Config - Radarr - Unattended: True
Config - Radarr - Limit: 5
Config - Radarr - Tag Name: autosearched
Config - Radarr - Tag ID: 30
Config - Radarr - Ignore Tag: autosearched
Config - Radarr - Ignore Tag ID: 30
Config - Radarr - Quality Profile Name: Sels High Quality
Config - Radarr - Quality Profile ID: 7
Searching for 5 movies from Radarr
Searched started for 5 items in Radarr
Adding tag name "autosearched" to 5 movies in Radarr
Tag added to 5 items in Radarr
Upgradinatorr kicked off search for:
Configuration for Sonarr is valid
Starting Sonarr search
Config - Sonarr - URL: http://127.0.0.1:8989
Config - Sonarr - Monitored: True
Config - Sonarr - Status: continuing
Config - Sonarr - Unattended: True
Config - Sonarr - Limit: 1
Config - Sonarr - Tag Name: autosearched
Config - Sonarr - Tag ID: 3
Config - Sonarr - Ignore Tag: autosearched
Config - Sonarr - Ignore Tag ID: 3
Config - Sonarr - Quality Profile Name: Sels High Quality
Config - Sonarr - Quality Profile ID: 7
Running unattended and no series left to search. Removing "Tag ID: 3" from all series and starting search again
Remove-TagFromMedia: /scripts/upgradinatorr.ps1:1610
Line |
1610 | … ApiKey $apiKey -ApiVersion $apiVersion -Media $filteredSeries -TagId …
| ~~~~~~~~~~~~~~~
| Cannot bind argument to parameter 'Media' because it is null.
Add-TagToMedia: /scripts/upgradinatorr.ps1:1626
Line |
Upgradinatorr kicked off search for:
1626 | … -ApiKey $apiKey -ApiVersion $apiVersion -Media $mediaToSearch -TagId …
| ~~~~~~~~~~~~~~
| Cannot bind argument to parameter 'Media' because it is null.