diff --git a/src/Logchecker.php b/src/Logchecker.php index 60bc933..cd01ad4 100644 --- a/src/Logchecker.php +++ b/src/Logchecker.php @@ -728,6 +728,10 @@ class Logchecker if (!$Count && $EAC) { $this->account('Could not verify null samples'); } + $Log = preg_replace_callback('/Normalize to( +): ([0-9% ]+)/i', array( + $this, + 'normalizeEac' + ), $Log, 1); $Log = preg_replace( '/Used interface( +): ([^\n]+)/i', 'Used interface$1: $2', @@ -1768,6 +1772,13 @@ class Logchecker '' . $Matches[2] . ''; } + private function normalizeEac($Matches) + { + $this->account('Normalization should be not be active', 100); + return 'Normalize to'. $Matches[1] . ': ' . + '' . $Matches[2] . ''; + } + private function gapHandling($Matches) { if (strpos($Matches[2], 'Not detected') !== false) { diff --git a/tests/logs/eac/details/en_normalization.json b/tests/logs/eac/details/en_normalization.json new file mode 100644 index 0000000..d92eabf --- /dev/null +++ b/tests/logs/eac/details/en_normalization.json @@ -0,0 +1,11 @@ +{ + "ripper": "EAC", + "version": "1.6", + "language": "en", + "combined": false, + "score": 0, + "checksum": "checksum_invalid", + "details": [ + "Normalization should be not be active (-100 points)" + ] +} diff --git a/tests/logs/eac/html/en_normalization.log b/tests/logs/eac/html/en_normalization.log new file mode 100644 index 0000000..550be42 --- /dev/null +++ b/tests/logs/eac/html/en_normalization.log @@ -0,0 +1,208 @@ +Exact Audio Copy V1.6 from 23. October 2020 + +EAC extraction logfile from 2. April 2021, 18:13 + +Various / Cr2 Presents Live & Direct Space Ibiza - Around The World + +Used Drive : hp BD ROM BC-5501H Adapter: 1 ID: 1 + +Read mode : Secure +Utilize accurate stream : Yes +Defeat audio cache : Yes +Make use of C2 pointers : No + +Read offset correction : 48 +Overread into Lead-In and Lead-Out : No +Fill up missing offset samples with silence : Yes +Delete leading and trailing silent blocks : No +Null samples used in CRC calculations : Yes +Normalize to : 98 % +Used interface : Native Win32 interface for Win NT & 2000 +Gap handling : Appended to previous track + +Used output format : User Defined Encoder +Selected bitrate : 1024 kBit/s +Quality : High +Add ID3 tag : No +Command line compressor : C:\Program Files (x86)\Exact Audio Copy\Flac\flac.exe +Additional command line options : -8 -e -p -V -T "ARTIST=%artist%" -T "TITLE=%title%" -T "ALBUM=%albumtitle%" -T "DATE=%year%" +-T +"TRACKNUMBER=%tracknr%" -T "GENRE=%genre%" -T "PERFORMER=%albuminterpret%" -T "COMPOSER=%composer%" %haslyrics%--tag-from-file=LYRICS="%lyricsfile%"%haslyrics% -T "ALBUMARTIST=%albumartist%" -T "DISCNUMBER=%cdnumber%" -T "TOTALDISCS=%totalcds%" -T "TOTALTRACKS=%numtracks%" -T "COMMENT=%comment%" %source% -o %dest% + + +TOC of the extracted CD + + Track | Start | Length | Start sector | End sector + --------------------------------------------------------- + 1 | 0:00.00 | 7:48.50 | 0 | 35149 + 2 | 7:48.50 | 5:24.43 | 35150 | 59492 + 3 | 13:13.18 | 5:32.46 | 59493 | 84438 + 4 | 18:45.64 | 7:16.41 | 84439 | 117179 + 5 | 26:02.30 | 4:01.67 | 117180 | 135321 + 6 | 30:04.22 | 5:17.37 | 135322 | 159133 + 7 | 35:21.59 | 5:02.29 | 159134 | 181812 + 8 | 40:24.13 | 3:44.67 | 181813 | 198679 + 9 | 44:09.05 | 5:53.30 | 198680 | 225184 + 10 | 50:02.35 | 6:02.63 | 225185 | 252397 + 11 | 56:05.23 | 5:17.37 | 252398 | 276209 + 12 | 61:22.60 | 8:25.04 | 276210 | 314088 + + +Track 1 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\01 - Neuroxyde Vs. Doomwork - Jazzy Stuff.wav + + Pre-gap length 0:00:02.00 + + Peak level 98.8 % + Extraction speed 2.5 X + Track quality 100.0 % + Test CRC 917CD349 + Copy CRC 917CD349 + Accurately ripped (confidence 1) [BCC56ACC] (AR v1) + Copy OK + +Track 2 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\02 - MYNC & Harry Choo Choo Romero & Jose Nunez - Boogers (Uner & Coyu Abreme La Puerta Mix).wav + + Peak level 98.8 % + Extraction speed 2.8 X + Track quality 100.0 % + Test CRC 6DF27310 + Copy CRC 6DF27310 + Accurately ripped (confidence 1) [3B6E59FF] (AR v1) + Copy OK + +Track 3 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\03 - The Junkies - Ritmo (Loko Mix).wav + + Peak level 100.0 % + Extraction speed 2.7 X + Track quality 99.9 % + Test CRC AF156D08 + Copy CRC AF156D08 + Accurately ripped (confidence 1) [617C38F8] (AR v1) + Copy OK + +Track 4 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\04 - Baeka - Right At It (Michel Cleis Remix).wav + + Peak level 98.8 % + Extraction speed 3.1 X + Track quality 99.9 % + Test CRC 4DBD27C3 + Copy CRC 4DBD27C3 + Accurately ripped (confidence 1) [60CE1856] (AR v1) + Copy OK + +Track 5 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\05 - Stefano Azati - Horns (Original Mix).wav + + Peak level 98.8 % + Extraction speed 3.5 X + Track quality 100.0 % + Test CRC 21CF34DD + Copy CRC 21CF34DD + Accurately ripped (confidence 1) [9FDB43C8] (AR v1) + Copy OK + +Track 6 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\06 - Wolfgang Gartner - Latin Fever.wav + + Peak level 98.8 % + Extraction speed 3.8 X + Track quality 100.0 % + Test CRC 4FB566CD + Copy CRC 4FB566CD + Accurately ripped (confidence 1) [32024FA3] (AR v1) + Copy OK + +Track 7 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\07 - WWW (5) - Relaxx (Uner & Coyu Remix).wav + + Peak level 98.8 % + Extraction speed 3.9 X + Track quality 100.0 % + Test CRC C272162F + Copy CRC C272162F + Accurately ripped (confidence 1) [B6811E79] (AR v1) + Copy OK + +Track 8 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\08 - Anil Chawla - 209 (Original Mix).wav + + Peak level 98.8 % + Extraction speed 4.0 X + Track quality 100.0 % + Test CRC 3E987E57 + Copy CRC 3E987E57 + Accurately ripped (confidence 1) [A44B17F6] (AR v1) + Copy OK + +Track 9 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\09 - Chuckie & LMFAO - Let The Bass Kick In Miami Bitch.wav + + Peak level 98.8 % + Extraction speed 4.3 X + Track quality 100.0 % + Test CRC 6E5E9229 + Copy CRC 6E5E9229 + Accurately ripped (confidence 1) [3D3EFFB4] (AR v1) + Copy OK + +Track 10 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\10 - Juan Kidd Vs. Prok & Fitch - Mantra.wav + + Peak level 98.8 % + Extraction speed 4.0 X + Track quality 99.9 % + Test CRC 69CAC0F2 + Copy CRC 69CAC0F2 + Accurately ripped (confidence 1) [C635F32E] (AR v1) + Copy OK + +Track 11 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\11 - Nick & Danny Chatelain - Rumba (Camilo Franco Que Rumba Remix).wav + + Peak level 100.0 % + Extraction speed 4.6 X + Track quality 100.0 % + Test CRC 7A356FD0 + Copy CRC 7A356FD0 + Accurately ripped (confidence 1) [A145E589] (AR v1) + Copy OK + +Track 12 + + Filename C:\Users\Matej\Desktop\Various ‎– Cr2 Presents Live & Direct Space Ibiza - Around The World (2009) [FLAC] {CDC2LD013}\CD 1\12 - Elio Riso - 24 Horas Of Happiness.wav + + Peak level 100.0 % + Extraction speed 5.0 X + Track quality 100.0 % + Test CRC D1DA512D + Copy CRC D1DA512D + Accurately ripped (confidence 1) [34BCA92A] (AR v1) + Copy OK + + +All tracks accurately ripped + +No errors occurred + +End of status report + +---- CUETools DB Plugin V2.1.6 + +[CTDB TOCID: lnivlQfRVKD6aXMqt3tIoEq4g6A-] disk not present in database +Submit result: lnivlQfRVKD6aXMqt3tIoEq4g6A- has been uploaded +==== Log checksum 48A84BB714608F6DCB2D4954260BB8331D8F255BDCBCF03AEDF85E3DCA20DAA0 ==== \ No newline at end of file diff --git a/tests/logs/eac/originals/en_normalization.log b/tests/logs/eac/originals/en_normalization.log new file mode 100644 index 0000000..c11a1c3 Binary files /dev/null and b/tests/logs/eac/originals/en_normalization.log differ