|
|
@ -3008,38 +3008,16 @@ Loop, %Number_of_loops_to_Check_Upload_status% {
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
; LogErrorToTextFile("Inputting Description")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
status := js_SendAndCheckWithQuerySelector("#description",ValueToCheck:="value",SleepLength:=1000,JSStringText:=JSBitchuteDescription)
|
|
|
|
; Input text
|
|
|
|
if(status){
|
|
|
|
; try BitChuteUploadProgress := driver.executeScript("return document.getElementsByClassName('progress-bar')[0].innerHTML;") ;navigate using javascript
|
|
|
|
Message = %status%
|
|
|
|
; 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
|
|
|
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
break
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else,
|
|
|
|
|
|
|
|
Break
|
|
|
|
|
|
|
|
|
|
|
|
; if (A_index = 1){
|
|
|
|
sleep, 1000
|
|
|
|
; message := SubStr(VideoDescriptionOnPage, 1, 250)
|
|
|
|
|
|
|
|
; message = Description that got input: %message%
|
|
|
|
|
|
|
|
; SaveOrPostProgress(Message:=Message,PostType:=",ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3198,6 +3176,7 @@ Loop, %Number_of_loops_to_Check_Upload_status% {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BitChuteURL := "https://www.bitchute.com/" . VideoHref
|
|
|
|
BitChuteURL := "https://www.bitchute.com/" . VideoHref
|
|
|
|
|
|
|
|
BitChuteURL := StrReplace(BitchuteURL, "//video", "/")
|
|
|
|
|
|
|
|
|
|
|
|
; navigate to video page
|
|
|
|
; navigate to video page
|
|
|
|
try driver.Get(BitChuteURL) ;Open selected URL
|
|
|
|
try driver.Get(BitChuteURL) ;Open selected URL
|
|
|
@ -5244,9 +5223,8 @@ Return
|
|
|
|
|
|
|
|
|
|
|
|
; Included Files
|
|
|
|
; Included Files
|
|
|
|
#include %A_ScriptDir%\Lib\StdOutToVar.ahk ; used for chrome debugging mode connection
|
|
|
|
#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\JSON.ahk
|
|
|
|
#Include %A_ScriptDir%\Lib\ChromeAutomationFunctions.ahk
|
|
|
|
|
|
|
|
#Include %A_ScriptDir%\Lib\\RunCMD.ahk
|
|
|
|
#Include %A_ScriptDir%\Lib\\RunCMD.ahk
|
|
|
|
|
|
|
|
|
|
|
|
; #Include %A_ScriptDir%\Lib\ChromeAutomationFunctions.ahk
|
|
|
|
; #Include %A_ScriptDir%\Lib\ChromeAutomationFunctions.ahk
|
|
|
|