Apache-MP3
view release on metacpan or search on metacpan
Note that MP3 rip and encoding software differ in what fields they
capture and the exact format of such fields as the title and album.
Field names are case insensitive.
Previous versions of this module used "kbps" instead of "bitrate".
This has been changed.
=item HomeLabel I<string>
This is the label for the link used to return to the site's home
page. You may use plain text or any fragment of HTML, such as an
<IMG> tag.
=item LongList I<integer>
The number of lines in the list of MP3 files after which it is
considered "long". In long lists, the control buttons are placed at
the top as well as at the bottom of the table. Defaults to 10.
=item MissingComment I<string>
This method generates the footer at the bottom of the list
of playlists given by C<$playlists>. Currently it does nothing.
=item $mp3->playlist_list($playlists)
This method displays the playlists given by C<$playlists> in a nicely
formatted table.
=item $html = $mp3->format_playlist($playlist)
This method formats the indicated playlist by creating a fragment of
HTML containing the playlist icon, the stream links and the playlist
name. It returns a HTML fragment used by playlist_list().
=item $response_code = $mp3->list_directory($dir)
This is the top level formatter for directory listings. It is passed
the URL of a directory and returns an Apache response code.
=item $mp3->page_top($dir)
This method begins the HTML at the top of the page from the initial
<head> section through the opening <body>.
This method invokes sort_subdirs() to sort the subdirectories given by
C<$directories> and displays them in a nicely-formatted table.
=item @directories = $mp3->sort_subdirs($directories)
This method sorts the subdirectories given in C<$directories> and
returns a sorted B<list> (not an arrayref).
=item $html = $mp3->format_subdir($directory)
This method formats the indicated subdirectory by creating a fragment
of HTML containing the little CD icon, the shuffle and stream links,
and the subdirectory's name. It returns an HTML fragment used by
subdir_list().
=item $mp3->get_help
This subroutine generates the "Quick Help Summary" link at the bottom
of the page.
=item $mp3->list_subdirs($subdirectories)
This is the top-level subroutine for listing subdirectories (the part
=item $lines = $mp3->file_list_is_long
Returns the number of lines in the MP3 file listing after which the
list is considered to be "long". When a long list is encountered, the
module places the control buttons at both the top and bottom of the
MP3 file table, rather than at the bottom only. This method
=item $html = $mp3->home_label
Returns a fragment of HTML to use as the "Home" link in the list of
parent directories.
=item $style = $mp3->path_style
Returns the style of the list of parent directories. Either "arrows"
or "staircase".
=item $path = $mp3->cache_dir
Returns the directory for use in caching MP3 tag information
( run in 1.816 second using v1.01-cache-2.11-cpan-b16cb0d3907 )