Skip to content

Commit

Permalink
updated to 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deep5050 committed May 17, 2021
1 parent 21035a2 commit a904d11
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 16 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
33 changes: 21 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 !!
<!-- ### Note !!
This uses [sentry](https://sentry.io) to collect un-handled exceptions only (As it is under heavy development). Next mojor release will remove this.
Make sure you are okay with this ⚠️
Make sure you are okay with this ⚠️ -->

### Demo

Expand All @@ -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 |


<hr>

Expand Down
2 changes: 1 addition & 1 deletion radioactive/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""

Expand Down
57 changes: 54 additions & 3 deletions radioactive/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -59,13 +59,64 @@ def show_help():
"False",
"Optional",
)


table.add_row(
"--show-favourite-list, -W ",
"no",
"Show your favourite list",
"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)

0 comments on commit a904d11

Please sign in to comment.