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