|
|
|
@ -3008,38 +3008,16 @@ Loop, %Number_of_loops_to_Check_Upload_status% {
|
|
|
|
|
Return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
; LogErrorToTextFile("Inputting Description")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Input text
|
|
|
|
|
; try BitChuteUploadProgress := driver.executeScript("return document.getElementsByClassName('progress-bar')[0].innerHTML;") ;navigate using javascript
|
|
|
|
|
; send text to page
|
|
|
|
|
; jsSend = document.getElementsByClassName('form-control')[1].value = "%JSBitchuteDescription%";
|
|
|
|
|
|
|
|
|
|
jsSend = document.getElementById('description').value = "%JSBitchuteDescription%";
|
|
|
|
|
; try driver.executeScript(js)
|
|
|
|
|
|
|
|
|
|
; Check text in the box
|
|
|
|
|
jsCheck = return document.getElementById('description').value;
|
|
|
|
|
|
|
|
|
|
; send text to the page
|
|
|
|
|
try driver.executeScript(jsSend)
|
|
|
|
|
|
|
|
|
|
; check contents of page
|
|
|
|
|
try VideoDescriptionOnPage := driver.executeScript(jsCheck) ;Executes a Javascript on the webpage, mostly used for buttons.
|
|
|
|
|
|
|
|
|
|
if(StrLen(VideoDescription) > 5){
|
|
|
|
|
Message = Video Description input successfully
|
|
|
|
|
status := js_SendAndCheckWithQuerySelector("#description",ValueToCheck:="value",SleepLength:=1000,JSStringText:=JSBitchuteDescription)
|
|
|
|
|
if(status){
|
|
|
|
|
Message = %status%
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
else,
|
|
|
|
|
Break
|
|
|
|
|
|
|
|
|
|
; if (A_index = 1){
|
|
|
|
|
; message := SubStr(VideoDescriptionOnPage, 1, 250)
|
|
|
|
|
; message = Description that got input: %message%
|
|
|
|
|
; SaveOrPostProgress(Message:=Message,PostType:=",ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
; }
|
|
|
|
|
|
|
|
|
|
sleep, 1000
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3198,6 +3176,7 @@ Loop, %Number_of_loops_to_Check_Upload_status% {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BitChuteURL := "https://www.bitchute.com/" . VideoHref
|
|
|
|
|
BitChuteURL := StrReplace(BitchuteURL, "//video", "/")
|
|
|
|
|
|
|
|
|
|
; navigate to video page
|
|
|
|
|
try driver.Get(BitChuteURL) ;Open selected URL
|
|
|
|
@ -5244,9 +5223,8 @@ Return
|
|
|
|
|
|
|
|
|
|
; Included Files
|
|
|
|
|
#include %A_ScriptDir%\Lib\StdOutToVar.ahk ; used for chrome debugging mode connection
|
|
|
|
|
#Include %A_ScriptDir%\Lib\SharedFunctions.ahk
|
|
|
|
|
#Include %A_ScriptDir%\Lib\\Freedomain-Posters-Shared-Functions\Freedomain-Posters-Shared-Functions.ahk
|
|
|
|
|
#Include %A_ScriptDir%\Lib\JSON.ahk
|
|
|
|
|
#Include %A_ScriptDir%\Lib\ChromeAutomationFunctions.ahk
|
|
|
|
|
#Include %A_ScriptDir%\Lib\\RunCMD.ahk
|
|
|
|
|
|
|
|
|
|
; #Include %A_ScriptDir%\Lib\ChromeAutomationFunctions.ahk
|
|
|
|
|