Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion multitwitch/templates/web/home.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $(window).resize(function() {
</ul>
{% for stream in unique_streams %}
<div id="chat-{{ stream|e }}" class="stream_chat">
<iframe frameborder="0" scrolling="no" id="chat-{{ stream|e }}-embed" src="https://twitch.tv/embed/{{ stream|e }}/chat?parent=multitwitch.tv&amp;parent=www.multitwitch.tv" height="100%" width="100%"></iframe>
<iframe frameborder="0" scrolling="no" id="chat-{{ stream|e }}-embed" src="https://twitch.tv/embed/{{ stream|e }}/chat?parent=multitwitch.tv&amp;parent=www.multitwitch.tv{% if darkmode %}&darkpopout{% endif %}" height="100%" width="100%"></iframe>
</div>
{% endfor %}
</div>
Expand Down
4 changes: 3 additions & 1 deletion multitwitch/views/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ class WebView:
@web(template="web/home.tmpl")
def home(request):
streams = request.matchdict['streams']
darkmode = 'darkmode' in request.params
uniq_streams = []
for s in streams:
if s not in uniq_streams:
uniq_streams.append(s)
return {'project' : 'multitwitch',
'streams' : streams,
'unique_streams' : uniq_streams,
'nstreams' : len(streams)}
'nstreams' : len(streams),
'darkmode' : darkmode}

@staticmethod
def favicon(request):
Expand Down