refactor(airtime_analyzer): rename to libretime-analyzer and make entrypoint pythonic

This commit is contained in:
Lucas Bickel 2020-12-30 13:17:50 +00:00 committed by GitHub
parent b6d22c94a1
commit e21abf1bf1
15 changed files with 155 additions and 170 deletions

View file

@ -916,14 +916,14 @@ SQL;
* on the local disk (like /tmp) over to Airtime's "stor" directory,
* which is where all ingested music/media live.
*
* This is done in PHP here on the web server rather than in airtime_analyzer because
* the airtime_analyzer might be running on a different physical computer than the web server,
* This is done in PHP here on the web server rather than in libretime-analyzer because
* the libretime-analyzer might be running on a different physical computer than the web server,
* and it probably won't have access to the web server's /tmp folder. The stor/organize directory
* is, however, both accessible to the machines running airtime_analyzer and the web server
* is, however, both accessible to the machines running libretime-analyzer and the web server
* on Airtime Pro.
*
* The file is actually copied to "stor/organize", which is a staging directory where files go
* before they're processed by airtime_analyzer, which then moves them to "stor/imported" in the final
* before they're processed by libretime-analyzer, which then moves them to "stor/imported" in the final
* step.
*
* @param string $tempFilePath

View file

@ -33,10 +33,10 @@ class Application_Service_MediaService
}
//Copy the temporary file over to the "organize" folder so that it's off our webserver
//and accessible by airtime_analyzer which could be running on a different machine.
//and accessible by libretime-analyzer which could be running on a different machine.
$newTempFilePath = Application_Model_StoredFile::moveFileToStor($filePath, $originalFilename, $copyFile);
//Dispatch a message to airtime_analyzer through RabbitMQ,
//Dispatch a message to libretime-analyzer through RabbitMQ,
//notifying it that there's a new upload to process!
$storageBackend = new ProxyStorageBackend($CC_CONFIG["current_backend"]);
Application_Model_RabbitMq::SendMessageToAnalyzer($newTempFilePath,