From 4215cc71ae086f6d177ba3ee96f50ccaab1bb4cc Mon Sep 17 00:00:00 2001 From: yuriy Date: Sun, 5 Nov 2023 15:44:32 -0500 Subject: [PATCH] added podcast URL if post is podcast --- Freedomain Social Media Poster.ahk | 17 ++++++++++++----- Lib/Freedomain-Posters-Shared-Functions | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Freedomain Social Media Poster.ahk b/Freedomain Social Media Poster.ahk index efa1f52..03f2a8a 100644 --- a/Freedomain Social Media Poster.ahk +++ b/Freedomain Social Media Poster.ahk @@ -216,7 +216,8 @@ if(InStr(ErrorLoggingDirectory,ScriptName) and InStr(ErrorLoggingDirectory,".exe } -if(StrLen(ErrorLoggingDirectory) > 5 and !InStr(ErrorLoggingDirectory, ".exe")){ ; if argument was passed in, read contents from that directory +; if argument was passed in, read contents from that directory and grab video info for social media post +if(StrLen(ErrorLoggingDirectory) > 5 and !InStr(ErrorLoggingDirectory, ".exe")){ ; SaveOrPostProgress(Message:="Starting Up: Reading Information from Files",PostType:="Tooltip") SkipUpdateCheckThisRun := 1 @@ -251,19 +252,25 @@ if(StrLen(ErrorLoggingDirectory) > 5 and !InStr(ErrorLoggingDirectory, ".exe")){ ; Read video links from video links file IniRead, BitChuteURL, %ErrorLoggingDirectory%,URLs, BitChuteURL, %A_Space% IniRead, RumbleURL, %ErrorLoggingDirectory%,URLs, RumbleURL, %A_Space% - IniRead, StreamanityURL, %ErrorLoggingDirectory%,URLs, StreamanityURL, %A_Space% - ; IniRead, BitChuteURL, %ErrorLoggingDirectory%,URLs, BitChuteURL, %A_Space% + IniRead, BrighteonURL, %ErrorLoggingDirectory%,URLs, BrighteonURL, %A_Space% + IniRead, BitChuteURL, %ErrorLoggingDirectory%,URLs, BitChuteURL, %A_Space% + IniRead, PodcastNumber, %ErrorLoggingDirectory%,Misc, PodcastNumber, %A_Space% if(BitChuteURL = ""){ if(RumbleURL != "") VideoURL := RumbleURL else, - VideoURL := StreamanityURL + VideoURL := BrighteonURL } else, VideoURL := BitChuteURL + + if(PodcastNumber != ""){ + PodcastURL := https://fdrpodcasts.com/%PodcastNumber% . "`n" + } + ; Append bitchute url to bottom of description - PostBody := PostBody . "`n`n" . VideoURL + PostBody := PostBody . "`n`n" . PodcastURL . VideoURL ; Msgbox % "PostTitle: " PostTitle ; Msgbox % "PostBody: " PostBody diff --git a/Lib/Freedomain-Posters-Shared-Functions b/Lib/Freedomain-Posters-Shared-Functions index 49b1e74..71b950c 160000 --- a/Lib/Freedomain-Posters-Shared-Functions +++ b/Lib/Freedomain-Posters-Shared-Functions @@ -1 +1 @@ -Subproject commit 49b1e74d40b1c64e9c6e48958d4741ae7e6a5a6d +Subproject commit 71b950c57f430e70678d06a1f97eabbce541bf28