1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud_admin.git synced 2025-03-09 23:38:52 +00:00

Catchups without output

This commit is contained in:
topilski 2020-02-11 09:58:41 -05:00
parent a3b7919c55
commit 9cbf92d939
4 changed files with 2 additions and 6 deletions

@ -1 +1 @@
Subproject commit 46895ee502b1873ca74f5ca274d1bbf81c035460 Subproject commit 1a9515a0e359ab708d966dee3a0fb8733c6ba4b9

View file

@ -73,8 +73,6 @@ class ServiceView(FlaskView):
oid=stream.output.urls[0].id) oid=stream.output.urls[0].id)
elif stream_type == constants.StreamType.CATCHUP: elif stream_type == constants.StreamType.CATCHUP:
stream = server.make_catchup_stream() stream = server.make_catchup_stream()
stream.output.urls[0] = stream.generate_http_link(constants.HlsType.HLS_PULL,
oid=stream.output.urls[0].id)
else: else:
stream = server.make_test_life_stream() stream = server.make_test_life_stream()

View file

@ -269,7 +269,7 @@ class StreamView(FlaskView):
if server: if server:
stream = server.make_catchup_stream() stream = server.make_catchup_stream()
form = CatchupStreamForm(obj=stream) form = CatchupStreamForm(obj=stream)
if request.method == 'POST' and form.validate_on_submit(): if request.method == 'POST': # FIXME form.validate_on_submit()
new_entry = form.update_entry(stream) new_entry = form.update_entry(stream)
new_entry.save() new_entry.save()
server.add_stream(new_entry) server.add_stream(new_entry)

View file

@ -54,8 +54,6 @@
<br> <br>
{{ render_bootstrap_form(form.input) }} {{ render_bootstrap_form(form.input) }}
<br> <br>
{{ render_bootstrap_form(form.output) }}
<br>
{{ render_bootstrap_form(form.timeshift_chunk_duration) }} {{ render_bootstrap_form(form.timeshift_chunk_duration) }}
<br> <br>
{{ render_bootstrap_form(form.timeshift_chunk_life_time) }} {{ render_bootstrap_form(form.timeshift_chunk_life_time) }}