From 5b3315d812ab7dc02b9b033daa5cdd8540865f85 Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 7 Aug 2024 20:04:28 -0400 Subject: [PATCH] fkn idk --- Program.cs | 20 ++++++++++++++++---- appsettings.json | 6 +++++- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/Program.cs b/Program.cs index dfdc0f2..a960c0b 100644 --- a/Program.cs +++ b/Program.cs @@ -148,13 +148,16 @@ namespace placeholdervo var lines = File.ReadAllLines(scriptPath) .Append("\n").Append("\n"); var primaryVOLines = new List(); + var titlecardUnprocessed = new List(); var titlecardLines = new List(); var directiveLines = new List(); + var altVOLines = new List(); + var noteLines = new List(); foreach(var l in lines) { if(l.StartsWith('#')) { - titlecardLines.Add(l); + titlecardUnprocessed.Add(l); } else if (l.StartsWith('[')) { @@ -172,7 +175,7 @@ namespace placeholdervo File.WriteAllLines(scriptStripped, primaryVOLines); var titleLevels = new List(){0}; var titleIncrementDepth = 0; - foreach(var l in titlecardLines) + foreach(var l in titlecardUnprocessed) { titleIncrementDepth = 1; var thisString = l; @@ -196,6 +199,7 @@ namespace placeholdervo TitleCardText = string.Join('.', titleLevels[1..]) + ": " + TitleCardText; } Console.WriteLine($"title card: {TitleCardText}"); + titlecardLines.Add(TitleCardText); //tc command } else @@ -221,7 +225,7 @@ namespace placeholdervo if (Uri.TryCreate(thisLine, UriKind.Absolute, out Uri asUri) && (asUri.Scheme == Uri.UriSchemeHttp || asUri.Scheme == Uri.UriSchemeHttps)) { - Console.WriteLine($"uri: {asUri}. ship off to yt-dlp or project Ose"); + Console.WriteLine($"uri: {asUri}. ship off to yt-dlp or project Ose?"); } else { @@ -237,15 +241,23 @@ namespace placeholdervo if(directiveName == "note") { //note command + noteLines.Add(parameterText); Console.WriteLine($"on screen note: {parameterText}"); } else { - //alt va command + altVOLines.Add(parameterText); Console.WriteLine($"alt VA: {parameterText}"); } } } + //alt va command with altVOLines + File.WriteAllLines($"{scriptBasename}-altVO.txt", altVOLines); + + // execute them all + Task.Run(OfflineStuff); + Task.Run(ApiCalls); + Task.Run(FilePickups); // cancelSource.Cancel(); // Console.WriteLine("http client \"cancelled\"."); diff --git a/appsettings.json b/appsettings.json index 6f2cc32..967565d 100644 --- a/appsettings.json +++ b/appsettings.json @@ -1,4 +1,8 @@ { "speech_service": "http://eligos.lan:5400", - "sync_dropoff": "/home/adam/Sync/eligos documents/" + "sync_dropoff": "/home/adam/Sync/eligos documents/", + "titlecard_command": "/home/adam/Desktop/beefhaving/_meta/title card/titlecard.sh", + "note_command": "/home/adam/Desktop/beefhaving/_meta/on screen note/note.sh", + "titlecards_dest": "./notes", + "notes_dest": "./notes" } \ No newline at end of file