Skip to content

Commit

Permalink
fix: omit media names starting with 'sample'
Browse files Browse the repository at this point in the history
  • Loading branch information
tympanix committed Nov 19, 2020
1 parent d4ec455 commit 0f471c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions media/mediautil.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ func IsSample(m types.Media) bool {
return true
}
}
if strings.HasPrefix(strings.ToLower(m.String()), "sample") {
return true
}
return false
}

Expand Down

0 comments on commit 0f471c7

Please sign in to comment.