diff --git a/tasks/PodcastifyAttachment.cs b/tasks/PodcastifyAttachment.cs index 0a07d11..bc8bfc1 100644 --- a/tasks/PodcastifyAttachment.cs +++ b/tasks/PodcastifyAttachment.cs @@ -55,24 +55,21 @@ namespace ttrss_co_client.tasks var toReturn = new WorkOrder() { - articleId = headline.id,//<-- that way later tasks can update the note + articleId = headline.id, Phase2TaskList = new Dictionary(), data = new Dictionary(), guid = Guid.Parse(myGuid) }; toReturn.data["path"] = downloadPath; toReturn.Phase2TaskList[1] = "filemovePublish"; - toReturn.data["publish-target"] = $"{Conf.OnDoneCopy}/Podcasts/{podcastTitle}/{Path.GetFileName(downloadPath)}"; + toReturn.data["publish-target"] = $"{Conf.OnDoneCopy}/Podcasts/{podcastTitle}/"; if(extensionUpstream != ".mp3") { Console.WriteLine($"{headline.title} needs conversion task."); toReturn.Phase2TaskList[0] = "convert"; - toReturn.data["conversion-target"] = downloadPath.Substring(0, downloadPath.LastIndexOf('.')) + ".mp3"; - toReturn.data["publish-target"] = $"{Conf.OnDoneCopy}/Podcasts/{podcastTitle}/{Path.GetFileName(toReturn.data["conversion-target"])}"; + toReturn.data["conversion-target"] = ".mp3"; } - - return toReturn; } }