This file is indexed.

/usr/share/tellico/giantbomb2tellico.xsl is in tellico-data 3.1.2-0.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://periapsis.org/tellico/"
                version="1.0">

<!--
   ===================================================================
   Tellico XSLT file - used for importing Giant Bomb search data.

   Copyright (C) 201-2017 Robby Stephenson - <robby@periapsis.org>

   This XSLT stylesheet is designed to be used with the 'Tellico'
   application, which can be found at http://tellico-project.org

   ===================================================================
-->

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
            doctype-public="-//Robby Stephenson/DTD Tellico V11.0//EN"
            doctype-system="http://periapsis.org/tellico/dtd/v11/tellico.dtd"/>

<xsl:template match="/">
 <tellico syntaxVersion="11">
  <collection title="Search Results" type="11"> <!-- 11 is game -->
   <fields>
    <field name="_default"/>
    <field flags="0" title="Giant Bomb ID" category="General" format="4" type="1" name="giantbomb-id"/>
    <field flags="0" title="Giant Bomb Link" category="General" format="4" type="7" name="giantbomb" i18n="true"/>
    <field flags="2" title="PEGI Rating" category="General" format="4" type="3" allowed="PEGI 3;PEGI 7;PEGI 12;PEGI 16;PEGI 18" name="pegi" i18n="true"/>
   </fields>
   <!-- initial search has results/game elements, final detailed is only results, only ones with name child -->
   <xsl:apply-templates select="/response/results/game | /response/results[name]"/>
  </collection>
 </tellico>
</xsl:template>

<xsl:template match="game|results">
 <entry>
  <giantbomb>
   <xsl:value-of select="site_detail_url"/>
  </giantbomb>

  <giantbomb-id>
   <xsl:value-of select="id"/>
  </giantbomb-id>

  <title>
   <xsl:value-of select="name"/>
  </title>

  <year>
   <xsl:value-of select="expected_release_year"/>
   <xsl:if test="string-length(expected_release_year)=0">
    <xsl:value-of select="substring(original_release_date, 1, 4)"/>
   </xsl:if>
  </year>

  <description>
   <xsl:value-of select="deck"/>
  </description>

  <cover>
   <xsl:value-of select="image/thumb_url"/>
  </cover>

  <platform>
   <xsl:variable name="p" select="platforms/platform[1]/name"/>
   <!-- convert to default Tellico spelling -->
   <xsl:choose>
    <xsl:when test="$p='PlayStation 4'">
     <xsl:value-of select="'PlayStation4'"/>
    </xsl:when>
    <xsl:when test="$p='PlayStation 3'">
     <xsl:value-of select="'PlayStation3'"/>
    </xsl:when>
    <xsl:when test="$p='PlayStation 2'">
     <xsl:value-of select="'PlayStation2'"/>
    </xsl:when>
    <xsl:when test="$p='PlayStation Portable'">
     <xsl:value-of select="'PSP'"/>
    </xsl:when>
    <xsl:when test="contains($p, '360')">
     <xsl:value-of select="'Xbox 360'"/>
    </xsl:when>
    <xsl:when test="contains($p, 'Wii')">
     <xsl:value-of select="'Nintendo Wii'"/>
    </xsl:when>
    <xsl:when test="contains($p, '3DS')">
     <xsl:value-of select="'Nintendo 3DS'"/>
    </xsl:when>
    <xsl:when test="contains($p, 'Super Nintendo')">
     <xsl:value-of select="'Super Nintendo'"/>
    </xsl:when>
    <xsl:when test="$p = 'Nintendo Entertainment System'">
     <xsl:value-of select="'Nintendo'"/>
    </xsl:when>
    <xsl:when test="$p='PC'">
     <xsl:value-of select="'Windows'"/>
    </xsl:when>
    <xsl:when test="$p='Mac'">
     <xsl:value-of select="'Mac OS'"/>
    </xsl:when>
    <xsl:otherwise>
     <xsl:value-of select="$p"/>
    </xsl:otherwise>
   </xsl:choose>
  </platform>

  <genres>
   <xsl:for-each select="genres/genre">
    <genre>
     <xsl:value-of select="name"/>
    </genre>
   </xsl:for-each>
  </genres>

  <publishers>
   <xsl:for-each select="publishers/company|publishers/publisher">
    <publisher>
     <xsl:value-of select="name"/>
    </publisher>
   </xsl:for-each>
  </publishers>

  <developers>
   <xsl:for-each select="developers/company|developers/developer">
    <developer>
     <xsl:value-of select="name"/>
    </developer>
   </xsl:for-each>
  </developers>

  <xsl:for-each select="original_game_rating/game_rating">
   <xsl:if test="starts-with(name, 'ESRB')">
    <certification i18n="true">
     <!-- string starts with 'ESRB: ' -->
     <xsl:variable name="esrb" select="substring(name, 7)"/>
     <xsl:choose>
      <xsl:when test="$esrb='U'">
       <xsl:value-of select="'Unrated'"/>
      </xsl:when>
      <xsl:when test="$esrb='AO'">
       <xsl:value-of select="'Adults Only'"/>
      </xsl:when>
      <xsl:when test="$esrb='M'">
       <xsl:value-of select="'Mature'"/>
      </xsl:when>
      <xsl:when test="$esrb='T'">
       <xsl:value-of select="'Teen'"/>
      </xsl:when>
      <xsl:when test="$esrb='E10+'">
       <xsl:value-of select="'Everyone 10+'"/>
      </xsl:when>
      <xsl:when test="$esrb='EC'">
       <xsl:value-of select="'Everyone'"/>
      </xsl:when>
      <xsl:when test="$esrb='C'">
       <xsl:value-of select="'Early Childhood'"/>
      </xsl:when>
     </xsl:choose>
    </certification>
   </xsl:if>
   <xsl:if test="starts-with(name, 'PEGI')">
    <pegi i18n="true">
     <!-- string starts with 'PEGI: ' -->
     <xsl:variable name="pegi" select="substring(name, 7)"/>
     <xsl:choose>
      <xsl:when test="$pegi='3+'">
       <xsl:value-of select="'PEGI 3'"/>
      </xsl:when>
      <xsl:when test="$pegi='7+'">
       <xsl:value-of select="'PEGI 7'"/>
      </xsl:when>
      <xsl:when test="$pegi='12+'">
       <xsl:value-of select="'PEGI 12'"/>
      </xsl:when>
      <xsl:when test="$pegi='16+'">
       <xsl:value-of select="'PEGI 16'"/>
      </xsl:when>
      <xsl:when test="$pegi='18+'">
       <xsl:value-of select="'PEGI 18'"/>
      </xsl:when>
     </xsl:choose>
    </pegi>
   </xsl:if>
  </xsl:for-each>

 </entry>
</xsl:template>

</xsl:stylesheet>