added double check for Locals Notify Users checkbox

pull/49/head
Yuriy 5 months ago
parent 9f1388160c
commit be75660548

@ -277,7 +277,7 @@ Loop, files, %VideoFolderDir%\*.*, F ; loop through the files in the director
FileRead, VideoTitle, %A_LoopFileFullPath% FileRead, VideoTitle, %A_LoopFileFullPath%
LBRYURLSlug := VideoTitle LBRYURLSlug := VideoTitle
OriginalVideoTitle := VideoTitle OriginalVideoTitle := VideoTitle
OriginalLBRYURLSlug := LBRYURLSlug ; OriginalLBRYURLSlug := LBRYURLSlug
} }
if(FileNameWExt = "body.txt"){ if(FileNameWExt = "body.txt"){
@ -752,6 +752,9 @@ JSVideoTitle := FormatTextToJSText(VideoTitle)
JSVideoDescription := FormatTextToJSText(VideoDescription) JSVideoDescription := FormatTextToJSText(VideoDescription)
JSVideoSummary := FormatTextToJSText(VideoSummary) JSVideoSummary := FormatTextToJSText(VideoSummary)
Message = JSVideoSummary:`n %JSVideoSummary%
SaveOrPostProgress(Message:=Message,PostType:=",ErrorLoggingTextFile")
; -------------------------------/Log Info To Text------------------------------- ; -------------------------------/Log Info To Text-------------------------------
@ -919,7 +922,6 @@ if(PodcastNumber = "") {
gosub, SetGUIVariables gosub, SetGUIVariables
gosub, SetAndShowResultsGUI gosub, SetAndShowResultsGUI
; #include %A_scriptDir%\Modules\GUI-Results-Window.ahk
SaveCurrentChromeVersionToIniFile() SaveCurrentChromeVersionToIniFile()

@ -122,15 +122,17 @@ if(Status){
; make sure the "Notify Users" checkbox is selected ; make sure the "Notify Users" checkbox is selected
Xpath = (//input[contains(@name,'is_do_promo')])[1] Xpath = (//input[contains(@name,'is_do_promo')])[1]
Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=1,SleepLength:=1000)
try, Status := driver.findelementbyxpath(Xpath).isSelected() try, Status := driver.findelementbyxpath(Xpath).isSelected()
if(Status = "0"){ if(Status = 0){
Message = Failed to Check ON the Notify Users Checkbox Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=1,SleepLength:=1000)
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging") 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 ; check if the "Auto Submit Post" checkbox is checked, and if not check it
js = return document.querySelector("#autosubmit_enabled").checked; js = return document.querySelector("#autosubmit_enabled").checked;
try AutoSubmitstatus := driver.executeScript(js) try AutoSubmitstatus := driver.executeScript(js)

@ -247,9 +247,11 @@ SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
Xpath = //textarea[@id='description'] Xpath = //textarea[@id='description']
Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000) Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000)
; Input Description ; Format text JS
JSVideoDescription := FormatTextToJSText(VideoDescription) JSVideoDescription := FormatTextToJSText(VideoDescription)
JSVideoSummary := FormatTextToJSText(VideoSummary)
; Input Description
js = document.getElementById('description').value = "%JSVideoDescription%"; js = document.getElementById('description').value = "%JSVideoDescription%";
try driver.executeScript(js) try driver.executeScript(js)
@ -331,7 +333,7 @@ SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
; Change GUI button from "Upload Podcast" ; Change GUI button from "Upload Podcast"
GuiControl,,UploadPodcast, Podcast Uploaded GuiControl,,UploadPodcast, Podcast Uploaded
sleep, 5000 ; sleep, 5000
CurrentSite := CurrentSite :=
ToolTip ToolTip

Loading…
Cancel
Save