Julio Biason
2 years ago
3 changed files with 39 additions and 1 deletions
@ -0,0 +1,36 @@
|
||||
# Music Aggregator |
||||
|
||||
Music Aggregator is a Capturer of sorts, but uses information coming from other |
||||
services to produce its result. |
||||
|
||||
## Configuration |
||||
|
||||
Requires the IP and PORT of the Store, and a list of musical Capturers that are |
||||
running. |
||||
|
||||
## Internals |
||||
|
||||
The service must receive Artist Name, Album Name and Song Title. It aggregates |
||||
information on all musical services and produces a count of each played song. |
||||
|
||||
We keep: |
||||
|
||||
- `artist`: Text. |
||||
- `album`: Text. |
||||
- `song`: Text. |
||||
- `count`: int, increases on each song send. |
||||
|
||||
Also, we need to keep a list of capturers we receive per day: |
||||
|
||||
- `day`: Day being generated. |
||||
- `capturer`: Capturer name. |
||||
|
||||
The output is not produced till all musical Capturers send their information. |
||||
|
||||
## Output |
||||
|
||||
``` |
||||
{% for song in todays_songs %} |
||||
{{ song.name }}, by {{ song.artist }} played {{ song.count }} times. |
||||
{% endfor %} |
||||
``` |
Loading…
Reference in new issue