Skip to content

Conversation

@jusleg
Copy link
Contributor

@jusleg jusleg commented May 4, 2025

Hey 👋 I just discovered this repo thanks to @martelogan. It's great and saved me a lot of time trying to figure out how to make the remux work.

When trying to setup the server based on the readme, I tried to remove the filters configuration and expected it to return all tracks but no tracks were returned. It looks like the track building part assumed the presence of filters. I added a default in the config to set {Value: ".*", Type: "name"} when trying to compile the regexes and no filters are provided. This will return all the tracks.

While updating the tests, I also updated the filter types in the valid configuration to match the filter types expected in provider.go

The documentation of the yaml config indicates that the filter list is optinal.
If the list was not provided, no tracks were returned as we didn't append the
track since there was no match. A default of name with ".*" is now set if not
other filter is present. The tests were updated to cover the new behaviour.
Additionally, the filter types were updated in the tests to match the supported
filters in provider.go.
@jusleg jusleg changed the title Support optional filter in yaml config Support optional filters in yaml config May 4, 2025
@csfrancis csfrancis merged commit af76789 into csfrancis:main May 4, 2025
1 check passed
@csfrancis
Copy link
Owner

Thanks for the contribution!

@jusleg jusleg deleted the support-optional-filters branch May 5, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants