Recording functions re-enabled. Mostly there but need some help

Being able to record (and rebroadcast) is something that we’ve been needing for a long time and has stopped us from switching from Airtime to Libretime. I know a lot of others are keen to see this functionality.

I had a go at re-implementing these functions in Libretime over the holidays and made some progress - a lot of the code is still intact and I was able to get the recording part working well using Liquidsoap to record from the main source (which is always there and no sound card is required). The recordings are placed in the /app/recordings folder with all the metadata intact.

However, I really suck at Python and am floundering on the next step which is to get the recordings imported automatically as tracks (and rescheduled if required). It should be straightforward for someone who knows what they are doing… Again I think a lot of the code is still there.

Is there any chance someone could have a look at this? @joola @paddatrapper? My branch here:

I’d be more than happy to do testing and tidyups!

Hi @dmandan

Great that you try to tackle this one.

If you are ok with it, I think opening a Pull Request against the main branch will help us to give you feedback about your changes.

I check the code and I think some things must be cleaned up, and some things must be fully tested before going forward (e.g. passing json formatted object to the liquidsoap interactive vars, might require some escaping, also maybe we want to use a differetn method).

But I have other suggestions, but I’d rather continue this on Github.

Cheers

Jo

Hi @joola

Thanks for your feedback - I’ll tidy up what I have working and make a PR in as you suggest,

Regards
Dan