Make empty.ogg longer (RT #91794 and #43693) and improve the fix sub
[app-musicexpo.git] / lib / App / MusicExpo.pm
index 9dc2d3d05229d79ecf4a051ab6662473b4ecaa9b..d66d719b71e90adb12cc463ae6c688db9ecbebb1 100644 (file)
@@ -1,8 +1,10 @@
-package App::MusicExpo 0.002;
+package App::MusicExpo;
 use v5.14;
 use strict;
 use warnings;
 
+our $VERSION = 0.003;
+
 use Audio::FLAC::Header qw//;
 use HTML::Template::Compiled qw//;
 use Memoize qw/memoize/;
@@ -31,8 +33,9 @@ GetOptions (
 
 
 sub fix{
-  utf8::decode($_[0]);
-  $_[0]
+  my $copy = $_[0];
+  utf8::decode($copy);
+  $copy
 }
 
 sub flacinfo{
@@ -166,7 +169,10 @@ The default template looks like:
     |---------+---------+-----------------+---------+-------+------+------|
     | Cellule | Silence | L'autre endroit | Electro | 01/09 | 2005 | FLAC |
 
-where the title is a download link.
+where the type is a download link. If you have multiple files with the same
+basename (such as C<cellule.flac> and C<cellule.ogg>), they will be treated
+as two versions of the same file, so a row will be created with two download
+links, one for each format.
 
 =head1 OPTIONS
 
This page took 0.009704 seconds and 4 git commands to generate.