Skip to content

Commit 2535bec

Browse files
authored
[DASH] Remove split string warning
1 parent e5df47a commit 2535bec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

StreamingCommunity/source/N_m3u8/parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ def parse_line(self, line: str) -> Tuple[bool, bool]:
3030

3131
if 'WARN' in line.upper():
3232
self.warnings.append(line)
33-
if self.show_warnings and 'Response' in line:
34-
console.print(f"N_M3U8[yellow]{line.split('WARN',1)[1].strip()}")
33+
if self.show_warnings and 'Response' in str(line):
34+
console.print(f"N_M3U8[yellow]{line}")
3535

3636
if 'ERROR' in line.upper():
3737
self.errors.append(line)
3838
if self.show_errors:
39-
console.print(f"N_M3U8[red]{line.split('ERROR',1)[1].strip()}")
39+
console.print(f"N_M3U8[red] {line}")
4040

4141
return 'WARN' in line.upper(), 'ERROR' in line.upper()
4242

0 commit comments

Comments
 (0)