Merge pull request #403 from SilasLaspada/master

Don't write ISRC to CDRDAO or CDRWin images if it's null or white space
This commit is contained in:
2020-10-31 21:52:28 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -593,7 +593,7 @@ namespace Aaru.DiscImages
flags.HasFlag(CdFlags.FourChannel) ? "FOUR" : "TWO");
}
if(_trackIsrcs.TryGetValue((byte)track.TrackSequence, out string isrc))
if(_trackIsrcs.TryGetValue((byte)track.TrackSequence, out string isrc) && !string.IsNullOrWhiteSpace(isrc))
_descriptorStream.WriteLine("ISRC {0}", isrc);
(byte minute, byte second, byte frame) msf =

View File

@@ -513,7 +513,7 @@ namespace Aaru.DiscImages
flags.HasFlag(CdFlags.PreEmphasis) ? " PRE" : "");
}
if(_trackIsrcs.TryGetValue((byte)track.TrackSequence, out string isrc))
if(_trackIsrcs.TryGetValue((byte)track.TrackSequence, out string isrc) && !string.IsNullOrWhiteSpace(isrc))
_descriptorStream.WriteLine(" ISRC {0}", isrc);
if(track.TrackPregap > 0)