diff --git a/Freedomain Video Uploader.ahk b/Freedomain Video Uploader.ahk index ae1f3b6..3f1d09c 100644 --- a/Freedomain Video Uploader.ahk +++ b/Freedomain Video Uploader.ahk @@ -275,9 +275,12 @@ Loop, files, %VideoFolderDir%\*.*, F ; loop through the files in the director if(FileNameWExt = "title.txt"){ FileRead, VideoTitle, %A_LoopFileFullPath% + + ; Generate the LBRY URL Slug on each startup in case Title changes between runs LBRYURLSlug := VideoTitle + LBRYURLSlug := LBRYCMDTextReplacement(LBRYURLSlug) + OriginalVideoTitle := VideoTitle - ; OriginalLBRYURLSlug := LBRYURLSlug } if(FileNameWExt = "body.txt"){ @@ -371,10 +374,9 @@ if(FileExist(VideoLinksIniFile)){ IniRead, BitChuteURL, %VideoLinksIniFile%, URLs, BitChuteURL, %A_Space% ; LBRY - IniRead, LBRYURLSlug, %VideoLinksIniFile%, Misc, LBRYURLSlug, %A_Space% - if(LBRYURLSlug = ""){ - LBRYURLSlug := OriginalLBRYURLSlug ; video title - } + ; removed on 2024/06/24, let's regenerate the slug each time in case the video file changes between runs + ; IniRead, LBRYURLSlug, %VideoLinksIniFile%, Misc, LBRYURLSlug, %A_Space% + ; LBRY Video IniRead, LBRYVideoURL, %VideoLinksIniFile%, URLs, LBRYVideoURL, %A_Space% IniRead, LBRYVideoThumb, %VideoLinksIniFile%, Misc, LBRYVideoThumb, %A_Space% @@ -409,7 +411,7 @@ if(FileExist(VideoLinksIniFile)){ /* if(TempVideoThumbFilepath){ ; if Video Thumbnail was saved in last run, overwrite variable path that was grabbed in the file loop above VideoThumbFilepath := TempVideoThumbFilepath } -*/ + */ } @@ -705,7 +707,8 @@ LBRYURLSlug := VideoTitle LBRYURLSlug := LBRYCMDTextReplacement(LBRYURLSlug) ; Save the LBRY URL Slug to .ini file in case it's needed later -IniWrite, %LBRYURLSlug%, %VideoLinksIniFile%, Misc, LBRYUrlSlug +; removed on 2024/06/24, generating the URL SLugh each run going forward +; IniWrite, %LBRYURLSlug%, %VideoLinksIniFile%, Misc, LBRYUrlSlug IniWrite, %VideoThumbFilepath%, %VideoLinksIniFile%, Misc, VideoThumbFilepath IniWrite, %PodcastNumber%, %VideoLinksIniFile%, Misc, PodcastNumber IniWrite, %VideoThumbFilepath%, %VideoLinksIniFile%, Misc, VideoThumbFilepath diff --git a/Lib/Freedomain-Posters-Shared-Functions b/Lib/Freedomain-Posters-Shared-Functions index e654611..62e8afe 160000 --- a/Lib/Freedomain-Posters-Shared-Functions +++ b/Lib/Freedomain-Posters-Shared-Functions @@ -1 +1 @@ -Subproject commit e654611bf3780c5a38ab700517fd34b6de78ebe2 +Subproject commit 62e8afebb89b3343c7ea48d5eedd94d9c84331eb