Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(legacy): add current date macro to string block criteria #3013

Merged
merged 9 commits into from
Jun 22, 2024

Conversation

dakriy
Copy link
Contributor

@dakriy dakriy commented May 15, 2024

Description

It is useful to be able to automatically filter tracks to a certain date or day when scheduling tracks for playback. This adds the ability to do just that in any string filter with the date{format} macro.

This is a new feature

I have updated the documentation to reflect these changes:

Testing Notes

What I did:

I TDD'd the resolveDate function in a standalone php playground. I then spun up a local docker stack for libretime and uploaded a few tracks with different dates in one of the metadata tags. I verified that the date macro behaves as expected and filters to tracks using todays date.

How you can replicate my testing:

Upload some tracks with date in one of the metadata tags and play around with any string filter.

Links

Closes: #3012

@dakriy dakriy changed the title Add current date filter feat: Add current date filter May 15, 2024
@dakriy dakriy changed the title feat: Add current date filter feat: add current date macro to string block criteria May 15, 2024
@dakriy dakriy changed the title feat: add current date macro to string block criteria feat(legacy): add current date macro to string block criteria May 15, 2024
@paddatrapper paddatrapper requested a review from jooola May 22, 2024 16:34
@dakriy dakriy requested a review from jooola June 11, 2024 23:11
@jooola
Copy link
Contributor

jooola commented Jun 22, 2024

Great! Thanks for the contribution!

@jooola jooola merged commit 451652b into libretime:main Jun 22, 2024
16 checks passed
jooola pushed a commit that referenced this pull request Jun 22, 2024
🤖 I have created a release *beep* *boop*
---


## [4.2.0](4.1.0...4.2.0)
(2024-06-22)


### Features

* **legacy:** add current date macro to string block criteria
([#3013](#3013))
([451652b](451652b))
* **legacy:** add filename block criteria
([#3015](#3015))
([4642b6c](4642b6c))


### Bug Fixes

* pin pip version to <24.1 to allow installing pytz (celery)
([#3043](#3043))
([646bc81](646bc81))
* playlist allocates inaccurate time to smartblocks
([#3026](#3026))
([2b43e51](2b43e51))


### Performance Improvements

* optimize the api image health check
([#3038](#3038))
([d99d6e1](d99d6e1))
* optimize the rabbitmq health check
([#3037](#3037))
([9684214](9684214))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

Add ability to filter tracks to todays date
2 participants