From d1f0f398fa0cf2460ac1d23fd8a81c4db474a9db Mon Sep 17 00:00:00 2001 From: coffeegreg <86416144+coffeegreg@users.noreply.github.com> Date: Mon, 22 Jan 2024 20:11:23 +0100 Subject: [PATCH] v1.2.1 Fix: (Cache type : catDB,catMemDB,catPermMemDB) : Incorrect handling of categories containing a space character(s). --- src/common.pas | 2 +- src/radiobrowser.pas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.pas b/src/common.pas index 5aaeb73..1fd5862 100644 --- a/src/common.pas +++ b/src/common.pas @@ -20,7 +20,7 @@ interface const APP_NAME = 'YTuner'; - APP_VERSION = '1.2.0'; + APP_VERSION = '1.2.1'; APP_COPYRIGHT = 'Copyright (c) 2024 Greg P. (https://github.com/coffeegreg)'; INI_VERSION = '1.2.0'; diff --git a/src/radiobrowser.pas b/src/radiobrowser.pas index a4f44ac..a64ed15 100644 --- a/src/radiobrowser.pas +++ b/src/radiobrowser.pas @@ -371,7 +371,7 @@ function GetStationsByCategory(var ARBStations: TRBStations; ARBAllCategoryType: begin GetRange(LStart,LHowMany,AReq.QueryFields); if RBCacheType in [catDB, catMemDB, catPermMemDB] then - Result:=DBRBGetStationsByCategory(ARBStations,ARBAllCategoryType,AName,GetAVRConfigIdx(AReq),LStart,LHowMany) + Result:=DBRBGetStationsByCategory(ARBStations,ARBAllCategoryType,HTTPDecode(AName),GetAVRConfigIdx(AReq),LStart,LHowMany) else Result:=GetStationsByCategory(ARBStations,ARBAllCategoryType,AName,GetAVRConfigIdx(AReq),LStart,LHowMany); end;