From 9f9d66afebc59c6c265c4424f7b8fb36d8876541 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 26 Oct 2023 16:39:03 +0200 Subject: Updated 34 files and added 146 files (automated) --- app/download.php | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 app/download.php (limited to 'app/download.php') diff --git a/app/download.php b/app/download.php new file mode 100644 index 0000000..dd1321c --- /dev/null +++ b/app/download.php @@ -0,0 +1,74 @@ +", ":", "\"", "\\", "|", "?", "*"], "-", $song["artist"] . " - " . $song["title"]); + +function getSize($bytes) { + if ($bytes < 1024) { + return $bytes; + } + + if ($bytes < 1024**2) { + return round($bytes / 1024, 1) . " KB"; + } + + if ($bytes < 1024**3) { + return round($bytes / 1024**2, 1) . " MB"; + } + + return round($bytes / 1024**3, 1) . " GB"; +} + +?> + + + + + + + download + + + + + + + + + + + +
+

+
+ +

+ +

Select the version of the song you would like to download:

+ +
+ + + + \ No newline at end of file -- cgit