|
|
|
@ -6,13 +6,24 @@ Message = Starting Upload
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Status := NavigateFromBaseURLTo("https://www.bitchute.com/myupload", "BitChute Video Uploader")
|
|
|
|
|
Status := NavigateFromBaseURLTo("https://www.bitchute.com/")
|
|
|
|
|
if(Status)
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
Message = Checking Login Status
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
Xpath = (//div[normalize-space()='Sign in'])[1]
|
|
|
|
|
try LoginStatus := driver.findelementbyxpath(Xpath).Attribute("innerText")
|
|
|
|
|
if(LoginStatus = "Sign In"){
|
|
|
|
|
Message = Logged out. Trying to Log Back In
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
try TabUrl := driver.url
|
|
|
|
|
if(InStr(TabUrl, "/accounts/login/")){
|
|
|
|
|
if(AutoLogin){
|
|
|
|
@ -35,10 +46,33 @@ if(InStr(TabUrl, "/accounts/login/")){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CheckForAlerts()
|
|
|
|
|
|
|
|
|
|
if(BitchuteUploadUploadURL = "")
|
|
|
|
|
{
|
|
|
|
|
; click on video upload icon so dropdown menu appears
|
|
|
|
|
Xpath = (//i[normalize-space()='video_call'])[1]
|
|
|
|
|
Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000)
|
|
|
|
|
|
|
|
|
|
; grab upload url from dropdown menu
|
|
|
|
|
Xpath = (//a[@id='id_upload_video'])[1]
|
|
|
|
|
UploadURL := GetHTMLValueFromXpathOuterHTML(XPATH, "href")
|
|
|
|
|
|
|
|
|
|
if(!InStr(UploadURL, "https")){
|
|
|
|
|
Message = Failed to Grab Upload Page URL from Home Page
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
|
|
|
|
Return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UploadURL := StrReplace(UploadURL, "api.bitchute", "old.bitchute")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try, driver.Get(UploadURL) ;Open selected URL
|
|
|
|
|
try, driver.executeScript("return document.readyState").equals("complete") ; wait until page loads completely before proceeding
|
|
|
|
|
|
|
|
|
|
Message = Inputting Title
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
|
|
|
|
|
|
|
|
@ -137,8 +171,8 @@ SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,Erro
|
|
|
|
|
Xpath = //input[@placeholder='Search Terms']
|
|
|
|
|
Status := Selenium_LoopToSendValueToXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000,StringTextContent:=BitchuteTags)
|
|
|
|
|
if(Status){
|
|
|
|
|
Message = Failed to input search terms (tags)
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
Message = Failed to input search terms (tags)
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
js = return document.querySelector("#hashtags").value;
|
|
|
|
|