From 1b86fa591d06535c62afb1539f9d7e7e47d1a996 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 14 May 2021 17:36:40 +0200 Subject: [PATCH] await resp text --- stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.py b/stream.py index c4bafbb..1584a1a 100755 --- a/stream.py +++ b/stream.py @@ -246,7 +246,7 @@ async def rewrite(current, proxy): logger.info(e) if text is not None: links = [] - for line in resp.text.splitlines(): + for line in text.splitlines(): if line.startswith("#EXT-X-KEY:METHOD="): matches = re.findall(r'(?<=URI=").+(?=")', line) if len(matches) == 1: