Skip to content

Commit

Permalink
now playing adds the user
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-00 committed Jan 18, 2023
1 parent b5fd735 commit 0c51731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Expand Up @@ -16,6 +16,7 @@ This release fixes issues when updating your databases from **really** old versi
* Fetch Seafile cover art
* Album might get sent to the temp playlist and screw up on insert
* A couple of issues with now_playing.php when enabled
* RSS user lookup on now_playing
* Subsonic
* Allow empty search queries

Expand Down
3 changes: 1 addition & 2 deletions src/Module/Util/AmpacheRss.php
Expand Up @@ -224,7 +224,7 @@ public static function load_now_playing($rsstoken = "")
);
foreach ($data as $element) {
$song = $element['media'];
$client = $element['user'];
$client = $element['client'];
$title = $format;
$description = $format;
foreach ($string_map as $search => $replace) {
Expand Down Expand Up @@ -274,7 +274,6 @@ public static function load_recently_played($rsstoken = "")
$data = ($user) ? Song::get_recently_played($user->id) : Song::get_recently_played();
$results = array();


foreach ($data as $item) {
$client = new User($item['user']);
$song = new Song($item['object_id']);
Expand Down

0 comments on commit 0c51731

Please sign in to comment.