does this work better

This commit is contained in:
Darius
2026-02-03 22:53:56 +01:00
parent 8119d35c0c
commit 1689f04a6e

View File

@@ -51,7 +51,7 @@ export class TidalService extends BaseService<TidalClient> {
} }
async setVolume(argument: string): Promise<ServiceResult<number | string>> { async setVolume(argument: string): Promise<ServiceResult<number | string>> {
const value = this.percentageToDecimal(parseFloat(argument)); const value = this.percentageToDecimal(parseInt(argument, 10));
// relative // relative
const adjustMatch = argument.match(/^([+-])/); const adjustMatch = argument.match(/^([+-])/);
if (adjustMatch) { if (adjustMatch) {