fixed LBRY API thumbnails not working
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,3 +12,4 @@ body.txt
|
|||||||
Freedomain Social Media Poster*.exe
|
Freedomain Social Media Poster*.exe
|
||||||
Compile Scripts to EXE.ahk
|
Compile Scripts to EXE.ahk
|
||||||
Freedomain Video Uploader.exe
|
Freedomain Video Uploader.exe
|
||||||
|
Lib/LBRY Process Killer.exe
|
||||||
@@ -4122,6 +4122,9 @@ Return
|
|||||||
; -------------------------------LBRY-------------------------------
|
; -------------------------------LBRY-------------------------------
|
||||||
LBRYVideoUpload:
|
LBRYVideoUpload:
|
||||||
LBRYAudioUpload:
|
LBRYAudioUpload:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(LBRYUploadType = "Video"){
|
if(LBRYUploadType = "Video"){
|
||||||
CurrentSite := "LBRY Video"
|
CurrentSite := "LBRY Video"
|
||||||
IniRead, LBRYPermanentURL, %VideoLinksIniFile%, Misc, LBRYVideoPermanentURL, %A_Space%
|
IniRead, LBRYPermanentURL, %VideoLinksIniFile%, Misc, LBRYVideoPermanentURL, %A_Space%
|
||||||
@@ -4214,19 +4217,27 @@ Loop % KeywordsArray.Length(){
|
|||||||
|
|
||||||
SplitPath, VideoThumbFilepath, ThumbnailFileNameWExt, OutDir, OutExtension, OutNameNoExt, OutDrive
|
SplitPath, VideoThumbFilepath, ThumbnailFileNameWExt, OutDir, OutExtension, OutNameNoExt, OutDrive
|
||||||
|
|
||||||
FDRThumbnailURL = <https://cdn.freedomainradio.com/%ThumbnailFileNameWExt%>
|
FDRThumbnailURL = https://cdn.freedomainradio.com/%ThumbnailFileNameWExt%
|
||||||
message = FDRThumbnailURL: %FDRThumbnailURL%
|
message = FDRThumbnailURL: %FDRThumbnailURL%
|
||||||
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
|
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
|
||||||
|
|
||||||
|
|
||||||
; Msgbox % "FDRThumbnailURL: " FDRThumbnailURL
|
; Msgbox % "FDRThumbnailURL: " FDRThumbnailURL
|
||||||
; Create API Command and save it to variable
|
; 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%"
|
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) ; Log to file
|
||||||
LogErrorToTextFile("LBRYAPICommand: " LBRYAPICommand)
|
LogErrorToTextFile("LBRYAPICommand: " LBRYAPICommand)
|
||||||
|
|
||||||
; Parse returned API json for success status
|
; Parse returned API json for success status
|
||||||
UploadResult := StdOutToVar(LBRYAPICommand)
|
UploadResult := StdOutToVar(LBRYAPICommand)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(InStr(UploadResult, "Could not connect")){
|
if(InStr(UploadResult, "Could not connect")){
|
||||||
Message = Upload Failed. Reason: %UploadResult%
|
Message = Upload Failed. Reason: %UploadResult%
|
||||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
||||||
|
|||||||
Reference in New Issue
Block a user