Private/Get-MetadataPriority.ps1
function Get-MetadataPriority { [CmdletBinding()] param( [Parameter(Mandatory = $true, Position = 0)] [object]$Settings, [ValidateSet('id', 'title', 'releasedate', 'releaseyear', 'runtime', 'description', 'director', 'maker', 'label', 'series', 'rating', 'ratingcount', 'actress', 'trailerurl', 'actressthumburl', 'genre', 'coverurl', 'screenshoturl', 'alternatetitle')] [string]$Type ) process { $priority = $Settings.Metadata."$Type-priority" $priorityArray = $priority -split ',' Write-Debug "[$(Get-TimeStamp)][$($MyInvocation.MyCommand.Name)] Priority type loaded: [$Type]; Priority setting: [$priorityArray]" Write-Output $priorityArray } } |