$mp3 » History » Version 1
Per Amundsen, 08/12/2015 08:17 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$mp3(filename)* |
||
4 | |||
5 | Returns "ID3 tag"https://en.wikipedia.org/wiki/ID3 information about a file/song. |
||
6 | |||
7 | _If file is not found, the default sound folder path is returned._ |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | filename - Filename to check. |
||
12 | |||
13 | *Properties* |
||
14 | |||
15 | .album - Album name. |
||
16 | .title - Song title. |
||
17 | .artist - Song artist. |
||
18 | .year - Album/song year. |
||
19 | .comment - Comments field. |
||
20 | .genre - Song genre. |
||
21 | .track - Album track, |
||
22 | .length - Song length. |
||
23 | .bitrate - Song bitrate. |
||
24 | .version - "MPEG":https://en.wikipedia.org/wiki/Moving_Picture_Experts_Group version. |
||
25 | .variable - [[$true]] if the song is "variable bitrate":https://en.wikipedia.org/wiki/Variable_bitrate, otherwise [[$false]]. |
||
26 | .sample - "MPEG":https://en.wikipedia.org/wiki/Moving_Picture_Experts_Group frequency rate. |
||
27 | .mode - "MPEG":https://en.wikipedia.org/wiki/Moving_Picture_Experts_Group mode. |
||
28 | .layer - "MPEG":https://en.wikipedia.org/wiki/Moving_Picture_Experts_Group layer. |
||
29 | .copyright - [{$true]] if copyright field is enabled, otherwise [[$false]]. |
||
30 | .private - [{$true]] if private field is enabled, otherwise [[$false]]. |
||
31 | .crc - TODO |
||
32 | |||
33 | *Example* |
||
34 | |||
35 | <pre> |
||
36 | ; Print artist - title - album for 'song.mp3' |
||
37 | //echo -ag $mp3(song.mp3).artist- $mp3(song.mp3).title - $mp3(song.mp3).album |
||
38 | </pre> |