Page MenuHomePhorge

spotify_track_availability.php
No OneTemporary

spotify_track_availability.php

<html>
<head>
<title>Spotify track availability checker</title>
</head>
<body>
<form action="" method="POST">
<p><strong>Enter a Spotify track URL:</strong> <input name="URL" id="URL"></p>
<p><button>Submit</button></p>
</form>
<?php
if($_POST['URL']) {
$url = $_POST['URL'];
if (filter_var($url, FILTER_VALIDATE_URL) === FALSE) {
die("Sorry, only valid URLs are currently supported. Take it up with Keith! He probably just forgot to make URIs work too. Or maybe what you pasted in isn't valid as either...");
}
$out = shell_exec("python3 check_track_availability.py $url");
print("Available markets list: $out");
}
?>
</body>
</html>

File Metadata

Mime Type
text/html
Expires
Sun, Apr 27, 4:43 PM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
154008
Default Alt Text
spotify_track_availability.php (651 B)

Event Timeline