Hello,
First of all, I’d like to stress that I am very happy with mAirList and I am impressed by all features that come out of the box and even more by all functionality you can add yourself via scripting.
We’re currently in the process of replacing Carmen by mAirList. To accomplish this we have to come up with mAirList solutions for specific Carmen functionality that we are using.
One of the features that Carmen provides is automatically record broadcasts and repeat the broadcasts at a later time without explicitly specifying a date. All broadcasted shows are automatically recorded and if you want to broadcast the recording again of a show that was broadcasted last Friday at 8 PM, then you specify just that: ‘Recording of Friday 12 PM’.
Suppose you want to broadcast the
show again each Friday at 3 PM. In this case the recording of the 12 PM broadcast, earlier that day, is broadcasted again. On the other hand if you want to broadcast the show again at say 10 AM, then the broadcast of 12 PM of last weeks Friday is broadcasted again (since 12 PM is not reached on this Friday yet).
We want to mimic this behaviour in mAirList, because we have a lot of recording whichs have to be
broadcasted again and we don’t want to change the scheduled date manually each week.
The recording part was quite easy. We’ve created a database item ‘START RECORDING’ and assigned
a start action ‘Start Recording’ to it with output file name: V:\AirCheck\recording-%Y-%M-%D-%h.mp3’.
We did something similar for ‘Stop recording’ and added both items to the playlists of the shows we want to record. We then added this to our hour template at voila. This is working, like a charm.
However playing back without supplying a fixed date or data pattern, is not that easy.
Remember that we want to use a command like ‘Recording of Friday 12 PM’.
This is what we’ve came up with so far… We’ve created an Automatic File Container with title ‘Recording of Friday 20 uur’. We supplied the folder ‘V:\AirCheck’ as Source Folder and we left Filename Pattern empty, since we can only supply actual dates or date patterns there. Then we created a scipt ‘determine_date_of_last_week.mls’ which determines the correct date and time by parsing and processing strings like ‘Recording of Friday 12 PM’. This script comes up with a file name like ‘recording-2025-02-14-12.mp3’ and we added an action on start to the automatic file container (AFC) which would execute this script when the AFC item is started.
So far so good; this is all working fine. Now our idea was filling the filename pattern field of the AFC
with this determined filename. We assume that the AFC will pick the correct file in that case, because the AFC is evaluated after the start script has executed. Unfortunately we are not able to fill the Filename pattern, since the AutomaticFileContainer interface is not availalable for scripting.
I have a couple of questions…
- Is my assumption right and should it work like a described, once the IAutomaticFileContainer interface is availabe?
- Can I accomplish this in another way. Perhaps I’m missing something?
- Will the IAutomaticFileContainer interface be made available any time soon, for scripting?
Please advise and I hope you can come up with a solution for this problem.
Kind regards,
Marco