From b38a639f4885c5ebfe8bb70d4a96ab46ce127718 Mon Sep 17 00:00:00 2001 From: Sergey Krumin Date: Wed, 27 Sep 2023 12:23:04 +0300 Subject: [PATCH] add one or more spaces before duration --- Sources/M3UKit/PlaylistParser.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/M3UKit/PlaylistParser.swift b/Sources/M3UKit/PlaylistParser.swift index 39eae9c..a6756dc 100644 --- a/Sources/M3UKit/PlaylistParser.swift +++ b/Sources/M3UKit/PlaylistParser.swift @@ -317,7 +317,7 @@ public final class PlaylistParser { // MARK: - Regex - internal let durationRegex: RegularExpression = #"#EXTINF:(\-*\d+)"# + internal let durationRegex: RegularExpression = #"#EXTINF:\s*(\-*\d+)"# internal let nameRegex: RegularExpression = #".*,(.+?)$"# internal let mediaKindMoviesRegex: RegularExpression = #"\/movie\/"#