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\/"#