diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d4767d..ef04f05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Changelog All notable changes to this project will be documented in this file. +## [1.4.3] - future +### Fixed +- Fixed the search of trending podcasts when the user didn't select + any category and language +- Fixed the search of radio station when the user selected only the + country and nothing else +- Fixed the script "start_player" execution when the MediaVault + path contains spaces + ## [1.4.2] - 2021-10-17 ### Fixed - The online radio stations api changed and broke the searching of diff --git a/README.md b/README.md index 9d25c23..3e0b3f2 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,14 @@ Help me persuade my wife that what I am doing matters Changelog -------------------------- +v1.4.3 - 2021-10-21 +* Fixed the search of trending podcasts when the user didn't select + any category and language +* Fixed the search of radio station when the user selected only the + country and nothing else +* Fixed the script "start_player" execution when the MediaVault + path contains spaces + v1.4.2 - 2021-10-17 * The online radio stations api changed and broke the searching of online radio stations. This is a fix for that. diff --git a/aminet.readme b/aminet.readme index 6899248..839e835 100644 --- a/aminet.readme +++ b/aminet.readme @@ -2,7 +2,7 @@ Short: Discover online radio stations Uploader: walkero@gmail.com (George Sokianos) Author: walkero@gmail.com (George Sokianos) Type: util/wb -Version: 1.4.2 +Version: 1.4.3 Architecture: ppc-amigaos Distribution: Aminet Requires: @@ -117,6 +117,14 @@ https://ko-fi.com/W7W465887 Changelog -------------------------- +v1.4.3 - 2021-10-21 +* Fixed the search of trending podcasts when the user didn't select + any category and language +* Fixed the search of radio station when the user selected only the + country and nothing else +* Fixed the script "start_player" execution when the MediaVault + path contains spaces + v1.4.2 - 2021-10-17 * The online radio stations api changed and broke the searching of online radio stations. This is a fix for that. diff --git a/os4depot.readme b/os4depot.readme index 8eb69e4..d1110d3 100644 --- a/os4depot.readme +++ b/os4depot.readme @@ -1,6 +1,6 @@ name: mediavault description: Discover online radio stations -version: 1.4.2 +version: 1.4.3 author: George Sokianos submitter: George Sokianos email: walkero@gmail.com @@ -122,6 +122,14 @@ https://ko-fi.com/W7W465887 Changelog -------------------------- +v1.4.3 - 2021-10-21 +* Fixed the search of trending podcasts when the user didn't select + any category and language +* Fixed the search of radio station when the user selected only the + country and nothing else +* Fixed the script "start_player" execution when the MediaVault + path contains spaces + v1.4.2 - 2021-10-17 * The online radio stations api changed and broke the searching of online radio stations. This is a fix for that. diff --git a/src/gui.c b/src/gui.c index 1d93109..a844be6 100755 --- a/src/gui.c +++ b/src/gui.c @@ -37,8 +37,8 @@ struct List radioList, trendingPodcastList, podcastEpisodeList; -struct filters lastFilters, - prevFilters; +struct filters lastFilters = {0}, + prevFilters = {0}; struct RenderHook *renderhook; struct RenderHook *podcastImageRenderHook; @@ -84,7 +84,7 @@ void showGUI(void) selectedMenu = MID_LAST; uint16 code = 0; BOOL done = FALSE; - struct filters lastPodcastFilters; + struct filters lastPodcastFilters = {0}; fillLeftSidebar(); diff --git a/src/podcastfuncs.c b/src/podcastfuncs.c index da6ef82..7bc94da 100755 --- a/src/podcastfuncs.c +++ b/src/podcastfuncs.c @@ -635,7 +635,7 @@ void playPodcast(struct Node *res_node) IUtility->SNPrintf(startPlayerPath, sizeof(startPlayerPath), "%s/scripts/start_player", getFilePath((STRPTR)"PROGDIR:MediaVault")); if (fileExists(startPlayerPath)) { - cmd = IUtility->ASPrintf("execute %s \"%s\" ", startPlayerPath, itemData->enclosureUrl); + cmd = IUtility->ASPrintf("execute \"%s\" \"%s\" ", startPlayerPath, itemData->enclosureUrl); } else { diff --git a/src/radiofuncs.c b/src/radiofuncs.c index 3903343..a5031fb 100755 --- a/src/radiofuncs.c +++ b/src/radiofuncs.c @@ -86,8 +86,6 @@ BOOL getRadioStations(struct filters lastFilters, int offset) if (IUtility->Stricmp(lastFilters.country, "")) { STRPTR encSelCountry = urlEncode(lastFilters.country); - stringToLower(encSelCountry); - IUtility->Strlcat(url, "&country=", sizeof(url)); IUtility->Strlcat(url, encSelCountry, sizeof(url)); IExec->FreeVec(encSelCountry); @@ -299,7 +297,7 @@ void playRadio(struct Node *res_node) IUtility->SNPrintf(startPlayerPath, sizeof(startPlayerPath), "%s/scripts/start_player", getFilePath((STRPTR)"PROGDIR:MediaVault")); if (fileExists(startPlayerPath)) { - cmd = IUtility->ASPrintf("execute %s \"%s\" ", startPlayerPath, itemData->url_resolved); + cmd = IUtility->ASPrintf("execute \"%s\" \"%s\" ", startPlayerPath, itemData->url_resolved); } else {