From 957b7c5ac72dde1921ee6c64d6bbe811489b0944 Mon Sep 17 00:00:00 2001 From: jb-alvarado <jb@pixelcrusher.de> Date: Thu, 2 Jul 2020 22:20:15 +0200 Subject: [PATCH] we have to check a list, not a string --- ffplayout/output/hls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffplayout/output/hls.py b/ffplayout/output/hls.py index 765397cf..50638658 100644 --- a/ffplayout/output/hls.py +++ b/ffplayout/output/hls.py @@ -12,7 +12,7 @@ from ffplayout.utils import (_ff, _log, _playlist, _playout, def clean_ts(): - playlists = re.findall(r'[/\w.]+m3u8', _playout.hls_output) + playlists = [p for p in _playout.hls_output if 'm3u8' in p] for playlist in playlists: test_num = 0