Formats/QueueItem.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
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
    <ViewDefinitions>
        <View>
            <Name>QueueItem ListView</Name>
            <ViewSelectedBy>
                <TypeName>MG.Sonarr.Results.QueueItem</TypeName>
            </ViewSelectedBy>
            <ListControl>
                <ListEntries>
                    <ListEntry>
                        <ListItems>
                            <ListItem>
                                <PropertyName>DownloadId</PropertyName>
                            </ListItem>
                            <ListItem>
                                <Label>Episode</Label>
                                <ScriptBlock>if ($_.Episode.AbsoluteEpisodeNumber -eq $null) {
                                    "{$($_.Episode.Name)}"
                                } else {
                                    "{$($_.Episode.AbsoluteEpisodeNumber); $($_.Episode.Name)}"
                                }</ScriptBlock>
                            </ListItem>
                            <ListItem>
                                <PropertyName>EstimatedCompletionTime</PropertyName>
                            </ListItem>
                            <ListItem>
                                <Label>Quality</Label>
                                <ScriptBlock>$_.Quality.Quality.Name</ScriptBlock>
                            </ListItem>
                            <ListItem>
                                <PropertyName>Id</PropertyName>
                            </ListItem>
                            <ListItem>
                                <PropertyName>Protocol</PropertyName>
                            </ListItem>
                            <ListItem>
                                <Label>Series</Label>
                                <ScriptBlock>"{$($_.Series.Name)}"</ScriptBlock>
                            </ListItem>
                            <ListItem>
                                <Label>Size</Label>
                                <ScriptBlock>"{0} MB" -f $([math]::Round(($_.Size / 1MB), 2))</ScriptBlock>
                            </ListItem>
                            <ListItem>
                                <Label>SizeLeft</Label>
                                <ScriptBlock>"{0} MB" -f $([math]::Round(($_.SizeLeft / 1MB), 2))</ScriptBlock>
                            </ListItem>
                            <ListItem>
                                <PropertyName>Status</PropertyName>
                            </ListItem>
                            <ListItem>
                                <PropertyName>StatusMessages</PropertyName>
                            </ListItem>
                            <ListItem>
                                <PropertyName>TimeLeft</PropertyName>
                            </ListItem>
                            <ListItem>
                                <PropertyName>TrackedDownloadStatus</PropertyName>
                            </ListItem>
                        </ListItems>
                    </ListEntry>
                </ListEntries>
            </ListControl>
        </View>
    </ViewDefinitions>
</Configuration>