[Gambas-user] Music.Length

Stefano Palmeri rospolosco at ...152...
Fri Jun 20 15:45:26 CEST 2008


Il venerdì 20 giugno 2008 13:25:03 Stefano Palmeri ha scritto:
>
> If you have "mp3info" installed in your system you can get the length:
>
> SHELL "mp3info -x " & "pathtofile.mp3" & " | grep 'Length:' | awk '{print
> $2}'" TO sString
>
> Stefano
>
Little fix to avoid problems if a mp3 file name or tag contains the 
word "length".

SHELL "mp3info -x " & "pathtofile.mp3" & " | grep '^Length:' | awk '{print
$2}'" TO sString




More information about the User mailing list