|
|
@ -310,8 +310,14 @@ Loop, files, %VideoFolderDir%\*.*, F ; loop through the files in the director
|
|
|
|
FileGetSize, VideoFileSizeInMB, %A_LoopFileFullPath%, M
|
|
|
|
FileGetSize, VideoFileSizeInMB, %A_LoopFileFullPath%, M
|
|
|
|
|
|
|
|
|
|
|
|
VideoInfoObj := Filexpro(VideoFilepath,
|
|
|
|
VideoInfoObj := Filexpro(VideoFilepath,
|
|
|
|
, "System.Video.TotalBitrate" )
|
|
|
|
, "System.Video.TotalBitrate"
|
|
|
|
VideoTotalBitrate := VideoInfoObj["System.Video.TotalBitrate"]
|
|
|
|
, "System.Video.FrameHeight"
|
|
|
|
|
|
|
|
, "System.Video.FrameWidth" )
|
|
|
|
|
|
|
|
try, VideoTotalBitrate := VideoInfoObj["System.Video.TotalBitrate"]
|
|
|
|
|
|
|
|
try, VideoHeight := VideoInfoObj["System.Video.FrameHeight"]
|
|
|
|
|
|
|
|
try, VideoWidth := VideoInfoObj["System.Video.FrameWidth"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VideoAspectRatio := getAspectRatio(VideoWidth, VideoHeight)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -355,6 +361,8 @@ Loop, files, %VideoFolderDir%\*.mp3, F ; loop through the files in the direct
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;---Read Info From Previous Run And Set Upload Options---
|
|
|
|
;---Read Info From Previous Run And Set Upload Options---
|
|
|
|
;--------------------------------------------------------
|
|
|
|
;--------------------------------------------------------
|
|
|
|
VideoLinksIniFile = %VideoFolderDir%\VideoLinks.ini
|
|
|
|
VideoLinksIniFile = %VideoFolderDir%\VideoLinks.ini
|
|
|
@ -446,6 +454,11 @@ if(VideoFileSizeInMB > 6144){
|
|
|
|
Brighteon := 0
|
|
|
|
Brighteon := 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Brighteon will fail if video does not have one of the following aspect ratios
|
|
|
|
|
|
|
|
BrighteonAcceptedAspectRatios := ["4:3","3:4","16:9","9:16"]
|
|
|
|
|
|
|
|
; Msgbox % "VideoAspectRatio: " VideoAspectRatio
|
|
|
|
|
|
|
|
VideoHasBrighteonCompatibleAspectRatio := HasVal(BrighteonAcceptedAspectRatios, VideoAspectRatio)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Override Website statuses if this is a schedule post based on Argument3
|
|
|
|
; Override Website statuses if this is a schedule post based on Argument3
|
|
|
|
; ------------------------------------------------
|
|
|
|
; ------------------------------------------------
|
|
|
@ -731,6 +744,9 @@ SaveOrPostProgress(Message:=Message,PostType:=",ErrorLoggingTextFile")
|
|
|
|
Message := "TotalVideosUploaded: " TotalVideosUploaded
|
|
|
|
Message := "TotalVideosUploaded: " TotalVideosUploaded
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:=",ErrorLoggingTextFile")
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:=",ErrorLoggingTextFile")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Message := "Video Information:`n VideoTotalBitrate:" . VideoTotalBitrate . "`nVideoAspectRatio:" . VideoAspectRatio
|
|
|
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
|
|
|
|
|
|
|
|
|
|
|
; Convert Video Title and Description into javascript formatting for sending to pages through js instead of plain selenium
|
|
|
|
; Convert Video Title and Description into javascript formatting for sending to pages through js instead of plain selenium
|
|
|
|
JSVideoTitle := FormatTextToJSText(VideoTitle)
|
|
|
|
JSVideoTitle := FormatTextToJSText(VideoTitle)
|
|
|
|
JSVideoDescription := FormatTextToJSText(VideoDescription)
|
|
|
|
JSVideoDescription := FormatTextToJSText(VideoDescription)
|
|
|
|