await resp text

This commit is contained in:
Roy Olav Purser 2021-05-14 17:36:40 +02:00
parent ec3e917d34
commit 1b86fa591d
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -246,7 +246,7 @@ async def rewrite(current, proxy):
logger.info(e) logger.info(e)
if text is not None: if text is not None:
links = [] links = []
for line in resp.text.splitlines(): for line in text.splitlines():
if line.startswith("#EXT-X-KEY:METHOD="): if line.startswith("#EXT-X-KEY:METHOD="):
matches = re.findall(r'(?<=URI=").+(?=")', line) matches = re.findall(r'(?<=URI=").+(?=")', line)
if len(matches) == 1: if len(matches) == 1: