Compare commits
No commits in common. "c30deeed4911f531cab49815b077a43ca579fc3d" and "a832635a21d60a276bb35ed1c6dca2c366cb7d2c" have entirely different histories.
c30deeed49
...
a832635a21
@ -15,11 +15,8 @@ public class ChatMessage : Phase2Task
|
||||
public override async Task<Tuple<TaskStatus, WorkOrder>> ActOn(WorkOrder workOrder)
|
||||
{
|
||||
await Process.Start(ChatScript,
|
||||
workOrder.data["chatmessage"] +
|
||||
(await TtrssClient.GetArticles(workOrder.articleId)).First().feed_title +
|
||||
"; " +
|
||||
(await TtrssClient.GetArticles(workOrder.articleId)).First().title
|
||||
).WaitForExitAsync();
|
||||
workOrder.data["chatmessage"] + (await TtrssClient.GetArticles(workOrder.articleId)).First().feed_title
|
||||
).WaitForExitAsync();
|
||||
return new Tuple<TaskStatus, WorkOrder>(TaskStatus.Done, workOrder);
|
||||
}
|
||||
}
|
@ -25,7 +25,6 @@ namespace ttrss_co_client.tasks
|
||||
var extensionUpstream = attachmentLink.Substring(attachmentLink.LastIndexOf('.'));
|
||||
var downloadPath = Path.Combine(workingFolder, headline.title) + extensionUpstream;
|
||||
var downloader = new HttpClient();
|
||||
downloader.DefaultRequestHeaders.UserAgent.ParseAdd("Mozilla/5.0 (compatible; AcmeInc/1.0)");
|
||||
sw.Start();
|
||||
var dlResult = (await downloader.GetAsync(attachmentLink));
|
||||
File.WriteAllBytes(downloadPath, await dlResult.Content.ReadAsByteArrayAsync());
|
||||
|
Loading…
Reference in New Issue
Block a user