janerikvw/PHP-iTunes-API

This version is obsolete

rcasunshare opened this issue · 2 comments

This version is obsolete, the result is almost always 403

[26-Apr-2020 06:28:05 UTC] PHP Warning: file_get_contents(http://itunes.apple.com/search?country=US&media=music&entity=musicTrack&limit=1&term=Arbol+-+La+Vida+Es+Todo+Lo+Que+Vos+Quieras): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
in /home/radioplayer/public_html/players/binplayer/itunes.php on line 148

using this code constantly generates 403 errors when connecting with itunes.

$content = file_get_contents($url, false, $context);

file_get_contents failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden

This code is useless, it generates a lot of 403 errors.
When will they have a new version renewed with curl?