Fixed invalid local file url

This commit is contained in:
Fergal Moran
2017-11-12 21:41:17 +00:00
parent 6bbefb0803
commit 934cdf4c86
2 changed files with 12 additions and 4 deletions

View File

@@ -46,9 +46,12 @@ namespace PodNoms.Api.Controllers
{
try
{
var infoJobId = BackgroundJob.Enqueue<IUrlProcessService>(service => service.GetInformation(entry.Id));
var extract = BackgroundJob.ContinueWith<IUrlProcessService>(infoJobId, service => service.DownloadAudio(entry.Id));
var upload = BackgroundJob.ContinueWith<IAudioUploadProcessService>(extract, service => service.UploadAudio(entry.Id, entry.AudioUrl));
var infoJobId = BackgroundJob.Enqueue<IUrlProcessService>(
service => service.GetInformation(entry.Id));
var extract = BackgroundJob.ContinueWith<IUrlProcessService>(
infoJobId, service => service.DownloadAudio(entry.Id));
var upload = BackgroundJob.ContinueWith<IAudioUploadProcessService>(
extract, service => service.UploadAudio(entry.Id, entry.AudioUrl));
}
catch (InvalidOperationException ex)
{