Fixed $year$ empty bug
Everything works but needs some testing
It works for me without any fixing.
==============================================
TEST-tracks config, Thu 12/10/2006 22:59:43.94
==============================================
"reactdir: C:\Program Files\REACT"
"encdir: C:\PROGRA~1\REACT\Encoders"
"mydocumentsdir: D:"
"musicdir: E:\CDBackup"
"sourcedir: F:"
"eaclog: F:\The Album Name.log"
"destdir1: E:\CDBackup\TEST\Various\The Album Name"
"destdir2: E:\CDBackup\TEST"
----------------------------------------------
"trackscuesheet: F:\The Album Name"
" single: F:\The Album Name.[s].cue"
" with: F:\The Album Name.[mg].cue"
" leftout: F:\The Album Name.[m].cue"
" corrected: F:\The Album Name.[mc].cue"
----------------------------------------------
"basename: Various - The Album Name - 01 - Track 1 (Artist 1)"
"source: F:\Vtmp56)!5.wav"
"dest1: E:\CDBackup\TEST\Various\The Album Name\01 - Track 1 (Artist 1)"
"dest2: E:\CDBackup\TEST\The Album Name - 01 - Track 1 (Artist 1)"
"cdartist: Various (Various)"
"album: The Album Name (The Album Name)"
"artist: Artist 1 (Artist 1)"
"title: Track 1 (Track 1)"
"track: 1 (01)"
"numtracks: 2 (02)"
"islast: 0"
"genre: "
"year: 2006 (2006)"
"comment: 41"
"freedbid: 11018102"
"crc: 5297D529"
"bitrate: 128"
"curdate: 2006-10-12"
----------------------------------------------
"basename: Various - The Album Name - 02 - Track 2 (Artist 2)"
"source: F:\Vtmp8)58-.wav"
"dest1: E:\CDBackup\TEST\Various\The Album Name\02 - Track 2 (Artist 2)"
"dest2: E:\CDBackup\TEST\The Album Name - 02 - Track 2 (Artist 2)"
"cdartist: Various (Various)"
"album: The Album Name (The Album Name)"
"artist: Artist 2 (Artist 2)"
"title: Track 2 (Track 2)"
"track: 2 (02)"
"numtracks: 2 (02)"
"islast: 1"
"genre: "
"year: 2006 (2006)"
"comment: 41"
"freedbid: 11018102"
"crc: 62630444"
"bitrate: 128"
"curdate: 2006-10-12"
----------------------------------------------
==============================================
TEST-image config, Thu 12/10/2006 23:00:48.52
==============================================
"reactdir: C:\Program Files\REACT"
"encdir: C:\PROGRA~1\REACT\Encoders"
"mydocumentsdir: D:"
"musicdir: E:\CDBackup"
"sourcedir: F:"
"eaclog: F:\The Album Name.log"
"destdir1: E:\CDBackup\TEST\Various\The Album Name"
----------------------------------------------
"basename: Various - The Album Name"
"source: F:\Vtmp!)(0(.wav"
"image: F:\Various - The Album Name.wav"
"sourcecuesheet: F:\Vtmp!)(0(-react.cue"
"cuesheet: F:\Various - The Album Name.cue"
"cdartist: Various (Various)"
"album: The Album Name (The Album Name)"
"artist: Artist 2 (Artist 2)"
"genre: "
"year: 2006 (2006)"
"comment: 41"
"freedbid: 11018102"
"crc: 62630444"
"bitrate: 128"
"curdate: 2006-10-12"
----------------------------------------------
The year in brackets is retrieved using $year$.
Tested using my TEST configs, with $year$ added, using a test NRG image as the source.
The official AutoIt source has the lines:
$str = StringReplace($str, "$year$", $g_year)
... and$str = StringReplace($str, "@year@", $g_year)
I don't understand how one can work and not the other.
Also, bear in mind, $year$ is not in the documentation, and @year@ will do exactly the same. Why the need to use it?!
Edit: I am more and more coming to the conclusion that you are causing all of your problems by using a recompiled version of REACT. I suspect that the True/1 issue is down to the version of AutoIt used to compile, or maybe your OS. This is all guess work on my part, but your symptoms are very strange, you appear too quick to hack about with the source, and you don't appear to have any interest in getting help to resolve your issues, preferring to bugger around with the source that works fine for everyone else (AFAIK). I would like to see the TEST config log file produced by your version of REACT and the official version. Until then I don't see much point in trying to help further (not that it appears you want me to ).