Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Template::Plugin::AudioFile::Info 1.04

    Download button

    No screenshots available
    Downloads: 375  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Dave Cross | More programs
    Perl Artistic License / FREE
    November 14th, 2006, 08:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Template::Plugin::AudioFile::Info description

    Template::Plugin::AudioFile::Info is a template toolkit plugin for AudioFile::Info.

    Template::Plugin::AudioFile::Info is a template toolkit plugin for AudioFile::Info.

    SYNOPSIS

    [% USE song = AudioFile.Info(file) %]
    Title: [% song.title %]
    Artist: [% song.artist %]
    Album: [% song.album %] (track [% song.track %])
    Year: [% song.year %]
    Genre: [% song.genre %]

    ABSTRACT

    Template::Plugin::AudioFile::Info is a Template Toolkit plugin module which provides an interface to the AudioFile::Info module. AudioFile::Info provides a simple way to extract various pieces of information from audio files (both MP3 and Ogg Vorbis files).

    Template::Plugin::AudioFile::Info is intended to be used from with a template that is going to be processed by the Template Toolkit.

    A simple template might look like the one in the Synopsis above. In this case you would need to define the file variable in some way. The simplest option would be to use the tpage program that comes with the Template Toolkit, like this (assuming the template is in a file called song.tt).

    $ tpage --define file=some_song.mp3 song.tt

    If you wanted to process each file in a directory thne you might write a Perl program that processed the template multiple times like this.

    use Template;

    my $tt = Template->new;

    foreach () {
    next unless /.(ogg|mp3)$/i;

    $tt->process('song.tt', { file => $_ })
    or die $tt->error;
    }

    There are, of course, many other ways to do it.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    template toolkit | AudioFile::Info plugin | Perl module | Template::Plugin::Au | template | toolkit

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM