aboutsummaryrefslogtreecommitdiff
path: root/addons/skin.confluence/720p/IncludesCodecFlagging.xml
blob: 859d5eb960839b91a4dc65ad6b4541cbe92f5e63 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<includes>
	<variable name="typehackflagging">
		<value condition="[substring(ListItem.FilenameAndPath,bluray) | substring(ListItem.FilenameAndPath,bdrip) | substring(ListItem.FilenameAndPath,bd25) | substring(ListItem.FilenameAndPath,bd50)]">bluray</value>
		<value condition="substring(ListItem.FilenameAndPath,hddvd)">hddvd</value>
		<value condition="substring(ListItem.FilenameAndPath,dvd)">dvd</value>
		<value condition="[substring(ListItem.FilenameAndPath,pdtv) | substring(ListItem.FilenameAndPath,hdtv) | substring(ListItem.FilenameAndPath,dsr)]">TV</value>
		<value condition="substring(ListItem.FilenameAndPath,vhs)">vhs</value>
	</variable>
	<variable name="rating">
		<value condition="substring(listitem.mpaa,Rated G)">mpaa_general</value>
		<value condition="substring(listitem.mpaa,Rated PG) + !substring(listitem.mpaa,Rated PG-13)">mpaa_pg</value>
		<value condition="substring(listitem.mpaa,Rated PG-13)">mpaa_pg13</value>
		<value condition="substring(Listitem.mpaa,Rated R)">mpaa_restricted</value>
		<value condition="substring(Listitem.mpaa,Rated NC)">mpaa_nc17</value>
	</variable>
	<variable name="videocodec">
		<value condition="[substring(ListItem.VideoCodec,div,left) | stringcompare(ListItem.VideoCodec,dx50)]">divx</value>
		<value>$INFO[ListItem.VideoCodec]</value>
	</variable>
	<include name="VideoCodecFlaggingConditions">
		<control type="image">
			<description>Video rez Image</description>
			<width>55</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>$INFO[ListItem.VideoResolution,flagging/video/,.png]</texture>
		</control>
		<control type="image">
			<description>Codec Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="left">keep</aspectratio>
			<texture>$VAR[videocodec,flagging/video/,.png]</texture>
		</control>
	</include>
	<include name="VideoTypeHackFlaggingConditions">
		<control type="image">
			<description>Video Type Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="left">keep</aspectratio>
			<texture>$VAR[typehackflagging,flagging/video/,.png]</texture>
			<visible>!Skin.HasSetting(HideFilenameFlagging)</visible>
		</control>
	</include>
	<include name="VideoMPAAFlaggingConditions">
		<control type="image">
			<description>Rating image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio>keep</aspectratio>
			<texture>$VAR[rating,flagging/ratings/,.png]</texture>
		</control>
	</include>
	<include name="AudioCodecFlaggingConditions">
		<control type="image">
			<description>Audio Codec Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>$INFO[ListItem.AudioCodec,flagging/audio/,.png]</texture>
		</control>
	</include>
	<include name="AudioChannelsFlaggingConditions">
		<control type="image">
			<description>Audio Codec Image</description>
			<width>55</width>
			<height>35</height>
			<aspectratio align="left">keep</aspectratio>
			<texture>$INFO[ListItem.AudioChannels,flagging/audio/,.png]</texture>
		</control>
	</include>
	<include name="AspectCodecFlaggingConditions">
		<control type="image">
			<description>Aspectratio Image</description>
			<width>55</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>$INFO[ListItem.VideoAspect,flagging/aspectratio/,.png]</texture>
		</control>
	</include>
</includes>