From a904d113360aeb46b127ce61eabcf3538cb2fa00 Mon Sep 17 00:00:00 2001 From: Dipankar Pal Date: Mon, 17 May 2021 11:34:31 +0530 Subject: [PATCH] updated to 2.3.0 --- CHANGELOG.md | 12 ++++++++++ README.md | 33 ++++++++++++++++---------- radioactive/app.py | 2 +- radioactive/help.py | 57 ++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 88 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 392db73..affdb98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 2.3.0 + +1. Discover stations by country +2. Discover stations by state +3. Discover stations by genre/tags +4. Discover stations by language +5. More info on multiple results for a stations name +6. Shows currently playing radio info as box +7. sentry-SDK removed +8. Help table improved +9. Other minor bugs fixed + ## 2.2.0 1. Pretty Print welcome message using Rich diff --git a/README.md b/README.md index 982df81..dc0b70e 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,10 @@ - [x] Supports user-added stations - [x] Looks minimal and user-friendly - [x] Runs on Raspberry-Pi -- [ ] Finds nearby stations +- [x] Finds nearby stations +- [x] Discovers stations by genre +- [x] Discovers statations by language +- [ ] I'm feeling lucky ! Play Random stations - [ ] No external dependencies! > See my progress [here](https://github.com/deep5050/radio-active/projects/1) @@ -62,10 +65,10 @@ I encourage you to install with pipx: `pipx install radio-active` Run with `radioactive --station [STATION_NAME]` or as simply `radio -U [UUID] ` :zap: -### Note !! + ### Demo @@ -77,15 +80,21 @@ Make sure you are okay with this ⚠️ ### Options -| Argument | Note | Description | Default | -| ---------------------------- | ------------------------------------ | ------------------------------------ | ------- | -| `--station`, `-S` | Required ( Optional from second run) | Station name | None | -| `--uuid`, `-U` | Optional | ID of the station | None | -| `--log-level`, `-L` | Optional | Log level of the program | info | -| `--add-station` , `-A` | Optional | Add an entry to fav list | False | -| `--show-favourite-list`,`-W` | Optional | Show fav list | False | -| `--add-to-favourite`,`-F` | Optional | Add current station to fav list | False | -| `--flush` | Optional | Remove all the entries from fav list | False | +| Argument | Note | Description | Default | +| ---------------------------- | ------------------------------------ | -------------------------------------------- | ------- | +| `--station`, `-S` | Required ( Optional from second run) | Station name | None | +| `--uuid`, `-U` | Optional | ID of the station | None | +| `--log-level`, `-L` | Optional | Log level of the program | info | +| `--add-station` , `-A` | Optional | Add an entry to fav list | False | +| `--show-favourite-list`,`-W` | Optional | Show fav list | False | +| `--add-to-favourite`,`-F` | Optional | Add current station to fav list | False | +| `--flush` | Optional | Remove all the entries from fav list | False | +| `--discover-by-country`,`-D` | Optional | Discover stations by country code | false | +| `--discover-by-state` | Optioanl | Discover stations by country state | false | +| `--discover-by-tag` | Optional | Discover stations by tags/genre | fasle | +| `--discover-by-language` | optional | Discover stations by | false | +| `--limit` | Optional | Limit the # of results in the discover table | 100 | +
diff --git a/radioactive/app.py b/radioactive/app.py index 2509daa..7fc419f 100644 --- a/radioactive/app.py +++ b/radioactive/app.py @@ -10,7 +10,7 @@ class App: def __init__(self): - self.__VERSION__ = "2.2.0" + self.__VERSION__ = "2.3.0" # change this on every update # self.pypi_api = "https://pypi.org/pypi/radio-active/json" self.remote_version = "" diff --git a/radioactive/help.py b/radioactive/help.py index 5a806a8..f1c869e 100644 --- a/radioactive/help.py +++ b/radioactive/help.py @@ -22,9 +22,9 @@ def show_help(): console.print(welcome) table = Table(show_header=True, header_style="bold magenta") - table.add_column("Arguments", justify="center") + table.add_column("Arguments", justify="left") table.add_column("Expects value", justify="center") - table.add_column("Description", justify="center") + table.add_column("Description", justify="left") table.add_column("Default", justify="center") table.add_column("Note", justify="center") @@ -59,6 +59,8 @@ def show_help(): "False", "Optional", ) + + table.add_row( "--show-favourite-list, -W ", "no", @@ -66,6 +68,55 @@ def show_help(): "False", "Optional", ) - table.add_row("--flush,", "no", "Clear your favourite list", "False", "Optional") + + table.add_row( + "--discover-by-country, -D", + "yes", + "Discover stations by country code", + "False", + "Optional", + ) + + table.add_row( + "--discover-by-state", + "yes", + "Discover stations by country state", + "False", + "Optional", + ) + + table.add_row( + "--discover-by-tag", + "yes", + "Discover stations by tags/genre", + "False", + "Optional", + ) + + table.add_row( + "--discover-by-language", + "yes", + "Discover stations by language", + "False", + "Optional", + ) + + table.add_row( + "--limit", + "yes", + "Limit the number of results in discover result table", + "100", + "Optional", + ) + + table.add_row("--flush", "no", "Clear your favourite list", "False", "Optional") + + + + + + + + console.print(table)