|
|
|
@ -4122,6 +4122,9 @@ Return
|
|
|
|
|
; -------------------------------LBRY-------------------------------
|
|
|
|
|
LBRYVideoUpload:
|
|
|
|
|
LBRYAudioUpload:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(LBRYUploadType = "Video"){
|
|
|
|
|
CurrentSite := "LBRY Video"
|
|
|
|
|
IniRead, LBRYPermanentURL, %VideoLinksIniFile%, Misc, LBRYVideoPermanentURL, %A_Space%
|
|
|
|
@ -4214,19 +4217,27 @@ Loop % KeywordsArray.Length(){
|
|
|
|
|
|
|
|
|
|
SplitPath, VideoThumbFilepath, ThumbnailFileNameWExt, OutDir, OutExtension, OutNameNoExt, OutDrive
|
|
|
|
|
|
|
|
|
|
FDRThumbnailURL = <https://cdn.freedomainradio.com/%ThumbnailFileNameWExt%>
|
|
|
|
|
FDRThumbnailURL = https://cdn.freedomainradio.com/%ThumbnailFileNameWExt%
|
|
|
|
|
message = FDRThumbnailURL: %FDRThumbnailURL%
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Msgbox % "FDRThumbnailURL: " FDRThumbnailURL
|
|
|
|
|
; Create API Command and save it to variable
|
|
|
|
|
LBRYAPICommand = "%LBRYNetFilepath%" publish --name="%LBRYURLSlug%" --bid="%LBRYNewVideoStakeAmount%" --file_path="%FilePathForLBRYAPI%" --title="%LBRYVideoTitle%" --description="%LBRYVideoDescription%" %LBRYTags% --thumbnail_url="%FDRThumbnailURL%" --channel_id="%LBRYChannelID%"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; LogErrorToTextFile(LBRYAPICommand) ; Log to file
|
|
|
|
|
LogErrorToTextFile("LBRYAPICommand: " LBRYAPICommand)
|
|
|
|
|
|
|
|
|
|
; Parse returned API json for success status
|
|
|
|
|
UploadResult := StdOutToVar(LBRYAPICommand)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(InStr(UploadResult, "Could not connect")){
|
|
|
|
|
Message = Upload Failed. Reason: %UploadResult%
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
|
|
|
|