added podcast URL if post is podcast

main
Yuriy 1 year ago
parent 181044be9a
commit 4215cc71ae

@ -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") ; SaveOrPostProgress(Message:="Starting Up: Reading Information from Files",PostType:="Tooltip")
SkipUpdateCheckThisRun := 1 SkipUpdateCheckThisRun := 1
@ -251,19 +252,25 @@ if(StrLen(ErrorLoggingDirectory) > 5 and !InStr(ErrorLoggingDirectory, ".exe")){
; Read video links from video links file ; Read video links from video links file
IniRead, BitChuteURL, %ErrorLoggingDirectory%,URLs, BitChuteURL, %A_Space% IniRead, BitChuteURL, %ErrorLoggingDirectory%,URLs, BitChuteURL, %A_Space%
IniRead, RumbleURL, %ErrorLoggingDirectory%,URLs, RumbleURL, %A_Space% IniRead, RumbleURL, %ErrorLoggingDirectory%,URLs, RumbleURL, %A_Space%
IniRead, StreamanityURL, %ErrorLoggingDirectory%,URLs, StreamanityURL, %A_Space% IniRead, BrighteonURL, %ErrorLoggingDirectory%,URLs, BrighteonURL, %A_Space%
; IniRead, BitChuteURL, %ErrorLoggingDirectory%,URLs, BitChuteURL, %A_Space% IniRead, BitChuteURL, %ErrorLoggingDirectory%,URLs, BitChuteURL, %A_Space%
IniRead, PodcastNumber, %ErrorLoggingDirectory%,Misc, PodcastNumber, %A_Space%
if(BitChuteURL = ""){ if(BitChuteURL = ""){
if(RumbleURL != "") if(RumbleURL != "")
VideoURL := RumbleURL VideoURL := RumbleURL
else, else,
VideoURL := StreamanityURL VideoURL := BrighteonURL
} }
else, else,
VideoURL := BitChuteURL VideoURL := BitChuteURL
if(PodcastNumber != ""){
PodcastURL := https://fdrpodcasts.com/%PodcastNumber% . "`n"
}
; Append bitchute url to bottom of description ; Append bitchute url to bottom of description
PostBody := PostBody . "`n`n" . VideoURL PostBody := PostBody . "`n`n" . PodcastURL . VideoURL
; Msgbox % "PostTitle: " PostTitle ; Msgbox % "PostTitle: " PostTitle
; Msgbox % "PostBody: " PostBody ; Msgbox % "PostBody: " PostBody

@ -1 +1 @@
Subproject commit 49b1e74d40b1c64e9c6e48958d4741ae7e6a5a6d Subproject commit 71b950c57f430e70678d06a1f97eabbce541bf28
Loading…
Cancel
Save