Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f3817cb9f9 | |||
| 478f8f769e | |||
| 1b856287df | |||
| 45e2d2b0f0 |
BIN
Assets/Screenshots/MainScreen_v341.png
Normal file
BIN
Assets/Screenshots/MainScreen_v341.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 406 KiB |
@@ -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")
|
||||
|
||||
@@ -130,7 +164,7 @@ Loop, 3 {
|
||||
}
|
||||
|
||||
Message = Inputting Tags: %BitchuteTags%
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
|
||||
|
||||
; input Search Terms (Tags)
|
||||
@@ -286,9 +320,10 @@ if(VideoHref = ""){
|
||||
Return
|
||||
}
|
||||
|
||||
BitChuteURL := "https://www.bitchute.com/" . VideoHref
|
||||
BitChuteURL := "https://old.bitchute.com/" . VideoHref
|
||||
BitChuteURL := StrReplace(BitchuteURL, "//video", "/video")
|
||||
|
||||
|
||||
; navigate to video page
|
||||
try driver.Get(BitChuteURL) ;Open selected URL
|
||||
driver.executeScript("return document.readyState").equals("complete") ; wait until page loads completely before proceeding
|
||||
@@ -315,6 +350,9 @@ SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,Disc
|
||||
Xpath = //button[normalize-space()='Save']
|
||||
Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000)
|
||||
|
||||
|
||||
BitChuteURL := StrReplace(BitchuteURL, "old.", "")
|
||||
|
||||
Message = Upload Complete:`n%BitChuteURL%
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
IniWrite, %BitChuteURL%, %VideoLinksIniFile%, URLs, BitChuteURL
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Automated Video and Podcast Uploading to Multiple Sites using Autohotkey, Selenium, and Platform APIs
|
||||
|
||||

|
||||

|
||||
|
||||
# Supported Platforms
|
||||
| Platform | Upload Type |
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
[Video-Uploader]
|
||||
Version=3.40
|
||||
Version=3.41
|
||||
Name=Freedomain Video Uploader
|
||||
|
||||
Reference in New Issue
Block a user