🔧 Genericized AirDC++ settings

1. You can now enter your AirDC++ client settings in the settings menu and the UI will read from them
2. Hubs can also be selected for search
This commit is contained in:
2021-11-23 17:26:48 -08:00
parent 610038247f
commit 84f242184e
10 changed files with 180 additions and 113 deletions

View File

@@ -87,11 +87,11 @@ export const ComicDetail = ({}: ComicDetailProps): ReactElement => {
useEffect(() => {
if (isEmpty(ADCPPSocket) && !isEmpty(userSettings)) {
console.log(userSettings.directConnect.client.hostname);
console.log(userSettings.directConnect.client.host.hostname);
setADCPPSocket(
new AirDCPPSocket({
protocol: `${userSettings.directConnect.client.protocol}`,
hostname: `${userSettings.directConnect.client.hostname}`,
protocol: `${userSettings.directConnect.client.host.protocol}`,
hostname: `${userSettings.directConnect.client.host.hostname}`,
}),
);
}