Skip to content

Commit

Permalink
add one or more spaces before duration (omaralbeik#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
obhserge authored Oct 2, 2023
1 parent a84b4d7 commit 60410c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/M3UKit/PlaylistParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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\/"#
Expand Down

0 comments on commit 60410c3

Please sign in to comment.