fethica / FRadioPlayer

A simple radio player framework for iOS, macOS, tvOS.
https://fethica.github.io/FRadioPlayer/
MIT License
283 stars 59 forks source link

Enhance metadata validators #40

Closed nicolassrod closed 4 years ago

nicolassrod commented 4 years ago

Some radio stations send metadata in special format: Awolnation - The Best (2019) Meg Myers - Running Up That Hill (Radio Edit) [2019] David Bowie - Space Oddity(CD)

And when the FRadioAPI.getArtwork wants to get the artwork it response nothing, but with this implementation I update regex validator to delete no necessary information. It deletes all inside in () and []

Awolnation - The Best Meg Myers - Running Up That Hill David Bowie - Space Oddity

It also clean metadata on timedMetadataDidChange in FRadioPlayer

fethica commented 4 years ago

@nicolassrod thanks for PR 👍