Просмотр исходного кода

* notes on mIRC
* ogg/wma suffixes

Christoph Berg 21 лет назад
Родитель
Сommit
3dd23ea784
3 измененных файлов с 12 добавлено и 2 удалено
  1. 6 0
      docs/Changelog
  2. 5 1
      docs/FORMATS
  3. 1 1
      modules/Pisg/Parser/Logfile.pm

+ 6 - 0
docs/Changelog

@@ -1,3 +1,9 @@
+pisg (0.67) - ??
+   Christoph:
+   * Formats:
+     + Notes on using mIRC.
+   * Recognize ogg and wma suffixes in song stats.
+
 pisg (0.66) - Thu May, 13th 2005
    Christoph:
    * Features:

+ 5 - 1
docs/FORMATS

@@ -22,13 +22,17 @@ link to the logfile)
 
   - In order to use this, format must be set to 'mIRC6'.
 
+    Remember to timestamp your logs, or it wont work, the timestamp must be
+    in [HH:MM] or [HH:MM:SS] format. (logging options -> timestamp logs)
+
 * mIRC6hack:
   - Version 6.x of mIRC using a logging script to produce a saner output
 
   - Same as mIRC6 except it uses '**' for actions
 
   - In order to use this, format must be set to 'mIRC6hack', and the following
-    be added to mIRC's remote script section: (thanks to virtuall and coaster)
+    be added to mIRC's remote script section (Alt-R -> Remote): (thanks to
+    virtuall and coaster)
 
 ------------------------------8<------------------------------
 alias me {

+ 1 - 1
modules/Pisg/Parser/Logfile.pm

@@ -659,7 +659,7 @@ sub _charts
     my ($self, $stats, $Song, $nick) = @_;
     $Song =~ s/_/ /g;
     $Song =~ s/\d+ ?- ?//;
-    $Song =~ s/\.mp3//g;
+    $Song =~ s/\.(mp3|ogg|wma)//ig;
     $Song =~ s/ \.\.\.$//;
     $Song =~ s/ [^\w]+$//;
     my $song = lc $Song;