; Call each sub one by one, if errors occur then an upload will be stopped and the next upload will then proceed
UploadedToSites .= "Facebook,"
; gosub, FacebookUpload
/*
}
if(Telegram){
if(Facebook)
UploadedToSites .= "Telegram,"
gosub, FacebookUpload
*/
/*
*/
if(Telegram)
gosub, TelegramVideoUpload
gosub, TelegramVideoUpload
}
; Call each sub one by one, if errors occur then an upload will be stopped and the next upload will then proceed
if(Locals)
if(Locals){
UploadedToSites .= "Locals,"
gosub, LocalsUpload
gosub, LocalsUpload
}
if(BitChute){
UploadedToSites .= "Bitchute,"
if(BitChute)
Gosub, BitChuteUpload
Gosub, BitChuteUpload
}
if(OdyseeVideo){
if(OdyseeVideo){
UploadedToSites .= "LBRYVideo,"
LBRYUploadType := "Video"
LBRYUploadType := "Video"
Gosub, LBRYVideoUpload
Gosub, LBRYVideoUpload
}
}
if(OdyseeAudio){
if(OdyseeAudio){
UploadedToSites .= "LBRYAudio,"
LBRYUploadType := "Audio"
LBRYUploadType := "Audio"
Gosub, LBRYAudioUpload
Gosub, LBRYAudioUpload
}
}
if(Rumble){
if(Rumble)
UploadedToSites .= "Rumble,"
Gosub, RumbleUpload
Gosub, RumbleUpload
}
if(Brighteon){
UploadedToSites .= "Brighteon,"
if(Brighteon)
Gosub, BrighteonUpload
Gosub, BrighteonUpload
}
if(DailyMotion){
UploadedToSites .= "DailyMotion,"
if(DailyMotion)
Gosub, DailyMotionUpload
Gosub, DailyMotionUpload
}
; grab the LBRY Video/Audio URLs
; grab the LBRY Video/Audio URLs
if(OdyseeVideo){
if(OdyseeVideo){
@ -1283,18 +1262,6 @@ if(OdyseeAudio){
Gosub, LBRYGetURL
Gosub, LBRYGetURL
}
}
/* if(OdyseeVideoThumb){
OdyseeUploadType := "Video"
Gosub, OdyseeVideoThumbUpload
}
*/
/* if(OdyseeAudioThumb){
OdyseeUploadType := "Audio"
Gosub, OdyseeAudioThumbUpload
}
*/
if(LocalsGrabURL OR LocalsURL = "LocalsUploadStartedNeedToGrabURL"){
if(LocalsGrabURL OR LocalsURL = "LocalsUploadStartedNeedToGrabURL"){
Gosub, LocalsGrabURL
Gosub, LocalsGrabURL
}
}
@ -1310,51 +1277,11 @@ if(OdyseeAudio){
CurrentSite := ""
CurrentSite := ""
; if(StreamanityURL AND StreamanityCheckStatus)
; this feels soooooooooooooo ineficient, but i'm not sure how else to do this
; if(StreamanityCheckStatus AND !InStr(StreamanityURL, "streamanity")) ; if checked and URL is blank, report error
; Status := "Failures"
/*
if(URLOfLastErrorPage){
Status := "Failures"
}
else, {
Status := "Success"
}
if(OdyseeVideoCheckStatus and !InStr(OdyseeVideoURL, "odysee"))
Status := "Failures"
else if(OdyseeAudioCheckStatus AND !InStr(OdyseeAudioURL, "odysee"))
Status := "Failures"
else if(BitChuteCheckStatus AND !InStr(BitChuteURL, "bitchute"))
Status := "Failures"
else if(RumbleCheckStatus AND !InStr(RumbleURL, "rumble"))
Status := "Failures"
else if(DailyMotionCheckStatus AND !InStr(DailyMotionURL, "dailymotion"))
Status := "Failures"
else if(BrighteonCheckStatus AND !InStr(BrighteonURL, "brighteon"))
Status := "Failures"
*/
; DevModeMsgBox(status)
; Msgbox % "status: " status
if(URLOfLastErrorPage)
if(URLOfLastErrorPage)
Message = Video Uploading Finished WITH Some Failures
Message = Video Uploading Finished WITH Some Failures
else,
else,
Message = All Videos Uploaded Successfully
Message = All Videos Uploaded Successfully
/*
if(StreamanityURL != "" AND OdyseeVideoURL != "" AND OdyseeAudioURL != "" and BitChuteURL != "" AND RumbleURL != "" and DailyMotionURL != "" and BrighteonURL != "")
Message = All Videos Uploaded Successfully
else,
Message = Video Uploading Finished WITH Some Failures
; Msgbox, 4096, Error!, TelegramBotToken or TelegramBotChatID is missing from %SettingsIniFilepath%. `nPlease input them and rerun the script.
Return
}
; If description is longer than 2k chars, then API will error out. goto section that will allow user to edit video description to shorten it for posting
Message := StrReplace(Message, "`n", LineBreakChar) ; replace all new line characters with the global charater
; Msgbox % "Message: " Message
Status := SendTelegramVideo(TelegramBotToken, TelegramBotChatID, VideoFilepath, caption := Message ) ; you could add more options; compare the Telegram API docs
if(InStr(Status, "error_code")){
Message = Telegram Post Failed due to an API Issue. Error was saved to ErrorLogging file. Please send it to Yuriy.
; Msgbox, 4096, Error!, TelegramBotToken or TelegramBotChatID is missing from %SettingsIniFilepath%. `nPlease input them and rerun the script.
Return
}
; If description is longer than 2k chars, then API will error out. goto section that will allow user to edit video description to shorten it for posting
Message := StrReplace(Message, "`n", LineBreakChar) ; replace all new line characters with the global charater
; Msgbox % "Message: " Message
Status := SendTelegramVideo(TelegramBotToken, TelegramBotChatID, VideoFilepath, caption := Message ) ; you could add more options; compare the Telegram API docs
if(InStr(Status, "error_code")){
Message = Telegram Post Failed due to an API Issue. Error was saved to ErrorLogging file. Please send it to Yuriy.