added check for Odysee daemon servers to LBRY

pull/2/head
Yuriy 2 years ago
parent 141dfc3b75
commit a5736dbf0d

@ -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 sleep, 1000
)
if(!FileExist(LBRYDaemonSettingsFP)){
Msgbox % "daemon_settingsText: " daemon_settingsText Message = Failed to download the custom daemon_settings.yml file from git. Restoring Original File
FileDelete, C:\Users\%A_UserName%\AppData\Local\lbry\lbrynet\daemon_settings.yml SaveOrPostProgress(Message:=Message,PostType:=",ErrorLoggingTextFile,DiscordErrorLogging")
msgbox FileMove,%LBRYDaemonSettingsBackupFP%,%LBRYDaemonSettingsFP%, 1
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?
} }

Loading…
Cancel
Save