From d2586b70676c8bd0a9603fc73ac2867d8d18ab79 Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Tue, 15 Oct 2024 09:36:07 +1100 Subject: [PATCH] Don't access match group using __getitem__ to restore Python 2 compatibility --- resources/lib/youtube_plugin/youtube/helper/stream_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/youtube_plugin/youtube/helper/stream_info.py b/resources/lib/youtube_plugin/youtube/helper/stream_info.py index 09d658e70..0be52fae2 100644 --- a/resources/lib/youtube_plugin/youtube/helper/stream_info.py +++ b/resources/lib/youtube_plugin/youtube/helper/stream_info.py @@ -1087,9 +1087,10 @@ def _update_from_hls(self, playback_stats=playback_stats, ) if yt_format is None: + stream_info = redact_ip(match.group(1)) self._context.log_debug('Unknown itag: {itag}\n{stream}' .format(itag=itag, - stream=redact_ip(match[0]))) + stream=stream_info)) if (not yt_format or (yt_format.get('hls/video') and not yt_format.get('hls/audio'))):