From 4d4308c46d4f7801c657cc79d2243e1a81831334 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 27 Oct 2023 22:29:56 +0200 Subject: Updated 32 files, added 279 files, deleted 3 files and renamed 14 files (automated) --- app/info.php | 186 ----------------------------------------------------------- 1 file changed, 186 deletions(-) delete mode 100644 app/info.php (limited to 'app/info.php') diff --git a/app/info.php b/app/info.php deleted file mode 100644 index cfc7bc2..0000000 --- a/app/info.php +++ /dev/null @@ -1,186 +0,0 @@ -", ":", "\"", "\\", "|", "?", "*"], "-", $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"; -} - -function timeToDuration($seconds) { - $hours = floor($seconds / 3600); - $minutes = floor($seconds / 60) - ($hours * 60); - $seconds = floor($seconds) - ($hours * 3600) - ($minutes * 60); - $parts = []; - - if ($hours > 0) $parts[] = $hours . " hour" . ($hours > 1 ? "s" : ""); - if ($minutes > 0) $parts[] = $minutes . " minute" . ($minutes > 1 ? "s" : ""); - if ($seconds > 0) $parts[] = $seconds . " second" . ($seconds > 1 ? "s" : ""); - - return implode(", ", $parts); -} - -function getBitRate($bits) { - $bitsValue = $bits . " bps"; - - if ($bits > 1000) { - if ($bits > 1000000) { - if ($bits > 1000000000) { - $bitsValue = round($bits / 1000000000, 2) . " Gbps"; - } else { - $bitsValue = round($bits / 1000000, 2) . " Mbps"; - } - } else { - $bitsValue = round($bits / 1000, 2) . " kbps"; - } - } - - $bytesValue = ($bits / 8) . " B/s"; - - if (($bits / 8) > 1000) { - if (($bits / 8) > 1000000) { - if (($bits / 8) > 1000000000) { - $bytesValue = round(($bits / 8) / 1000000000, 2) . " GB/s"; - } else { - $bytesValue = round(($bits / 8) / 1000000, 2) . " MB/s"; - } - } else { - $bytesValue = round(($bits / 8) / 1000, 2) . " kB/s"; - } - } - - return $bitsValue . " (" . $bytesValue . ")"; -} - -function getChannelConfiguration($c) { - if ($c === 1) return " (Mono)"; - if ($c === 2) return " (Stereo)"; - if ($c === 3) return " (Stereo+1)"; - if ($c === 4) return " (3.1)"; - if ($c === 5) return " (4.1 or 5.0 Surround)"; - if ($c === 6) return " (5.1 Surround)"; - if ($c === 7) return " (6.1 or 7.0 Surround)"; - if ($c === 8) return " (7.1 Surround)"; - if ($c === 9) return " (9.0 or 7.2 Spatial Audio)"; - if ($c === 10) return " (9.1 Spatial Audio)"; - if ($c >= 11) return " (Dolby Atmos)"; - return ""; -} - -?> - - - - - - - info - - - - - - - - - - - -
-
- .jpg" style="aspect-ratio: 1; width: 96px;"> -
-
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TrackDisc , track 0 ? $song["track"] : "-" ?>
Duration
Bit rate
Sample rate Hz
Bits per sample bits
Channels
Year
High-resolution
Mist StellaNo
Copyright
File size (lossless)
File size (AAC-LC)
-
- - - - \ No newline at end of file -- cgit