fixed LBRY API thumbnails not working

pull/2/head
Yuriy 1 year ago
parent 97766507a5
commit a7164c0902

3
.gitignore vendored

@ -11,4 +11,5 @@ body.txt
**ConnectToActiveChromeTab.ahk
Freedomain Social Media Poster*.exe
Compile Scripts to EXE.ahk
Freedomain Video Uploader.exe
Freedomain Video Uploader.exe
Lib/LBRY Process Killer.exe

@ -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")

Loading…
Cancel
Save