Integrate Recording System
It would be helpful to get recordings directly from an recording system. This affects mainly the audiofile for a full recording of an Episode.
There are a lot of freedom degrees how to integrate a recording service. I try to sort out a bit:
Just fetch recording from by external (gui-based) tool
The recording itself is not generated in the LOHROthek interface. We just need a fast way to get the finalized MP3 from another system.
Level 1: Allow the paste of an URL
Just fetching an audio file from an URL could be a fast solution and reduces the "download, then upload" problem. As the current system (boje) is http based and pushes it to a public available link. Also this is the most flexible solution. Bit it has the disadvantage that the link has to get by hand and to be pasted.
Level 2: Show the latest recording generation results in the Interface
This is some additional logic to show the latest generated recordings from a (allowed, known) source. A quick link to the recording system would be also helpful and some kind of updating function, so that a recording can be taken when ready.
2.1 By file listing
In the LOHRO case the current system is exporting a page with directory file listing. We could read out that page
2.2 By API
Add a small API to the recording system (boje) would also be possible which is giving the latest recordings and some filtering options. This is fastly done, as the system is already database based and is just doing "jobs" resulting in recording links. The endpoint could be a easy concept of:
https://recordings.example.org/api/v1/latest?recording_scope=2020-11-16T04:25:03-05:00
And returns all done recordings including the timepoint += 30 minutes. This will NOT generate the recording, it just searched for existing ones and imports them.
Level 3: Integrate a full recording service
This would mean that the recording start- and end points are directly choosable in the LOHROthek fronend. Then the record is generated. But this would also mean that there is a lot of new developing work. This should be done later by starting the https://git.hack-hro.de/lohro/lohrothek/lohrocorder project or use some AURA developed stuff.
Summary
I suggest the following.
- Add an generic "fetch from http link" functionality
- Add API for results to boje
- Use API Endpoint to fetch from this system directly.
-> So 1 and 2.2