summaryrefslogtreecommitdiff
path: root/templates/lobby_html.jinja
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2018-01-06 21:18:09 +0100
committerAndré Glüpker <git@wgmd.de>2018-01-06 21:18:09 +0100
commitfd3e38f818d1cf29fb71820afa0a65e61a875a20 (patch)
treec62afebf8f39d9dbfa4287e3f16f5f1a483cbf04 /templates/lobby_html.jinja
parentc9bad924c7c3bc91cdf220fbc1507d1812d504f3 (diff)
downloadsteam-fd3e38f818d1cf29fb71820afa0a65e61a875a20.tar.gz
steam-fd3e38f818d1cf29fb71820afa0a65e61a875a20.tar.bz2
steam-fd3e38f818d1cf29fb71820afa0a65e61a875a20.zip
Remove gameextrainfo
Steam API does not provide this anymore. We now fetch the gamelist ourself and use gameid.
Diffstat (limited to 'templates/lobby_html.jinja')
-rw-r--r--templates/lobby_html.jinja8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/lobby_html.jinja b/templates/lobby_html.jinja
index 54d5037..a9598bc 100644
--- a/templates/lobby_html.jinja
+++ b/templates/lobby_html.jinja
@@ -40,7 +40,7 @@
<div class="interna stats">
{# Ingame (Steam), Ingame (Nonsteam), Offline/Other #}
{% if profile['gameid'] %}
- <span class="ingame"><a href="http://store.steampowered.com/app/{{ profile['gameid'] }}" class="ingame">{{ profile['gameextrainfo'] or 'N/A' }}
+ <span class="ingame"><a href="http://store.steampowered.com/app/{{ profile['gameid'] }}" class="ingame">{{ gamelist[profile['gameid']] or 'N/A' }}
{% if profile['gameserverip'] not in serverinfo %}
{# No serverinfo -> Display game logo #}
<img src="http://cdn.akamai.steamstatic.com/steam/apps/{{ profile['gameid'] }}/header.jpg" class="gameimage" />
@@ -60,7 +60,7 @@
{% set mapname = serverinfo[profile['gameserverip']]['map'] %}
{% set players = serverinfo[profile['gameserverip']]['players'] %}
{% set playersmax = serverinfo[profile['gameserverip']]['playersmax'] %}
- {% if game != profile['gameextrainfo'] %}
+ {% if game != gamelist[profile['gameid']] %}
<span class="gamename">{{ game }}</span><br />
{% endif %}
{{ servername }}<br />
@@ -72,8 +72,8 @@
<a href="#" onclick="javascript:copyToClipboard('[url]steam://connect/{{ profile['gameserverip'] }}[/url]'); return false;" class="joinbutton">Copy link</a>
</div>
{% endif %}
- {% elif profile['gameextrainfo'] %}
- <span class="ingameother">{{ profile['gameextrainfo'] }}</span><br />
+ {% elif gamelist[profile['gameid']] %}
+ <span class="ingameother">{{ gamelist[profile['gameid']] }}</span><br />
<span class="info">(non-steam)</span>
{% else %}
{% if profile['personastate'] == 0 %}