diff --git a/Freedomain Video Uploader.ahk b/Freedomain Video Uploader.ahk index 963b797..ae1f3b6 100644 --- a/Freedomain Video Uploader.ahk +++ b/Freedomain Video Uploader.ahk @@ -277,7 +277,7 @@ Loop, files, %VideoFolderDir%\*.*, F ; loop through the files in the director FileRead, VideoTitle, %A_LoopFileFullPath% LBRYURLSlug := VideoTitle OriginalVideoTitle := VideoTitle - OriginalLBRYURLSlug := LBRYURLSlug + ; OriginalLBRYURLSlug := LBRYURLSlug } if(FileNameWExt = "body.txt"){ @@ -752,6 +752,9 @@ JSVideoTitle := FormatTextToJSText(VideoTitle) JSVideoDescription := FormatTextToJSText(VideoDescription) JSVideoSummary := FormatTextToJSText(VideoSummary) +Message = JSVideoSummary:`n %JSVideoSummary% +SaveOrPostProgress(Message:=Message,PostType:=",ErrorLoggingTextFile") + ; -------------------------------/Log Info To Text------------------------------- @@ -919,7 +922,6 @@ if(PodcastNumber = "") { gosub, SetGUIVariables gosub, SetAndShowResultsGUI -; #include %A_scriptDir%\Modules\GUI-Results-Window.ahk SaveCurrentChromeVersionToIniFile() diff --git a/Modules/GUI-Results-Window.ahk b/Modules/GUI-Results-Window.ahk deleted file mode 100644 index e69de29..0000000 diff --git a/Modules/Locals-Upload.ahk b/Modules/Locals-Upload.ahk index 9d6b715..d5e91d5 100644 --- a/Modules/Locals-Upload.ahk +++ b/Modules/Locals-Upload.ahk @@ -122,15 +122,17 @@ if(Status){ ; make sure the "Notify Users" checkbox is selected Xpath = (//input[contains(@name,'is_do_promo')])[1] -Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=1,SleepLength:=1000) + try, Status := driver.findelementbyxpath(Xpath).isSelected() -if(Status = "0"){ - Message = Failed to Check ON the Notify Users Checkbox - SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging") +if(Status = 0){ + Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=1,SleepLength:=1000) + try, Status := driver.findelementbyxpath(Xpath).isSelected() + if(Status = "0"){ + Message = Failed to Check ON the Notify Users Checkbox + SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging") + } } - - ; check if the "Auto Submit Post" checkbox is checked, and if not check it js = return document.querySelector("#autosubmit_enabled").checked; try AutoSubmitstatus := driver.executeScript(js) diff --git a/Modules/Podcast-Upload.ahk b/Modules/Podcast-Upload.ahk index ba0f11b..b4e7061 100644 --- a/Modules/Podcast-Upload.ahk +++ b/Modules/Podcast-Upload.ahk @@ -247,9 +247,11 @@ SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile") Xpath = //textarea[@id='description'] Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000) -; Input Description +; Format text JS JSVideoDescription := FormatTextToJSText(VideoDescription) +JSVideoSummary := FormatTextToJSText(VideoSummary) +; Input Description js = document.getElementById('description').value = "%JSVideoDescription%"; try driver.executeScript(js) @@ -331,7 +333,7 @@ SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile") ; Change GUI button from "Upload Podcast" GuiControl,,UploadPodcast, Podcast Uploaded -sleep, 5000 +; sleep, 5000 CurrentSite := ToolTip