fix: quirk with rtmp auth when pushed from ome

This commit is contained in:
Jan Koppe 2021-10-31 20:16:30 +01:00
parent cd2a2af948
commit 0d9a60c6ff
Signed by: thunfisch
GPG Key ID: BE935B0735A2129B
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ def callback_srs(request):
try: try:
app_name = json_data['app'] app_name = json_data['app']
# QUIRK this is a weird bug when pushing from OME to SRS. wtf.
# for some reason srs interprets the incoming app as app/stream, and passes this on to portier.
# only keep the stuff infront of a (potential) slash, and throw away the rest. problem solved^tm
app_name = app_name.split('/')[0]
# ENDQUIRK
stream_name = json_data['stream'] stream_name = json_data['stream']
param = json_data['param'] param = json_data['param']
except KeyError: except KeyError: