Formats/SeriesResult.ps1xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?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>
                                <ItemSelectionCondition>
                                    <ScriptBlock>$_.Id -ne $null</ScriptBlock>
                                </ItemSelectionCondition>
                            </ListItem>
                            <!--<ListItem>
                                <Label>Images</Label>
                                <ScriptBlock>$_.Images.CoverType</ScriptBlock>
                            </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)
                                    {
                                        "{0}..." -f $_.Overview.Substring(0, 90).Trim()
                                    }
                                    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>