-
Notifications
You must be signed in to change notification settings - Fork 0
/
mid3TagMp3Frames.php
43 lines (43 loc) · 1.51 KB
/
mid3TagMp3Frames.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Frames list of mid3v2 (Mutagen)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="og:url" content="https://smolka.lima-city.de/">
<meta name="author" content="Jürgen Smolka">
<style type="text/css">
body { margin-left:5%; margin-right:5%; font-size:1.1em; }
td { padding-left:11px; padding-right:11px; vertical-align:top; }
h4 { color:red; font-weight:bold; }
.m { font-family:monospace; font-size:1.3em; }
.u { white-space:nowrap; }
</style>
</head>
<body>
<h2>Frames supported<span style="font-weight:200;">(?)</span> by mid3v2</h2>
<table border="1">
<tr><td>
<?php
$frame = "";
$block = 35;
$bstep = $block + 1;
$shellBefehl = "mid3v2 -f";
exec($shellBefehl, $frame);
if(!$frame)
echo '<h4>No data fetched ...</h4><p>Try <b>mid3v2 -L</b> on konsole!</p>';
foreach ( $frame as $strKey => $strValue ) {
echo '<b><span class="u">';
echo '<b><span class="m">' . substr($strValue,6,4) . '</span> ';
echo substr($strValue,14) . "</span></b><br>\n";
if($strKey == $block) {
echo '</td><td>';
$block = $block + $bstep;
}
}
//simpel: echo '<b>' . $strValue . '</b><br>' . "\n";
?>
</td></tr>
</table>
</body>
</html>