From fd0b620e23f1e7ff870c66c09e4c7e9abd71c592 Mon Sep 17 00:00:00 2001 From: yuriy Date: Tue, 2 Jul 2024 19:33:22 -0400 Subject: [PATCH] minor code cleanups --- Freedomain Video Uploader.ahk | 29 +++++-------------------- Lib/Freedomain-Posters-Shared-Functions | 2 +- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/Freedomain Video Uploader.ahk b/Freedomain Video Uploader.ahk index cc4b5c3..8a6a49a 100644 --- a/Freedomain Video Uploader.ahk +++ b/Freedomain Video Uploader.ahk @@ -40,7 +40,7 @@ Menu, Tray, Default, Restart with Last Project ; Track how long sections of code take to run UStartTime := A_TickCount ; start time -; Included FIles and Libraries +; Included Files and Libraries ; ------------------------------------------------ ; These have to be included at the top for the Global variables to get registered early #Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\General-Functions.ahk @@ -87,6 +87,7 @@ ErrorLogVar := global DevMode +; @todo: this can be hardcoded into the lbry functions as it never changes global LBRYNetFilepath LBRYNetFilepath := "C:\Program Files\LBRY\resources\static\daemon\lbrynet.exe" @@ -192,11 +193,6 @@ PostSchedulerGitReleasesAPIURL = https://freedomain.dev/api/v1/repos/yuriy/post- IniRead, PostSchedulerVersion, %SettingsIniFilepath%, Freedomain Post Scheduler, Version, 0.0 IniRead, PostSchedulerFilepath, %SettingsIniFilepath%, Filepaths, PostScheduler, %A_Space% - -; Msgbox % "PostSchedulerVersion: " PostSchedulerVersion -; IniRead, OutputVar, Filename, Section, Key [, Default] - - ;---LBRY Settings--- ;------------------------------------------------ IniRead, LBRYNewVideoStakeAmount, %SettingsIniFilepath%, General, LBRYNewVideoStakeAmount, 1.0 @@ -458,7 +454,6 @@ if(VideoFileSizeInMB > 6144){ ; Brighteon will fail if video does not have one of the following aspect ratios BrighteonAcceptedAspectRatios := ["4:3","3:4","16:9","9:16"] -; Msgbox % "VideoAspectRatio: " VideoAspectRatio VideoHasBrighteonCompatibleAspectRatio := HasVal(BrighteonAcceptedAspectRatios, VideoAspectRatio) @@ -560,16 +555,6 @@ ToggleDevMode() run, "%A_ScriptFullPath%" "LastPost" Return -/* -OpenGiteaPage: -run, https://freedomain.dev/yuriy/video-uploader -Return - -OpenErrorLog: -run, %ErrorLoggingFilePath% -Return - -*/ UncheckAllPlatforms: GuiControl,,Bitchute, 0 @@ -1012,7 +997,7 @@ if(!SocialMediaPosterFilepath or !FileExist(SocialMediaPosterFilepath)){ */ -; Copy Info from GUI to Clipboard +; Copy Info to Clipboard based on the button clicked ; ------------------------------------------------ CopyToClipboard: @@ -1090,11 +1075,9 @@ run, "%A_ScriptFullPath%" "ShowResults" ExitApp - -SendErrorLoggingThroughTelegram: -msgbox, I don't do nothin atm -Return - +; ----------------------------------------------- +; GoSub Labels +; ----------------------------------------------- ; Post-To-Telegram ;------------------------------------------------ diff --git a/Lib/Freedomain-Posters-Shared-Functions b/Lib/Freedomain-Posters-Shared-Functions index 62e8afe..8447b60 160000 --- a/Lib/Freedomain-Posters-Shared-Functions +++ b/Lib/Freedomain-Posters-Shared-Functions @@ -1 +1 @@ -Subproject commit 62e8afebb89b3343c7ea48d5eedd94d9c84331eb +Subproject commit 8447b6009a8f1e6764aff7ee4d695df6fd6237e5