Skip to content

Commit

Permalink
Update CHANGELOG.md, composer.json, and 2 more files...
Browse files Browse the repository at this point in the history
  • Loading branch information
Adinan committed Jan 28, 2021
1 parent 61b0f92 commit e3bdd3b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.1] - 2021-01-28

### Fixed

- ::getStationsByExactTag($tag) and ::getStationsByTag($tag) no longer strip "#" from $tag before request.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"keywords": ["radio", "music"],
"license": "MIT",
"version": "0.1.0",
"version": "0.1.1",
"authors": [
{
"name": "Adinan Cenci",
Expand Down
2 changes: 1 addition & 1 deletion examples/b-get-stations-by-tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//-----------------------------

$browser = new RadioBrowser();
$tag = 'Metal';
$tag = 'power metal';
$orderBy = 'clickcount';
$reverse = true; // ( decrescent )
$hideBroken = false;
Expand Down
4 changes: 2 additions & 2 deletions src/RadioBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ public function getStationsByExactLanguage($language, $order = 'name', $reverse

public function getStationsByTag($tag, $order = 'name', $reverse = false, $hideBroken = false, $offset = 0, $limit = 100000)
{
$tag = rawurlencode( trim($tag, '#') );
$tag = rawurlencode( $tag );
return $this->getStationsBy($this->server.$this->format.'/stations/bytag/'.$tag, $order, $reverse, $hideBroken, $offset, $limit);
}

public function getStationsByExactTag($tag, $order = 'name', $reverse = false, $hideBroken = false, $offset = 0, $limit = 100000)
{
$tag = rawurlencode( trim($tag, '#') );
$tag = rawurlencode( $tag );
return $this->getStationsBy($this->server.$this->format.'/stations/bytagexact/'.$tag, $order, $reverse, $hideBroken, $offset, $limit);
}

Expand Down

0 comments on commit e3bdd3b

Please sign in to comment.