remove old code

This commit is contained in:
deflax 2021-10-12 17:15:12 +00:00
parent ee82c7082c
commit 97e345d888
3 changed files with 3 additions and 10 deletions

View file

@ -26,8 +26,8 @@ def show_player(appname, hlsindex):
playerTemplate = '%s/player.html.j2' % zomstream.configuration['template_folder']
page = flask.render_template(
playerTemplate,
hlsindex=hlsindex,
appname=appname,
hlsindex=hlsindex,
configuration=zomstream.configuration
)
return page

View file

@ -27,26 +27,19 @@
<th></th>
</tr>
<tr>
<td>RTMP substream {{ item[2] }}</td>
<td>RTMP substream }}</td>
<td><em class="url">rtmp://{{ configuration["rtmp_base"] }}/{{ item[0] }}/{{ item[2] }}</em></td>
<td class="btn"><a href="rtmp://{{ configuration['rtmp_base'] }}/{{ item[0] }}/{{ item[2] }}" class="btn btn-red">&#9654;<br/>RTMP</a></td>
</tr>
<tr>
<td>HLS m3u8</td>
<td><em class="url">{{ configuration['web_proto'] }}://{{ configuration['base_url'] }}/hls/{{ item[1] }}/index.m3u8</em></td>
<!-- <td class="btn"><a href="{{ configuration['web_proto'] }}://{{ configuration['base_url'] }}/player/{{ item[1] }}" class="btn btn-green">&#9654;<br/>HLS.js</a></td> -->
<td class="btn"><a href="{{ url_for('frontend.show_player', appname=item[0], hlsindex=item[1]) }}" class="btn btn-green">&#9654;<br/>HLS.js</a></td>
</tr>
</tbody>
</table>
</article>
{% endfor %}
<a href="{{ url_for('frontend.show_player', streamname=item[1], appname=item[0]) }}"
class="btn-large btn-green">
&#9655; Web Player
</a>
</main>
<footer>
{{ configuration["footer"] }}

View file

@ -41,7 +41,7 @@ class Zomstream:
name = stream.find('name')
rate = stream.find('bw_video')
streamname = name.text
hlsindex = streamname.split('_'[0]
hlsindex = streamname.split('_')[0]
if rate.text != "0":
self.streamnames.append( [appname.text, hlsindex, streamname] )