Page MenuHomePhorge

spotify_releasedate.php
No OneTemporary

spotify_releasedate.php

<html>
<head>
<title>Spotify album/track release date</title>
<meta property="og:title" content="Keith's Spotify release date tool">
<meta name="description" content="No need on desktop, but this form will return a track or album's release date for mobile users (sorry I haven't optimized the actual page for mobile use, it's on my todo list">
</head>
<body>
<form action="" method="POST">
<p><strong>Enter a Spotify track or album 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...");
}
# Run Python script (should rewrite in PHP sometime...)
$out = shell_exec("python3 get_date.py $url");
print("$out");
}
?>
</body>
</html>

File Metadata

Mime Type
text/html
Expires
Sat, Apr 26, 5:32 PM (22 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
153963
Default Alt Text
spotify_releasedate.php (959 B)

Event Timeline