|
|
@ -4943,28 +4943,26 @@ CheckLBRYProcess(){
|
|
|
|
|
|
|
|
|
|
|
|
FileRead, daemon_settingsFileContent, C:\Users\%A_UserName%\AppData\Local\lbry\lbrynet\daemon_settings.yml
|
|
|
|
FileRead, daemon_settingsFileContent, C:\Users\%A_UserName%\AppData\Local\lbry\lbrynet\daemon_settings.yml
|
|
|
|
|
|
|
|
|
|
|
|
if(!InStr(daemon_settingsFileContent, "a-hub1.odysee.com:50001")){
|
|
|
|
if(!InStr(daemon_settingsFileContent, "a-hub1.odysee.com")){
|
|
|
|
Message = Odysee wallet server is not in daemon_settings.yml. Replacing File with required settings.
|
|
|
|
Message = Odysee wallet server is not in daemon_settings.yml. Replacing File with required settings.
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:=",DiscordErrorLogging")
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:=",DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
daemon_settingsText =
|
|
|
|
LBRYDaemonSettingsFP = C:\Users\%A_UserName%\AppData\Local\lbry\lbrynet\daemon_settings.yml
|
|
|
|
(
|
|
|
|
LBRYDaemonSettingsBackupFP = C:\Users\%A_UserName%\AppData\Local\lbry\lbrynet\daemon_settings_BU.yml
|
|
|
|
download_dir: c:\lbry\Downloads
|
|
|
|
|
|
|
|
lbryum_servers:
|
|
|
|
|
|
|
|
- a-hub1.odysee.com:50001
|
|
|
|
; Msgbox % "daemon_settingsText: " daemon_settingsText
|
|
|
|
- spv11.lbry.com:50001
|
|
|
|
FileMove, %LBRYDaemonSettingsFP%, %LBRYDaemonSettingsBackupFP%, 1 ; Dest [, Flag (1 = overwrite)]
|
|
|
|
- spv19.lbry.com:50001
|
|
|
|
|
|
|
|
share_usage_data: false
|
|
|
|
UrlDownloadToFile, https://git.freedomainplaylists.com/yuriy/Freedomain-Video-Uploader/raw/branch/main/Assets/daemon_settings.yml , %LBRYDaemonSettingsFP%
|
|
|
|
tcp_port: 3335
|
|
|
|
|
|
|
|
use_upnp: false
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Msgbox % "daemon_settingsText: " daemon_settingsText
|
|
|
|
sleep, 1000
|
|
|
|
FileDelete, C:\Users\%A_UserName%\AppData\Local\lbry\lbrynet\daemon_settings.yml
|
|
|
|
|
|
|
|
msgbox
|
|
|
|
if(!FileExist(LBRYDaemonSettingsFP)){
|
|
|
|
FileAppend, %daemon_settingsText%,C:\Users\%A_UserName%\AppData\Local\lbry\lbrynet\daemon_settings.yml ; , Filename]
|
|
|
|
Message = Failed to download the custom daemon_settings.yml file from git. Restoring Original File
|
|
|
|
run, C:\Users\%A_UserName%\AppData\Local\lbry\lbrynet
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:=",ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
msgbox, did it get appended?
|
|
|
|
FileMove,%LBRYDaemonSettingsBackupFP%,%LBRYDaemonSettingsFP%, 1
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|