Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f694fe7

Browse files
authored
stream.hls: remove .ts ext from ignore_names regex
1 parent b224e16 commit f694fe7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • src/streamlink/stream/hls

src/streamlink/stream/hls/hls.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ def __init__(self, *args, **kwargs) -> None:
9696
ignore_names = {*options.get("hls-segment-ignore-names")}
9797
if ignore_names:
9898
segments = "|".join(map(re.escape, ignore_names))
99-
# noinspection RegExpUnnecessaryNonCapturingGroup
100-
self.ignore_names = re.compile(rf"(?:{segments})\.ts", re.IGNORECASE)
99+
self.ignore_names = re.compile(segments, re.IGNORECASE)
101100

102101
@staticmethod
103102
def num_to_iv(n: int) -> bytes:

0 commit comments

Comments
 (0)