Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a576a194c1 | |||
| 9cbe1410e5 | |||
| f339ede04c | |||
| 4f4361276f |
@@ -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
|
||||
@@ -167,8 +171,21 @@ TooltipThis("Inputting Video Description")
|
||||
; Attempt to input video description a couple of times
|
||||
Loop, 10 {
|
||||
if(A_index = 10){
|
||||
Message = Failed to input Video Description after 10 attempts.
|
||||
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
|
||||
}
|
||||
@@ -218,9 +235,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,
|
||||
|
||||
@@ -30,7 +30,7 @@ EditBoxFourthWidths := (EditBoxWidths / 4) - (MarginSpace - 2)
|
||||
VideoTagsTextXPos := EditBoxHalfWidths + (MarginSpace * 2)
|
||||
|
||||
; EditBoxHalfWidthsWithMargin := (EditBoxWidths / 2)
|
||||
DescriptionCharCountXPos := EditBoxWidths - 40
|
||||
DescriptionCharCountXPos := EditBoxHalfWidths - 40
|
||||
|
||||
PageTwoXStartPos := EditBoxWidths + 50
|
||||
|
||||
@@ -114,36 +114,30 @@ Gui, Font, Normal
|
||||
Gui, Add, Edit, x%Marginspace% Y+5 w%EditBoxHalfWidths% h%EditBoxHeight% gUpdateVars vVideoTags, %VideoTags%
|
||||
Gui, Add, Edit, yp+0 x+%Marginspace% w%EditBoxHalfWidths% h%EditBoxHeight% gUpdateVars vPodcastTags, %PodcastTags%
|
||||
|
||||
|
||||
; Video Description
|
||||
; Description/Summary Headers
|
||||
Gui, Font, Bold
|
||||
|
||||
if(NoOriginalVideoDescription)
|
||||
Gui, Add, Text,cRed y+%Marginspace% x%Marginspace%,Video Description
|
||||
else,
|
||||
Gui, Add, Text,y+%Marginspace% x%Marginspace%,Video Description:
|
||||
|
||||
|
||||
if(TestingMode)
|
||||
Gui, Add, Text,cRed yp+0 xp+150 ,TESTING MODE
|
||||
|
||||
if(DevMode)
|
||||
Gui, Add, Text,cRed yp+0 xp+150 ,DEV MODE
|
||||
Gui, Add, Text,y+%Marginspace% x%Marginspace%,Description
|
||||
Gui, Add, Text,yp+0 x%ColumnOneHalfWidthXPos%,Summary
|
||||
|
||||
Gui, Font, Normal
|
||||
; Video Description edit box
|
||||
Gui, Add, Edit,x%Marginspace% y+5 w%EditBoxHalfWidths% h%VideoDescriptionEditBoxHeight% vVideoDescription gSubmitDescription,%VideoDescription%
|
||||
; Video Summary Edit Box
|
||||
Gui, Add, Edit,x%ColumnOneHalfWidthXPos% yp+0 w%EditBoxHalfWidths% h%VideoDescriptionEditBoxHeight% vVideoSummary gUpdateVars,%VideoSummary%
|
||||
|
||||
|
||||
Gui, Font, Normal
|
||||
Gui, Add, Edit,x%Marginspace% y+2 w%EditBoxWidths% h%VideoDescriptionEditBoxHeight% vVideoDescription gSubmitDescription,%VideoDescription%
|
||||
gui, font, s8
|
||||
Gui, font, Bold
|
||||
if(DescriptionCharCount > 3000){
|
||||
Gui, Add, Edit,cRed w50 h20 x%DescriptionCharCountXPos% y+1 vDescriptionCharCount, %DescriptionCharCount%
|
||||
}
|
||||
else,
|
||||
Gui, Add, Edit, w50 h20 x%DescriptionCharCountXPos% y+1 vDescriptionCharCount, %DescriptionCharCount%
|
||||
Gui, Font, Normal
|
||||
Gui, Add,Text, yp+3 xp-310, (Platform Char. Limits: DM+Bitchute = 3K, Odysee,Brighteon = 5K)
|
||||
Gui, Add, Edit, x%Marginspace% y+5 vDescriptionCharCount, %DescriptionCharCount%
|
||||
Gui, Add,Text, yp+4 x+%MarginSpace%,Limits: DM+Bitchute = 3K, Odysee, Brighteon = 5K
|
||||
; Gui, font, Bold
|
||||
|
||||
Gui, Font, s%GuiFontSize%
|
||||
Gui, font, Bold
|
||||
Gui, Add, GroupBox,r8.5 x%MarginSpace% yp+10 w%EditBoxWidths% Center, Filepaths
|
||||
|
||||
|
||||
|
||||
Gui, Add, GroupBox,r8.5 x%MarginSpace% y+10 w%EditBoxWidths% Center, Filepaths
|
||||
|
||||
; Video Filepath
|
||||
Gui, Font, Bold
|
||||
@@ -292,9 +286,6 @@ else, {
|
||||
|
||||
Gui, Add, Checkbox, x%GroupBoxCheckboxPos% y+%MarginSpace% vOdyseeVideo Checked%OdyseeVideoCheckStatus% gUpdateVars, Odysee Video
|
||||
|
||||
if(VideoFileSizeInMB < 50)
|
||||
Gui, Add, Checkbox, vTelegram x+%MarginSpaceTripled% yp+0 Checked%TelegramCheckStatus% gUpdateVars, Telegram (>50 MB)
|
||||
|
||||
|
||||
; Gui, Add, Checkbox, x+%MarginSpace% vOdyseeVideoThumb Checked%OdyseeVideoThumbCheckStatus%,Thumbnail
|
||||
Gui, Add, Checkbox, x%GroupBoxCheckboxPos% y+%MarginSpace% vOdyseeAudio Checked%OdyseeAudioCheckStatus% gUpdateVars, Odysee Audio
|
||||
|
||||
@@ -248,8 +248,12 @@ Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000
|
||||
JSVideoDescription := FormatTextToJSText(VideoDescription)
|
||||
|
||||
js = document.getElementById('description').value = "%JSVideoDescription%";
|
||||
try driver.executeScript(js) ;Executes a Javascript on the webpage, mostly used for buttons.
|
||||
try driver.executeScript(js)
|
||||
|
||||
if(VideoSummary){
|
||||
js = document.getElementById('summary').value = "%JSVideoSummary%";
|
||||
try driver.executeScript(js)
|
||||
}
|
||||
|
||||
Message = Inputting Tags
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
[Video-Uploader]
|
||||
Version=3.31
|
||||
Name=Freedomain Video Uploader
|
||||
Version=3.32
|
||||
Name=Freedomain Video Uploader
|
||||
|
||||
Reference in New Issue
Block a user