Formats/SeriesResult.ps1xml
<?xml version="1.0" encoding="utf-8"?>
<Configuration> <ViewDefinitions> <View> <Name>SeriesResult</Name> <ViewSelectedBy> <TypeName>MG.Sonarr.Results.SeriesResult</TypeName> </ViewSelectedBy> <ListControl> <ListEntries> <ListEntry> <ListItems> <ListItem> <Label>Added</Label> <ScriptBlock> $dtFormat = [System.Globalization.CultureInfo]::CurrentUICulture.DateTimeFormat; $pat = "{0}, yyyy {1}" -f $dtFormat.MonthDayPattern, $dtFormat.ShortTimePattern; $_.Added.ToString($pat); </ScriptBlock> <ItemSelectionCondition> <ScriptBlock> $_.Added -ne $null -and $_.Added -ne [datetime]::MinValue </ScriptBlock> </ItemSelectionCondition> </ListItem> <ListItem> <PropertyName>AirTime</PropertyName> <ItemSelectionCondition> <ScriptBlock> $_.AirTime -ne $null </ScriptBlock> </ItemSelectionCondition> </ListItem> <ListItem> <Label>AlternateTitles</Label> <ScriptBlock> '{{{0}}}' -f ($_.AlternateTitles.Title -join ', ') </ScriptBlock> <ItemSelectionCondition> <ScriptBlock> $_.AlternateTitles -ne $null -and $_.AlternateTitles.Length -gt 0 </ScriptBlock> </ItemSelectionCondition> </ListItem> <ListItem> <PropertyName>CleanTitle</PropertyName> </ListItem> <ListItem> <Label>FirstAired</Label> <ScriptBlock> $pat = "{0}, yyyy" -f [System.Globalization.CultureInfo]::CurrentUICulture.DateTimeFormat.MonthDayPattern; $_.FirstAired.ToString($pat); </ScriptBlock> <ItemSelectionCondition> <ScriptBlock> $_.FirstAired -ne $null </ScriptBlock> </ItemSelectionCondition> </ListItem> <ListItem> <Label>Genres</Label> <ScriptBlock>'{{{0}}}' -f ($_.Genres -join ', ')</ScriptBlock> </ListItem> <ListItem> <PropertyName>Id</PropertyName> </ListItem> <ListItem> <PropertyName>IMDBId</PropertyName> </ListItem> <ListItem> <PropertyName>IsMonitored</PropertyName> </ListItem> <ListItem> <PropertyName>Name</PropertyName> </ListItem> <ListItem> <!--<PropertyName>Overview</PropertyName>--> <Label>Overview</Label> <ScriptBlock> if ($_.Overview.Length -gt 90) { $_.TruncateOverview() } else { $_.Overview } </ScriptBlock> </ListItem> <ListItem> <PropertyName>Path</PropertyName> <ItemSelectionCondition> <ScriptBlock>$_.Path -ne $null</ScriptBlock> </ItemSelectionCondition> </ListItem> <ListItem> <PropertyName>QualityProfileId</PropertyName> </ListItem> <ListItem> <PropertyName>Rating</PropertyName> </ListItem> <ListItem> <PropertyName>RatingVotes</PropertyName> </ListItem> <ListItem> <PropertyName>Runtime</PropertyName> <ItemSelectionCondition> <ScriptBlock>-not [string]::IsNullOrEmpty($_.Runtime)</ScriptBlock> </ItemSelectionCondition> </ListItem> <ListItem> <PropertyName>SeasonCount</PropertyName> </ListItem> <ListItem> <PropertyName>SeriesType</PropertyName> </ListItem> <ListItem> <PropertyName>SizeOnDisk</PropertyName> </ListItem> <ListItem> <PropertyName>Status</PropertyName> </ListItem> <ListItem> <PropertyName>Tags</PropertyName> </ListItem> <ListItem> <PropertyName>TVDBId</PropertyName> </ListItem> <ListItem> <PropertyName>TvRating</PropertyName> </ListItem> <ListItem> <PropertyName>UsingSeasonFolders</PropertyName> </ListItem> <ListItem> <PropertyName>Year</PropertyName> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> </ViewDefinitions> </Configuration> |