added a second upload attempt if description input fails 10 times

pull/49/head
Yuriy 10 months ago
parent 4f4361276f
commit f339ede04c

@ -112,6 +112,10 @@ try driver.FindElementByXPath(Xpath).click()
CheckForAlerts()
if(BrighteonUploadAttempt){
Sleep, 2000
}
Message = Uploading Video
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
; Upload Video
@ -169,6 +173,19 @@ Loop, 10 {
if(A_index = 10){
Message = Failed to input Video Description after 10 attempts.
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
if(!BrighteonUploadAttempt){
Message = Re-Trying Entire Upload
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
BrighteonUploadAttempt := 2
goto, BrighteonUpload
}
Message = Brighteon Upload Failed after 2 seperate individual attempts. Please try uploading manually and report any errors.
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
SaveDriverURLOFErrorPage()
Return
}
@ -177,6 +194,8 @@ Loop, 10 {
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
; SaveOrPostProgress(Message:=Message,PostType:="DiscordErrorLogging")
continue
Xpath = //div[@class='e-content e-lib e-keyboard']
Status := Selenium_LoopToSendValueToXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000,StringTextContent:=VideoDescription)
if(Status){
@ -218,9 +237,9 @@ if(VideoThumbFilepath != "") {
; Brighteon has a max of 25 for tags.
if(VideoTagsArray.Length() > 25){
if(ArrayOfVideoTags.Length() > 25){
Loop % 24 {
BrighteonKeywords := VideoTagsArray[A_Index]
BrighteonKeywords := ArrayOfVideoTags[A_Index]
}
}
else,

Loading…
Cancel
Save