-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
198 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Zookeeper Online | ||
* | ||
* @author Jim Mason <[email protected]> | ||
* @copyright Copyright (C) 1997-2021 Jim Mason <[email protected]> | ||
* @copyright Copyright (C) 1997-2023 Jim Mason <[email protected]> | ||
* @link https://zookeeper.ibinx.com/ | ||
* @license GPL-3.0 | ||
* | ||
|
@@ -59,17 +59,16 @@ public function processRequest() { | |
$albums = Engine::api(IChart::class)->getAdd($date)->asArray(); | ||
|
||
// Emit the albums | ||
foreach($albums as $index => $row) { | ||
foreach($albums as $row) { | ||
// Add & pull dates | ||
echo $row["adddate"] . "\t" . | ||
$row["pulldate"] . "\t"; | ||
|
||
// Categories | ||
$acats = explode(",", $row["afile_category"]); | ||
foreach($acats as $index => $cat) | ||
if($cat) | ||
echo $cats[$cat-1]["code"]; | ||
echo "\t"; | ||
echo implode("", array_map(function($cat) use ($cats) { | ||
return $cat ? $cats[$cat - 1]["code"] : ""; | ||
}, $acats)) . "\t"; | ||
|
||
// A-File Number | ||
echo $row["afile_number"] . "\t"; | ||
|
@@ -96,7 +95,7 @@ public function processRequest() { | |
echo $artist . "\t" . | ||
$row["album"] . "\t" . | ||
$label . "\t" . | ||
$row["tag" ] . $eol; | ||
$row["tag"] . $eol; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.