fix: php errors (notices) (#3115)

This commit is contained in:
Dag 2022-10-26 00:47:45 +02:00 committed by GitHub
parent 8795cb252f
commit 52af2ae34c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 33 additions and 20 deletions

View file

@ -313,6 +313,7 @@ class BandcampBridge extends BridgeAbstract
private function apiGet($endpoint, $query_data)
{
$url = self::URI . 'api/' . $endpoint . '?' . http_build_query($query_data);
// todo: 429 Too Many Requests happens a lot
$data = json_decode(getContents($url));
return $data;
}